Skip to content

6592: Add onFlush listener for ManyToMany checksum propagation#347

Merged
tuj merged 6 commits intodevelopfrom
hotfix/2.6.1
Mar 2, 2026
Merged

6592: Add onFlush listener for ManyToMany checksum propagation#347
tuj merged 6 commits intodevelopfrom
hotfix/2.6.1

Conversation

@turegjorup
Copy link
Contributor

@turegjorup turegjorup commented Feb 25, 2026

Issue

#344

Description

  • Add onFlush Doctrine listener to detect ManyToMany collection changes that preUpdate misses, ensuring relation checksums propagate correctly up the entity tree
  • Add 5 integration tests covering add/remove on ScreenGroup.screens and Slide.media, plus upward propagation verification

Test plan

  • All 22 RelationsChecksumListenerTest tests pass (93 assertions)
  • Verify checksum updates are visible in the API for screens after ManyToMany collection changes

🤖 Generated with Claude Code

Add onFlush handler to detect ManyToMany collection changes that
preUpdate misses, ensuring checksums propagate correctly. Add tests
for add/remove on ScreenGroup.screens and Slide.media, plus upward
propagation through the entity tree.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@turegjorup turegjorup self-assigned this Feb 25, 2026
turegjorup and others added 2 commits February 25, 2026 20:21
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@turegjorup turegjorup requested a review from tuj February 25, 2026 19:28
@tuj tuj added the bug Something isn't working label Feb 26, 2026
@turegjorup turegjorup changed the base branch from main to develop February 26, 2026 08:18
tuj
tuj previously approved these changes Feb 26, 2026
Extract SQL generation and execution logic from RelationsChecksumListener
into a dedicated RelationsChecksumCalculator service. Add a new console
command (app:checksum:recalculate) to trigger checksum recalculation for
slides and media with optional --tenant and --modified-after filters.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add #[\Override] attributes to configure(), complete(), and execute().
Add explicit Doctrine types to setParameter() calls for tenant and date.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@turegjorup
Copy link
Contributor Author

Cross-reference: Client-side fix in os2display/display-admin-client#295

@tuj tuj mentioned this pull request Mar 2, 2026
@tuj tuj merged commit 4e6c47f into develop Mar 2, 2026
13 checks passed
@tuj tuj deleted the hotfix/2.6.1 branch March 2, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants