-
Notifications
You must be signed in to change notification settings - Fork 955
In LOLWUT's reply, change "Redis ver." to "Valkey ver." #1559
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1559 +/- ##
============================================
+ Coverage 70.98% 71.00% +0.01%
============================================
Files 121 121
Lines 65176 65176
============================================
+ Hits 46264 46276 +12
+ Misses 18912 18900 -12
🚀 New features to boost your workflow:
|
zuiderkwast
left a comment
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.
Good, but we can avoid hard-coding the name.
(It's weird that we have SERVER_TITLE but we decided to name the version variable VALKEY_VERSION instead of SERVER_VERSION. Maybe there was a reason for that. I don't remember the discussion.)
|
Trying to understand the issue. AFAIK changing the lolwut can break some clients using it in order to get the current verison. The other issue is that we also have the "Easter eggs" lolwat (which are somewhat broken, for example you cannot enter lolwut which are also presenting the VALKEY_VERSION version and Redis brand (I wonder if these we can be changed). In anycase I think this should be marked as a breaking change |
|
@sarthakaggarwal97 I just looked. seems like @zuiderkwast suggestion to control this feature via extended-redis-compat might be fine. |
|
@ranshid @zuiderkwast if I understand this correctly, extended-redis-compat is stemming from #274 right? I see we have a configuration available in |
That's right. I think it's OK to use this config for lolwut. We should make a TSC decision about it though. I remember when we added this config, there were some concerns that it will give us a lot of extra maintenance work, so we decided to limit the scope to only a few things and to make it temporary and be phased out in 9.0. See the test "Extended Redis Compatibility config" in tests/unit/other.tcl |
017d7ab to
c53181f
Compare
c53181f to
cf8971d
Compare
|
Will just ask again: |
|
@ranshid apologies, but could you please elaborate on the rebranding on commands? What exactly would be required here? |
+1 |
|
We discussed it in a meeting today and decided to use the extended redis compat config for this as implemented in this PR, but the same change needs to be done in |
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
cf8971d to
92f4645
Compare
|
@zuiderkwast added extended redis compat config for lolwut5, lolwut6 as well. Please check once! |
zuiderkwast
left a comment
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.
LGTM, thanks.
@ranshid Please take another look.
|
please also update the top comment. |
Signed-off-by: Sarthak Aggarwal <[email protected]>
|
@enjoy-binbin added those suggestions! |
Done. Now describing the exact behavior with the config. @sarthakaggarwal97 please note. |
|
@zuiderkwast ah sorry, I got confused. I thought it was just for the suggestion. thank you. |
| /* There are commands that are not allowed inside scripts. */ | ||
| if (!server.script_disable_deny_script && (cmd->flags & CMD_NOSCRIPT)) { | ||
| *err = sdsnew("This Redis command is not allowed from script"); | ||
| *err = sdscatprintf(sdsempty(), "This %s command is not allowed from script", server.extended_redis_compat ? "Redis" : "Valkey"); |
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 we should mention this change too in the top comment.
Make LOLWUT it print the current Valkey version rather than the Redis version. Retain the old behaviour and print the compatible Redis version if the `extended-redis-compat` config is enabled. Additionally, change "Redis" to "Valkey" in an error message "This Redis command is not allowed from script", also depending on the `extended-redis-compat` config. --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Shai Zarka <[email protected]>
Make LOLWUT it print the current Valkey version rather than the Redis version. Retain the old behaviour and print the compatible Redis version if the `extended-redis-compat` config is enabled. Additionally, change "Redis" to "Valkey" in an error message "This Redis command is not allowed from script", also depending on the `extended-redis-compat` config. --------- Signed-off-by: Sarthak Aggarwal <[email protected]>
Make LOLWUT it print the current Valkey version rather than the Redis version. Retain the old behaviour and print the compatible Redis version if the
extended-redis-compatconfig is enabled.Additionally, change "Redis" to "Valkey" in an error message "This Redis command is not allowed from script", also depending on the
extended-redis-compatconfig.