-
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
Command Migration: ('SADD', 'SREM', 'SMEMBERS', 'SCARD') #1020
Comments
Hi @AshwinKul28 , can I please pick this up? Thank you :) |
Hey @dankot12 assigned other one to you, lets open this one up for others! Thanks |
@AshwinKul28 - please assign this to me. |
Hey @psrvere I see you have another issue assigned to you. Let's open this one up for others. Thanks |
@AshwinKul28 can i pick this up. thank you. |
@AshwinKul28 can you please assign this? |
@AshwinKul28 I'll be happy to pick this up |
Assigned to @sahoss . Go for it 🚀 Thanks for the interest @mojozinc and @gagandeepp you can have look at other issues, and we are opening more soon. |
@AshwinKul28 I have taken a pass at the implementation. I have migrated just the |
Thanks @sahoss , added few comments on the PR. |
Hello @sahoss, There has been no activity on this issue for the past 5 days. We are really eager to close this issue at the earliest, hence if we continue to see the inactivity, we will have to reassign the issue to someone else. We are doing this to ensure that the project maintains its momentum and others are not blocked on this work. Just drop a comment with the current status of the work or share any issues you are facing. We can always chip in to help you out. Thanks again. |
@arpitbbhayani |
This issue tracks the migration of the mentioned commands - ('SADD', 'SREM', 'SMEMBERS', 'SCARD') to make them compatible across the three protocols supported by the Dice database: RESP, HTTP, and WebSocket.
DiceDB now supports more than one protocols (Resp/http/websocket). We don't want eval operation of each command to be strictly bound with any of the protocols. Currently eval function return statements of each command is bounded to the RESP protocol.
The migration is required because:
The goal is to make the command logic protocol-independent, allowing all three protocols to call the same core functionality seamlessly.
Requirements
[Command Name]
to be generic.Migration Steps
Analyze Current Implementation
Refactor Return Logic
evalXXX(args []string, store *dstore.Store) *EvalResponse
under the file/internal/eval/store_eval.go
/errors/migrated_errors.go
file/internal/clientio/resp.go
file as RespType variablesCommand/Worker specific Changes
IsMigrated
flag to true in the commands information under/internal/eval/commands.go
file.NewEval
parameter in the same command structure./internal/eval/eval.go
file./internal/worker/CommandsMeta
map and make it's type asSingleShard
Update Unit Tests
Integration Tests
Checklist
Additional Notes
If there are any questions or concerns about this migration, please mention them here.
Related Issues/PRs
The text was updated successfully, but these errors were encountered: