Skip to content
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: adds JSON.ARRINSERT command #2464

Open
wants to merge 1 commit into
base: release-1.2
Choose a base branch
from

Conversation

shohamazon
Copy link
Collaborator

Issue link

This Pull Request is linked to issue (URL): #645

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Commits will be squashed upon merging.

@shohamazon shohamazon requested a review from a team as a code owner October 16, 2024 10:54
@shohamazon shohamazon mentioned this pull request Oct 16, 2024
22 tasks
Copy link
Collaborator

@acarbonetto acarbonetto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@@ -139,6 +139,57 @@ async def get(
return cast(bytes, await client.custom_command(args))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changelog?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

adding at the end of every pr :)

) -> TJsonResponse[int]:
"""
Inserts one or more values into the array at the specified `path` within the JSON document stored at `key`, before the given `index`.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing the doc link.

Suggested change
See https://redis.io/docs/latest/commands/json.arrinsert/ for more details.

Apparently, there is no json document on valkey.io.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we decided to remove it for now, I'll see what we will do on feature freeze since its not a big deal for now

@shohamazon
Copy link
Collaborator Author

lgtm

thanks!

@Yury-Fridlyand
Copy link
Collaborator

ci is red - rebase?

For JSONPath (`path` starts with '$'):
Returns a list of integer replies for every possible path, indicating the new length of the array,
or None for JSON values matching the path that are not an array.
If `path` doe not exist, an empty array will be returned.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
If `path` doe not exist, an empty array will be returned.
If `path` does not exist, an empty array will be returned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants