-
Notifications
You must be signed in to change notification settings - Fork 748
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
Update COPY and MOVE command description clearer in JSON file #1843
base: unstable
Are you sure you want to change the base?
Update COPY and MOVE command description clearer in JSON file #1843
Conversation
Signed-off-by: hwware <[email protected]>
84036f6
to
a4b5706
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #1843 +/- ##
============================================
+ Coverage 71.03% 71.07% +0.03%
============================================
Files 123 123
Lines 65666 65666
============================================
+ Hits 46648 46670 +22
+ Misses 19018 18996 -22 🚀 New features to boost your workflow:
|
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'm okay with this wording.
@@ -82,7 +82,7 @@ | |||
"const": 1 | |||
}, | |||
{ | |||
"description": "Source was not copied.", | |||
"description": "Source was not copied when the destination key already exists", |
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.
Is this description actually used anywhere?
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.
The words come from our webpage https://valkey.io/commands/move/ and https://valkey.io/commands/copy/, it makes user easier to understand
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.
The reply text on the website comes from the doc repo resp2_replies.json
and resp3_replies.json
.
@@ -52,7 +52,7 @@ | |||
"const": 1 | |||
}, | |||
{ | |||
"description": "Key wasn't moved.", | |||
"description": "When key already exists in the destination database, or it does not exist in the source database", |
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.
Lets also keep the old wording? The short one is a good wording too i think
"description": "When key already exists in the destination database, or it does not exist in the source database", | |
"description": "Key wasn't moved. When key already exists in the destination database, or it does not exist in the source database", |
As I do the code review for PR #1671 (Add multi-database support to cluster mode), I find
the return value message of the command COPY and MOVE is not very clear to user. Thus I update them in this PR and valkey-doc repo as PR valkey-io/valkey-doc#249