-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(server): remove catalogs #1306
Conversation
Test Results 4 files ± 0 4 suites ±0 6m 10s ⏱️ -12s Results for commit f2efdb1. ± Comparison against base commit 9a7b44c. This pull request removes 7 tests.
♻️ This comment has been updated with latest results. |
Code Coverage (Ubuntu)
Diff against develop
Results for commit: f2efdb1 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Code Coverage (Windows)
Diff against develop
Results for commit: f2efdb1 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please
- do not list
/catalogs/*
or/collections/*
in landing page - remove
/catalogs
feature fromeodag/resources/stac.yml
andeodag/rest/stac.py
- update documentation
c084b43
to
5bc7d2c
Compare
catalogs endpoints and correspoding logic removed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Update/remove reference to
catalogs
:
Lines 177 to 188 in fdf0f1b
# browse for items | |
$ curl "http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items" \ | |
| jq ".numberMatched" | |
9 | |
# get download link | |
$ curl "http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items" \ | |
| jq ".features[0].assets.downloadLink.href" | |
"http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items/S2A_MSIL1C_20210125T105331_N0209_R051_T31UCR_20210125T130733/download" | |
# download | |
$ wget "http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items/S2A_MSIL1C_20210125T105331_N0209_R051_T31UCR_20210125T130733/download" |
- Update URLs to use
collections
instead ofcatalogs
:
Lines 113 to 124 in fdf0f1b
# browse for items | |
$ curl "http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items" \ | |
| jq ".numberMatched" | |
9 | |
# get download link | |
$ curl "http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items" \ | |
| jq ".features[0].assets.downloadLink.href" | |
"http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items/S2A_MSIL1C_20210125T105331_N0209_R051_T31UCR_20210125T130733/download" | |
# download | |
$ wget "http://127.0.0.1:5000/catalogs/S2_MSI_L1C/country/FRA/year/2021/month/01/day/25/cloud_cover/10/items/S2A_MSIL1C_20210125T105331_N0209_R051_T31UCR_20210125T130733/download" |
- Probably this could be removed:
Line 27 in fdf0f1b
CACHE_KEY_CATALOGS = "catalogs" |
- Parameters
catalogs
should be changed tocollection
orcollection_id
:
Lines 234 to 241 in fdf0f1b
def download_stac_item( | |
request: Request, | |
catalogs: List[str], | |
item_id: str, | |
provider: Optional[str] = None, | |
asset: Optional[str] = None, | |
**kwargs: Any, | |
) -> Response: |
- Update documentation:
Line 871 in fdf0f1b
:param catalogs: (optional) Catalogs list |
catalogs removed from download and download docs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
browsing by catalog still appears inREADME
, image https://raw.githubusercontent.com/CS-SI/eodag/develop/docs/_static/stac_browser_example_600.png.
Please:
- remove this image (resized and full)
- replace this outdated image and also
stac_browser_start.png
with an nicer one (full and resized), similar tostac_browser_example.png
(using a search)
4ff1173
to
d2880b5
Compare
removes the /catalogs endpoints and the corresponding logic, config and documentation from the server mode