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

Add missing sortedSet commands and update ZRange command #1065

Merged
merged 9 commits into from
Mar 19, 2025

Conversation

hcwilhelm
Copy link
Contributor

@hcwilhelm hcwilhelm commented Mar 4, 2025

Closes #999

Implement missing SortedSets commands and update ZRange command.

@hcwilhelm hcwilhelm requested a review from a team as a code owner March 4, 2025 08:25
@hcwilhelm
Copy link
Contributor Author

@guizmaii @mijicd, please review this should fix the complete sortedSets ticket

Copy link
Member

@mijicd mijicd left a comment

Choose a reason for hiding this comment

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

One minor remark, otherwise LGTM!

* @return
* A list of members in the specified range with, optionally, their scores when the WITHSCORES option is given.
*/
final def zRange[K: Schema](
Copy link
Member

Choose a reason for hiding this comment

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

Since we're adding 7.x API, maybe we should remove the old zRange function and all "deprecated" functions (or at least "implement" them in terms of zRange and mark as deprecated)? WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mijicd Ok I deprecated the methods and implemented then in terms of the new zRange command, but CI/CD is failing because of the use of deprecated methods 🤔 How do I fix that ?

Copy link
Member

Choose a reason for hiding this comment

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

I think the only way to fix that (and keep the deprecation notes) is to live up to our suggestions, a.k.a. update affected calls to new zRange. Alternatively, we could live with ignoring warnings, but that's just postponing the previous approach.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, do you mean changing every call to use the new zRange and delete the deprecated methods ?

Copy link
Member

Choose a reason for hiding this comment

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

Just change the calls in tests, don't delete.

@mijicd mijicd enabled auto-merge (squash) March 19, 2025 12:53
@mijicd mijicd merged commit 58e2bd7 into zio:main Mar 19, 2025
12 checks passed
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.

Extend SortedSets API
2 participants