Skip to content

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 force-pushed the fix-get-items-without-ids branch from a1742ef to 8a1e69f Compare August 21, 2023 12:38
@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
@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.

3 participants