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

Python: add ZRANGESTORE command #258

Merged

Conversation

aaron-congo
Copy link

No description provided.

Stores a specified range of elements from the sorted set at `source`, into a new sorted set at `destination`. If
`destination` doesn't exist, a new sorted set is created; if it exists, it's overwritten.

When in Cluster mode, all keys must map to the same hash slot.

Choose a reason for hiding this comment

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

Should we add Note: ?

Suggested change
When in Cluster mode, all keys must map to the same hash slot.
When in Cluster mode, all `keys` must map to the same hash slot.

Copy link
Author

@aaron-congo aaron-congo May 1, 2024

Choose a reason for hiding this comment

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

Not sure, I don't mind adding it but the existing docs do not have it and previous comments from Sho on other PRs suggest she prefers following existing doc patterns. Regarding angle quotes, I've noticed Sho has asked us to remove angle quotes on other PRs if they are not present in the existing docs, for example see:
valkey-io#1315 (comment)
valkey-io#1357 (comment)

Since keys is not surrounded by angle quotes in the existing docs and Sho seems to prefer following existing patterns I suggest we leave them without I don't mind adding them but I have a feeling she would ask me to remove them once this goes upstream

Choose a reason for hiding this comment

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

We have it for 2 notes, but don't have it for one. Is it ok?

Copy link
Author

Choose a reason for hiding this comment

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

Yeah not sure what the AWS preference would be. They don't have a Note: before the hash slot warning in the existing docs. But they also don't have any existing docs with both the hash slot warning and the notice about blocking commands.

Copy link
Author

Choose a reason for hiding this comment

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

Following up, I followed the existing patterns (see here for details)

python/python/glide/async_commands/core.py Show resolved Hide resolved
@aaron-congo aaron-congo merged commit 4f39bc0 into python/integ_acongo_zrangestore May 2, 2024
6 checks passed
@aaron-congo aaron-congo deleted the python/dev_acongo_zrangestore branch May 2, 2024 20:37
aaron-congo added a commit that referenced this pull request May 2, 2024
acarbonetto pushed a commit that referenced this pull request May 6, 2024
* Python: add ZRANGESTORE command (#258)

* Update with PR link
tjzhang-BQ pushed a commit that referenced this pull request May 8, 2024
* Python: add ZRANGESTORE command (#258)

* Update with PR link
cyip10 pushed a commit that referenced this pull request Jun 24, 2024
* Python: add ZRANGESTORE command (#258)

* Update with PR link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants