-
Notifications
You must be signed in to change notification settings - Fork 274
Support partial list update (append) in state manager #1134
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
base: main
Are you sure you want to change the base?
Conversation
15385bf to
88d6001
Compare
88d6001 to
126b258
Compare
|
Fixed tests, but there is still two failing because of docker hub image pull limits and one seems to be flaky test |
|
Hi @bushig, thanks for the PR. |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR was closed because it has been stalled for 14 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
|
@BeanieODM/beanie-devs is anyone willing to take a look at this PR? Although e.g. the data loss issue may still occur due to concurrent update from other processes, I believe this feature and the doc updates are worth merging. |
|
This PR is stale because it has been open 45 days with no activity. |
|
This PR is stale because it has been open 45 days with no activity. |
What's New
$pushoperator rather than replacing the entire array.More details
append()operations now generate MongoDB$pushoperations withstate_management=Truestate_management_replace_objects=False(which is the default)get_changes()method still shows the full array for compatibilityAlso thinking about adding option for unsafe direct array operations like changing elements by index, but still evaluating if its worth it.