-
Notifications
You must be signed in to change notification settings - Fork 37
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
Adjust handling of unknown properties #456
Open
rartino
wants to merge
12
commits into
Materials-Consortia:develop
Choose a base branch
from
rartino:future_compatibility_unknown_property_names
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
9303373
Adjust handling of unknown properties for better future-proof behavior.
rartino 8ed4ab9
Adjust grammar
rartino 1657e4c
Handle forwards-compatibility also for response_field query parameter.
rartino 093dda7
Merge branch 'develop' into future_compatibility_unknown_property_names
rartino 1fc0df2
Further improve forwards-compatibility with future additions
rartino b91e617
Fix unknown property -> unrecognized property
rartino 0deec60
Apply suggestions from review
rartino 3ebf054
Fix incorrect example on futureproof unknown field
rartino 301d71d
Fix warning field name
ml-evs 5d0d021
Fix rst formatting from review
rartino e6695e8
Clarify statement about new fields and null based on review
rartino 793ad00
Apply suggestions from review
rartino File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Just to understand this better, does "unrecognized property" now mean unsupported OPTIMADE properties too? I recall that prior this PR "unknown" stood for properties with database-specific prefixes. So now for example an implementation can choose to "not recognize" structures'
chemical_formula_anonymous
?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.
Yes, this change is the most vital part of this PR to improve forwards compatibility in OPTIMADE.
The point is, when we add, e.g.,
spacegroup
to the standard, and you send a query to two databases asking to includespacegroup
among the response fields (or referencing it in the filter), you do not want an error; you want it treated asnull
.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.
Right, so the client will have to inspect the warnings to make sure that the empty return list means the database does not implement
spacegroup
, not that it does not contain any structures with the queried space group.