-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
#207 Feature: get in set #1238
Conversation
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) |
ff99949
to
853309b
Compare
Thanks @JyotinderSingh, I just rebased + fixed the issue, and its passing unit tests now. |
4f7aa41
to
b13bb83
Compare
internal/eval/store_eval.go
Outdated
} | ||
getOldVal = oldVal.Result |
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.
Can you please share this as a code suggestion? that way I would be able to accurately test it in local.
Hi @tejasa97 , thanks for your review , I ll be addressing them soon. |
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.
Thanks for adding this feature @apoorvyadav1111! The changes mostly look good, we can proceed with merge once the review comments by @tejasa97 are addressed.
Hi @JyotinderSingh , @tejasa97, have addressed the comments, please review. |
2212f27
to
bbdca95
Compare
bbdca95
to
aecede9
Compare
func generateFingrprint(cmdName string, key string) string { | ||
cmd := cmd.DiceDBCmd{ | ||
Cmd: cmdName, | ||
Args: []string{key}, | ||
} | ||
return fmt.Sprintf("%d", cmd.GetFingerprint()) | ||
} | ||
|
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.
fingerprint generation logic can be hidden away from the test, we can simply assert the behavior using a static string.
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.
Understood. have done this change in the latest commit.
Hi team,
Fixes: #207
Added support for GET option in SET.