From a3d766c6dcebe7180a1fb027aede9749420341b5 Mon Sep 17 00:00:00 2001 From: SpicyGarlicAlbacoreRoll Date: Thu, 5 Feb 2026 15:17:57 -0900 Subject: [PATCH 1/3] bug: can set cmr provider on list searches --- CHANGELOG.md | 3 +++ src/SearchAPI/application/asf_opts.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2408f2b..4634479 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,9 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - bump asf-search to v11.0.2 - ARIA-S1 GUNW 2.0.3 byteSize and product type display support +### fixed +- allow setting `cmr_provider` on granule/product list searches + ------ ## [1.0.11](https://github.com/asfadmin/Discovery-SearchAPI-v3/compare/v1.0.10...v1.0.11) ### Changed diff --git a/src/SearchAPI/application/asf_opts.py b/src/SearchAPI/application/asf_opts.py index ccf7313..8fd1397 100644 --- a/src/SearchAPI/application/asf_opts.py +++ b/src/SearchAPI/application/asf_opts.py @@ -169,6 +169,9 @@ async def process_search_request(request: Request, is_baseline: bool = False) -> session = SearchAPISession() session.headers.update({'Authorization': 'Bearer {0}'.format(token)}) query_opts.session = session + + if (cmr_provider := merged_args.get('cmr_provider')): + query_opts.provider=cmr_provider output = merged_args.get('output', 'metalink') maturity = merged_args.get('maturity', 'prod') @@ -269,7 +272,7 @@ def get_asf_opts(params: dict) -> asf.ASFSearchOptions: # SearchOpts doesn't know how to handle these keys, but other methods need them # (We still want to throw on any UNKNOWN keys) - ignore_keys_lower = ["output", "reference", "maturity", "cmr_keywords", "cmr_token"] + ignore_keys_lower = ["output", "reference", "maturity", "cmr_keywords", "cmr_token", "cmr_provider"] params = {k: params[k] for k in params.keys() if k.lower() not in ignore_keys_lower} try: From e8bbb92d4a5e11828f1dfad7ab2fa72f9574dd8b Mon Sep 17 00:00:00 2001 From: SpicyGarlicAlbacoreRoll Date: Fri, 6 Feb 2026 09:48:03 -0900 Subject: [PATCH 2/3] chore: bump to asf-search 11.0.3 --- CHANGELOG.md | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4634479..48656e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ### Changed - bump asf-search to v11.0.2 - ARIA-S1 GUNW 2.0.3 byteSize and product type display support - + - NISAR dateline RRSD products now properly parsed from UMM, merged into single polygon ### fixed - allow setting `cmr_provider` on granule/product list searches diff --git a/requirements.txt b/requirements.txt index 5cccb66..4d23336 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,7 @@ ujson==5.7.0 uvicorn==0.21.1 watchfiles==0.19.0 -asf-search[asf-enumeration]==11.0.2 +asf-search[asf-enumeration]==11.0.3 python-json-logger==2.0.7 pyshp==2.1.3 From 558d39dcf33ddd67f75ea462a61bbaaba44a4b32 Mon Sep 17 00:00:00 2001 From: SpicyGarlicAlbacoreRoll Date: Fri, 6 Feb 2026 09:49:17 -0900 Subject: [PATCH 3/3] udpate changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48656e0..950fc19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,7 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ------ ## [1.0.12](https://github.com/asfadmin/Discovery-SearchAPI-v3/compare/v1.0.11...v1.0.12) ### Changed -- bump asf-search to v11.0.2 +- bump asf-search to v11.0.3 - ARIA-S1 GUNW 2.0.3 byteSize and product type display support - NISAR dateline RRSD products now properly parsed from UMM, merged into single polygon ### fixed