Skip to content

Issue 7416: Add GT and LT options to ZADD for conditional score updates#7818

Merged
oranagra merged 9 commits intoredis:unstablefrom
alexronke-channeladvisor:zadd-gx-lx
Sep 23, 2020
Merged

Issue 7416: Add GT and LT options to ZADD for conditional score updates#7818
oranagra merged 9 commits intoredis:unstablefrom
alexronke-channeladvisor:zadd-gx-lx

Conversation

@alexronke-channeladvisor
Copy link
Contributor

No description provided.

@alexronke-channeladvisor
Copy link
Contributor Author

This pull request should be linked to issue 7416 if/when it is approved.

@oranagra
Copy link
Member

@redis/core-team seems like a useful and trivial feature. what do you think?

@oranagra oranagra linked an issue Sep 19, 2020 that may be closed by this pull request
@oranagra oranagra added class:feature state:major-decision Requires core team consensus state:needs-doc-pr requires a PR to redis-doc repository labels Sep 19, 2020
@oranagra oranagra added this to the Redis 6.2 milestone Sep 19, 2020
@oranagra
Copy link
Member

@alexronke-channeladvisor thanks. everything looks good to me.
one thing that just now occurred to me is why use GX and LX and not GT and LT?
i.e. I suppose the X in NX is "exists", but here the condition is Greater Than.

@alexronke-channeladvisor
Copy link
Contributor Author

I did not realize that the X meant to stand for anything in particular. GT and LT make perfect sense to me.

@alexronke-channeladvisor alexronke-channeladvisor changed the title Issue 7416: Add GX and LX options to ZADD for conditional score updates Issue 7416: Add GT and LT options to ZADD for conditional score updates Sep 22, 2020
@oranagra oranagra added the state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten label Sep 23, 2020
@oranagra
Copy link
Member

@redis/core-team please approve trivial extension for the ZADD command (seems useful to me)

@oranagra oranagra merged commit 66a13cc into redis:unstable Sep 23, 2020
@oranagra
Copy link
Member

@alexronke-channeladvisor
Copy link
Contributor Author

@alexronke-channeladvisor thank you.
care to also make a PR for the command documentatoin? https://github.com/redis/redis-doc

Will do.

@alexronke-channeladvisor
Copy link
Contributor Author

PR for docs:
redis/redis-doc#1397

@alexronke-channeladvisor alexronke-channeladvisor deleted the zadd-gx-lx branch September 24, 2020 14:27
@oranagra oranagra removed this from the Next minor backlog milestone Oct 19, 2020
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Nov 4, 2020
@oranagra oranagra added the release-notes indication that this issue needs to be mentioned in the release notes label Dec 9, 2020
@oranagra oranagra mentioned this pull request Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

class:feature release-notes indication that this issue needs to be mentioned in the release notes state:major-decision Requires core team consensus state:needs-doc-pr requires a PR to redis-doc repository state:to-be-merged The PR should be merged soon, even if not yet ready, this is used so that it won't be forgotten

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZADD option: Conditionally Update Score for Existing Keys

5 participants