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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get_items without ids #579

Merged
merged 3 commits into from
Aug 21, 2023
Merged

Fix get_items without ids #579

merged 3 commits into from
Aug 21, 2023

Conversation

gadomski
Copy link
Member

@gadomski gadomski commented Aug 21, 2023

Related Issue(s):

Description:

Passing empty list to search has different semantics than None. Discovered when updating cassettes for a v0.7.3 release, so 馃憤馃徏 for having "update cassettes" part of the release process.

PR Checklist:

  • Code is formatted
  • Tests pass
  • Changes are added to the CHANGELOG

Passing empty list to `search` has different semantics than `None`.
@gadomski gadomski requested a review from jsignell August 21, 2023 12:38
@gadomski gadomski added this to the 0.7.3 milestone Aug 21, 2023
@gadomski gadomski self-assigned this Aug 21, 2023
@gadomski gadomski added the bug Something isn't working label Aug 21, 2023
Copy link
Member

@jsignell jsignell left a comment

Choose a reason for hiding this comment

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

This is fine, but maybe it should be handled in the .search method itself?

@gadomski
Copy link
Member Author

This is fine, but maybe it should be handled in the .search method itself?

Good point. The spec doesn't call out expected behavior w.r.t. missing vs empty, but as it seems nonsensical to say "search but don't return any items", moving it to search seems appropriate. Will fix.

@gadomski gadomski requested a review from jsignell August 21, 2023 15:40
Copy link
Member

@jsignell jsignell left a comment

Choose a reason for hiding this comment

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

Nice!

@gadomski gadomski merged commit a0a1735 into main Aug 21, 2023
17 checks passed
@gadomski gadomski deleted the fix-get-items-without-ids branch August 21, 2023 16:40
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

Successfully merging this pull request may close these issues.

None yet

2 participants