-
Notifications
You must be signed in to change notification settings - Fork 64
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
Conversation
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.
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]( |
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.
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?
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.
@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 ?
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 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.
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.
Sorry, do you mean changing every call to use the new zRange and delete the deprecated methods ?
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.
Just change the calls in tests, don't delete.
Closes #999
Implement missing SortedSets commands and update ZRange command.