-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix getex command returning value for json based object #674
Fix getex command returning value for json based object #674
Conversation
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.
Hi, changes look good. Would it be okay for you to add another integration test that test the behaviour for SET data structure. This will ensure future modifications do not modify this behavior.
Thanks,
Apoorv
yea sure, done. |
name: "GetEx with key holding SET type", | ||
commands: []string{"SADD KEY 1 2 3", "GETEX KEY"}, | ||
expected: []interface{}{"OK", "WRONGTYPE Operation against a key holding the wrong kind of value"}, | ||
assert_type: []string{"equal", "equal"}, |
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.
Hi, the test is failing as you are not deleting key with name KEY
before executing an SADD
command. Please add a delete command for KEY
. please see line 151 for reference.
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.
incorporated. I have changed key name. Ideally, tests should be independent.
@apoorvyadav1111 @JyotinderSingh could u please check this PR. |
Hi @kapishmalik , I have reviewed the PR. I will not be merging it as I don't have permission to do so. One of the collaborators will pick this PR up as per their schedule. |
…returning-value-for-json-based-object
@JyotinderSingh could you please run the tests in workflow and merge this PR. |
…returning-value-for-json-based-object
@lucifercr07 @JyotinderSingh @apoorvyadav1111 can you please run tests in workflow and merge this PR as I need to resolve conflicts and merge master in this branch. |
@JyotinderSingh below failure is not related to my change. Can you please help here? --- FAIL: TestServerRestartAfterAbort (1.00s) |
I've retriggered the tests |
Thanks, we are good to merge this PR. |
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 the fix @kapishmalik. Thanks for the reviews @apoorvyadav1111. Approved.
This PR resolves #625.
DiceDB CLI screenshot:
![Screenshot 2024-09-21 at 2 41 17 AM](https://private-user-images.githubusercontent.com/16190254/369556075-1126d778-82ec-403d-ae89-e9eb4f9d60fb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzcwNjgsIm5iZiI6MTczOTIzNjc2OCwicGF0aCI6Ii8xNjE5MDI1NC8zNjk1NTYwNzUtMTEyNmQ3NzgtODJlYy00MDNkLWFlODktZTllYjRmOWQ2MGZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAxMTkyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTVhMGZlMDc0NjhlYjcyZjAzYTNiZjJmNTk0ZTg4MTY3ZTA2N2EwNDUwZmNmMzAxNzdhNmZkYTdlNjEyNTJlMTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.MfEKfrHwVQD2qVQmhU3nnFCwQ_R870xMz3vpHNwG2yE)
Integration test screenshot:
![Screenshot 2024-09-21 at 2 40 02 AM](https://private-user-images.githubusercontent.com/16190254/369556131-c1031da9-9feb-4bac-8551-3c3fdc59f1ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzcwNjgsIm5iZiI6MTczOTIzNjc2OCwicGF0aCI6Ii8xNjE5MDI1NC8zNjk1NTYxMzEtYzEwMzFkYTktOWZlYi00YmFjLTg1NTEtM2MzZmRjNTlmMWVlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAxMTkyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5NzBhZDhiYzJmZDQyZmFiZWJlOTJjY2FkM2QyMzBjZTkwYWUzMDI5MjY1MDM0ZGJmMTVmMWNjNjMyODgyY2MmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dgfAj14Qxj-S4NI_2wPsls94dcvid89oY3EcdawQGjE)
UTs screenshot:
![Screenshot 2024-09-21 at 2 37 01 AM](https://private-user-images.githubusercontent.com/16190254/369556191-ae013f9e-8813-474d-8c5d-9f1763d4be84.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMzcwNjgsIm5iZiI6MTczOTIzNjc2OCwicGF0aCI6Ii8xNjE5MDI1NC8zNjk1NTYxOTEtYWUwMTNmOWUtODgxMy00NzRkLThjNWQtOWYxNzYzZDRiZTg0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDAxMTkyOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4Njg3MmQzZjQ1MjljODNjZWIzN2E1ZGU5MGRlMzIwYWVhNjZhMmM4OGU3MWViOWZiNjlkNjg2NzJhZWE4NWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.mZVu9gFs_AlN8XVCVun1rIlsT20dJ6cIijX4upUqkjg)