-
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
Partial data #467
Partial data #467
Conversation
description text.
…to partial_data
This proposal looks OK to me. I am only slightly worried about data values stepping on the reserved symbols/structures, i.e., |
Attention stakeholders: @rartino @sauliusg @giovannipizzi @gmrigna @JPBergsma @merkys This is how I intend to proceed:
I much appreciate your change requests on the format of explicit text edits rather than "How about we also...?"-type comments. If you cannot adhere to the deadline as given, fixes are of course still possible after we've merged via additional PRs. Just make sure to get them in before we release v1.2.0. One final thing: if you want a pretty-formatted version to read (of precisely the revision of the PR at the time I write this), you can find it via this link: https://github.com/Materials-Consortia/OPTIMADE/blob/4e9fb4d7423364ecb6b998e41fd9ec8a6efb0dff/optimade.rst#optimade-json-lines-partial-data-format Edit: I'll keep a changelog here:
|
- **meta**: a `JSON API meta object <https://jsonapi.org/format/1.0/#document-meta>`__ that is used to communicate metadata. | ||
See `JSON Response Schema: Common Fields`_ for more information about this field. |
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.
Should this not come from PR #463?
- **meta**: a `JSON API meta object <https://jsonapi.org/format/1.0/#document-meta>`__ that is used to communicate metadata. | |
See `JSON Response Schema: Common Fields`_ for more information about this field. |
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.
I think we need to define the meta field here to hold the "partial_data_links" key? Otherwise this PR would be inconsistent.
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.
I think I came across another commit which removed part of the definition of the metadata fields. So it looked like you forgot this piece, which is why I mentioned it.
Either both should be in or both should be out.
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.
Earlier I indeed removed a segment here that defined the property_metadata
subkey of meta
, which I agree belong better in #463. But, the segment you have marked now defines the meta
superkey we need for the partial_data_links
subkey.
I'm confused over what you are asking for. Are you saying we absolutely should not mention meta
with a link to 'JSON Response Schema: Common Fields' that defines meta -> partial_data_links
; despite that with this PR that key is an absolutely vital part of the 'Entry Listing JSON Response Schema'?
I have not slept properly in days and therefore have not made as much progress with reviewing as I wanted. I will continue tomorrow. |
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.
I left a comment with minor language edit, otherwise I approve!
Co-authored-by: Giovanni Pizzi <[email protected]>
@giovannipizzi , @merkys Thanks for getting your text fixes in before the deadline. Can you please do the Review->Accept so we can get this merged? Thanks! |
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.
I must admit I had not have enough time to look through the every detail of the proposal. However, I do believe the remaining bugs (if any) will become clear once people start implementing it. Thus in order to stop blocking the PR (and the release), I approve.
|
||
The following key is RECOMMENDED in the header object: | ||
|
||
- :field:`"returned_ranges"`: Array of Object. |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This pull request is work by me and @sauliusg to represents a rather long discussion at the meeting among @sauliusg, @JPBergsma , @giovannipizzi , @gmrigna , myself, and others.
It attempts to generate a flexible enough format with which it is possible to transmit list property data that is too big to fit in a single response.
We have decided to separate this from the related issues of providing functionality for a client to "slice" provided data. That will be done in a separate pull request, defining a
property_ranges
parameter to the "normal" OPTIMADE endpoints. The response to such a request may (but need not) lead to data being transmitted the way described here.