Skip to content
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

[Feature] Allow individual search requests to override the CMR provider parameter #642

Open
asjohnston-asf opened this issue Jul 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@asjohnston-asf
Copy link
Member

Is your feature request related to a problem? Please describe.
I'd like to prototype how a new data set might be integrated with Vertex and the search API. ASF develops new data sets under the ASFDEV provider in https://cmr.uat.asf.alaska.edu. While API deployments integrated with CMR UAT are available, they all perform searches using provider=ASF. In order to evaluate how my new data set appears in search results, I have to run my own copy of the API configured with provider=ASFDEV.

Describe the solution you'd like
Provide a search parameter allowing users to override the CMR provider value in individual search requests.

I see code supporting a cmr_provider query parameter for /services/search/param at https://github.com/asfadmin/Discovery-SearchAPI/blob/devel/SearchAPI/CMR/Query.py#L21 . However, when including that parameter in a search request, I get alidation Error: Unsupported parameter: cmr_provider because the cmr_provider keyword is not including in the input map at https://github.com/asfadmin/Discovery-SearchAPI/blob/devel/SearchAPI/CMR/Translate/input_map.py .

https://api-test.asf.alaska.edu/services/search/param?processingLevel=S1_SLC_BURSTS&output=count&cmr_provider=ASFDEV

Non-production copies of Vertex appear to already support for setting the cmr_provider value in a custom environment, but they also receive an Unsupported parameter error when making such queries to the search api.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@asjohnston-asf asjohnston-asf added the enhancement New feature or request label Jul 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant