-
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
Command Migration: ('JSON.NUMINCRBY', 'JSON.NUMMULTBY', 'JSON.TOGGLE', 'JSON.FORGET') #1029
Comments
Hi @AshwinKul28 , can I please pick this up? Thank you :) |
Thanks @dankot12 go for it! 🚀 |
HI @dankot12 , I hope you are doing well. Do you happen to have any updates on this? If you've any doubts please let us know on the discord. |
@dankot12 , could you please confirm if you're currently working on this or something else? @AshwinKul28 can you assign an issue that hasn't received any updates from the assignee for a long time? |
Hey @vpsinghg go for it! Thanks 🚀 |
@AshwinKul28 I observed a issue in What should be the correct behavior ?
Redis output
|
Hey @vpsinghg , |
Can any one explain following. Why does response of
I've noticed that if I pass a string with a space (e.g., "name":"New York"), the command parsing and argument splitting in the command parser does not handle this scenario correctly. Currently observed this with |
@apoorvyadav1111 @lucifercr07 Can you please take care of this websocket Question? Thanks |
I believe there's an issue with websocket parser, for now can you create without spaces the test cases, so that we're not blocked on this. Will create an issue to get this fixed, shouldn't be a blocker for migration.
|
…ntegration testcases (#1261)
This issue tracks the migration of the mentioned commands - ('JSON.NUMINCRBY', 'JSON.NUMMULTBY', 'JSON.TOGGLE', 'JSON.FORGET') 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: