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

Fix typo in OPTIMADE client: remove quotes in response fields #2856

Merged
merged 1 commit into from
Feb 21, 2023

Conversation

ml-evs
Copy link
Contributor

@ml-evs ml-evs commented Feb 21, 2023

Summary

One more fix related to #2852 -- response fields also should not have quotes around the entire field. This was caught by a test that directly queries MP, which was (also incorrectly) returning data that didn't quite match rather than an error, e.g.:

https://optimade.materialsproject.org/v1/structures?filter=(elements%20HAS%20ALL%20%22Ga%22,%20%22N%22)%20AND%20(nelements=2)&response_fields=%22species_at_sites,cartesian_site_positions,species,lattice_vectors,nsites%22

vs what should happen if you incorrectly format the response fields:

https://optimade.odbx.science/v1/structures?response_fields="id"

@janosh janosh enabled auto-merge (squash) February 21, 2023 22:17
@janosh janosh merged commit 90b1f6d into materialsproject:master Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants