-
Notifications
You must be signed in to change notification settings - Fork 68
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
Python - Implement JSON.MGET command #2507
Conversation
5afa929
to
f3019e1
Compare
f3019e1
to
25b6586
Compare
25b6586
to
3b35adc
Compare
3b35adc
to
da6dbf9
Compare
844ffc3
to
6fbf923
Compare
6fbf923
to
2107955
Compare
2107955
to
5c14340
Compare
5c14340
to
cb65830
Compare
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.
You need to update glide core to send this command to multiple nodes if multiple keys given and then aggregate the response (same as for mget
command).
Please do that or wait for my implementation of json.mget
for java with that change (coming soon)
fbd9911
to
99f6049
Compare
… into python/json.mget
… into python/json.mget
… into python/json.mget
Signed-off-by: BoazBD <boazbd@amazon.com>
Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com> Signed-off-by: BoazBD <50696333+BoazBD@users.noreply.github.com>
Signed-off-by: BoazBD <boazbd@amazon.com>
Signed-off-by: BoazBD <boazbd@amazon.com>
glide_client, | ||
[key1, key2], | ||
) | ||
assert result == [None] |
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.
path (Optional[TEncodable]): The path within the JSON documents. Default is root `$`.
If path really defaults to root, wouldn't the expected result of this test be the same as the one with $
as path, on linie 191?
If this test is indeed passing, maybe it is the doc that need to be fixed?
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.
After investigation, this is straight up wrong. path
should be required, not optional. Please see comment on parameter path
of the mget
function for detail.
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.
youre right, lets stick with Defaults to None.
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.
Please update tests too
glide_client, | ||
[key1, key2], | ||
) | ||
assert result == [None] |
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.
After investigation, this is straight up wrong. path
should be required, not optional. Please see comment on parameter path
of the mget
function for detail.
Signed-off-by: BoazBD <boazbd@amazon.com>
This Pull Request is linked to issue (URL): $645
Checklist
Before submitting the PR make sure the following are checked: