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

Problem with platform query parameter #1068

Open
jlahovnik opened this issue Mar 20, 2024 · 0 comments
Open

Problem with platform query parameter #1068

jlahovnik opened this issue Mar 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@jlahovnik
Copy link
Collaborator

In the EODAG search model we have the parameters:

  • platform: Optional[str] = Field(None, alias="constellation")
  • platformSerialIdentifier: Optional[str] = Field(None, alias="platform")

For the stac queryables in server mode, the alias is displayed. So, if a provider has a query parameter platformSerialIdentifier for a certain product type, platform will be returned by the request collections/collections_id/queryables. However, if you try to do a search with the parameter platform, this will not work because {"platform": "S1A"} will be serialized to 2 attributes: platform and platformSerialIdentifier. Platform is not available as a query parameter for all providers, so an error will occur.

@jlahovnik jlahovnik added the bug Something isn't working label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant