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

Returning no Metadata if Metadata Spec is Empty #271

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

silvanheller
Copy link
Member

To be backward-compatible, the implementation of the MetadataAccessSpecification returned all metadata if the field was not set in a query. However, the intention (and what this PR fixes) was that if an empty List is provided, no metadata is returned. This saves execution time for queries which do not care about metadata.

…atible because all metadata is fetched if the provided spec is null
@silvanheller silvanheller requested a review from Spiess March 3, 2022 14:10
@silvanheller silvanheller self-assigned this Mar 3, 2022
Copy link
Member

@Spiess Spiess left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but since these changes are due to reasonable design decisions that don't appear to be documented anywhere, please add the appropriate class / function level documentation.

@silvanheller silvanheller requested a review from Spiess March 3, 2022 15:47
@silvanheller silvanheller merged commit 06a7812 into master Mar 3, 2022
@silvanheller silvanheller deleted the metadata-spec-fix branch March 3, 2022 16:18
silvanheller added a commit that referenced this pull request Jun 10, 2022
* actually returning 0 results if spec is empty. This is backwards-compatible because all metadata is fetched if the provided spec is null


Former-commit-id: 06a7812
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