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

#207 Feature: get in set #1238

Merged

Conversation

apoorvyadav1111
Copy link
Contributor

@apoorvyadav1111 apoorvyadav1111 commented Nov 5, 2024

Hi team,

Fixes: #207

Added support for GET option in SET.

  • Doc updated
  • All test updated
  • All test pass

@apoorvyadav1111 apoorvyadav1111 changed the title #201 Feature: get in set #207 Feature: get in set Nov 5, 2024
@JyotinderSingh
Copy link
Collaborator

There seems to be a small test failure. Probably unrelated to your changes. Should be fixed with a rebase hopefully (or you can do it manually)

@apoorvyadav1111
Copy link
Contributor Author

Thanks @JyotinderSingh, I just rebased + fixed the issue, and its passing unit tests now.

}
getOldVal = oldVal.Result
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you please share this as a code suggestion? that way I would be able to accurately test it in local.

@apoorvyadav1111
Copy link
Contributor Author

Hi @tejasa97 , thanks for your review , I ll be addressing them soon.

Copy link
Collaborator

@JyotinderSingh JyotinderSingh left a comment

Choose a reason for hiding this comment

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

Thanks for adding this feature @apoorvyadav1111! The changes mostly look good, we can proceed with merge once the review comments by @tejasa97 are addressed.

@apoorvyadav1111
Copy link
Contributor Author

Hi @JyotinderSingh , @tejasa97, have addressed the comments, please review.
Thanks

Comment on lines 16 to 23
func generateFingrprint(cmdName string, key string) string {
cmd := cmd.DiceDBCmd{
Cmd: cmdName,
Args: []string{key},
}
return fmt.Sprintf("%d", cmd.GetFingerprint())
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

fingerprint generation logic can be hidden away from the test, we can simply assert the behavior using a static string.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood. have done this change in the latest commit.

integration_tests/commands/resp/getunwatch_test.go Outdated Show resolved Hide resolved
@JyotinderSingh JyotinderSingh merged commit 9a28b15 into DiceDB:master Nov 9, 2024
1 check passed
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.

Add support for GET in SET command
3 participants