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

Update COPY and MOVE command description clearer in JSON file #1843

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

hwware
Copy link
Member

@hwware hwware commented Mar 13, 2025

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

Signed-off-by: hwware <[email protected]>
@hwware hwware force-pushed the update-copy-move-command-reply-message-description branch from 84036f6 to a4b5706 Compare March 13, 2025 14:59
Copy link

codecov bot commented Mar 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.07%. Comparing base (1a975fa) to head (a4b5706).

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     

see 11 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@madolson madolson left a 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",
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Contributor

@zuiderkwast zuiderkwast Mar 18, 2025

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",
Copy link
Member

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

Suggested change
"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",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants