Commit b80cf30
better queryables and illegal_argument_exception fix for OS items load (#427)
added missing copy(), updated DEFAULT_QUERYABLES so it contains only
generic attributes
**Description:**
- Removed bug (missing copy()) causing default queryables to be enriched
by queryables from previous queryables endpoint query.
- Removed attributes cloud_cover, cloud_shadow_percentage,
nodata_pixel_percentage since these are not generic for all collections
ex. SAR data.
- updated async_prep_create_item for OS item load so it works with
multiple indices
**PR Checklist:**
- [x] Code is formatted and linted (run `pre-commit run --all-files`)
- [ ] Tests pass (run `make test`)
- [ ] Documentation has been updated to reflect changes, if applicable
- [ ] Changes are added to the changelog
---------
Co-authored-by: Jonathan Healy <jonathan.d.healy@gmail.com>1 parent c5471c1 commit b80cf30
File tree
4 files changed
+28
-33
lines changed- stac_fastapi
- core/stac_fastapi/core/extensions
- opensearch/stac_fastapi/opensearch
- sfeos_helpers/stac_fastapi/sfeos_helpers/filter
4 files changed
+28
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | 44 | | |
63 | 45 | | |
64 | 46 | | |
| |||
Lines changed: 19 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | | - | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
679 | 680 | | |
680 | 681 | | |
681 | 682 | | |
| 683 | + | |
| 684 | + | |
682 | 685 | | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
690 | 698 | | |
691 | 699 | | |
692 | 700 | | |
| |||
903 | 911 | | |
904 | 912 | | |
905 | 913 | | |
906 | | - | |
907 | 914 | | |
908 | 915 | | |
909 | 916 | | |
| |||
957 | 964 | | |
958 | 965 | | |
959 | 966 | | |
960 | | - | |
961 | | - | |
| 967 | + | |
| 968 | + | |
962 | 969 | | |
963 | 970 | | |
964 | 971 | | |
| |||
1180 | 1187 | | |
1181 | 1188 | | |
1182 | 1189 | | |
1183 | | - | |
| 1190 | + | |
1184 | 1191 | | |
1185 | 1192 | | |
1186 | 1193 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
40 | 43 | | |
41 | | - | |
42 | | - | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
52 | | - | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
0 commit comments