Skip to content

Fix basic update overriding values. #4921

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

Closed
wants to merge 4 commits into from
Closed

Fix basic update overriding values. #4921

wants to merge 4 commits into from

Conversation

christophstrobl
Copy link
Member

This change makes sure BasicUpdate appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the @Update annotation with versioned entities can lead to loss of update information.

Closes: #4918

This change makes sure basic update appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the Update annotation with versioned entities can lead to loss of update information.
christophstrobl and others added 2 commits March 12, 2025 09:04
Merge List values in Update. Add tests, reformat code.
@mp911de mp911de added the type: bug A general bug label Mar 12, 2025
mp911de pushed a commit that referenced this pull request Mar 12, 2025
This change makes sure basic update appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the Update annotation with versioned entities can lead to loss of update information.

Closes: #4918
Original pull request: #4921
mp911de added a commit that referenced this pull request Mar 12, 2025
Merge List values in Update. Add tests, reformat code.

See: #4918
Original pull request: #4921
mp911de pushed a commit that referenced this pull request Mar 12, 2025
This change makes sure basic update appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the Update annotation with versioned entities can lead to loss of update information.

Closes: #4918
Original pull request: #4921
mp911de added a commit that referenced this pull request Mar 12, 2025
Merge List values in Update. Add tests, reformat code.

See: #4918
Original pull request: #4921
mp911de pushed a commit that referenced this pull request Mar 12, 2025
This change makes sure basic update appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the Update annotation with versioned entities can lead to loss of update information.

Closes: #4918
Original pull request: #4921
mp911de added a commit that referenced this pull request Mar 12, 2025
Merge List values in Update. Add tests, reformat code.

See: #4918
Original pull request: #4921
@mp911de mp911de added this to the 4.3.10 (2024.0.10) milestone Mar 12, 2025
@mp911de
Copy link
Member

mp911de commented Mar 12, 2025

That's merged, polished, and backported now.

@mp911de mp911de closed this Mar 12, 2025
@mp911de mp911de deleted the issue/4918 branch March 12, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update using $inc does not work if @Version is present in the entity
2 participants