You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(ui): read dashboard update state from the operations store - #1446
DR-89 slice 3. The dashboard reads update state from the operations store through the hold-aware selector: status, from/to versions, batch and queue fields, and the pending-row filter. applyDashboardOperationPatch and its window listener are gone, and DashboardView reconciles holds after every fetch instead of watching a row fingerprint.
Codex found that a retry after a failed batch update could inherit the old batch id and queue position from the list-seeded row and show Queued instead of Updating. Fixed: the hold only reuses the previous operation when its id matches the incoming event. There's a regression test for that sequence.
Changelog
✨ Read dashboard operation state from useOperationStore.
✨ Added store-backed status, version, batch, queue, and pending-row handling.
✨ Added retry and stale-hold regression coverage.
🔧 Reconciled operation holds after container refreshes.
🗑️ Removed applyDashboardOperationPatch.
🗑️ Removed dd:sse-update-operation-changed listener handling.
🐛 Prevented retries from inheriting stale batch IDs or queue positions.
🐛 Cleared stale holds after resync when no operation remains.
⚠️ Review findings: unavailable.
⚠️ Test results: unavailable.
Concerns
Verify all dashboard consumers use useOperationStore instead of container.updateOperation.
Verify operation-store changes recompute rows without the removed SSE listener.
Verify no remaining references require applyDashboardOperationPatch or dd:sse-update-operation-changed.
Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.
📝 Walkthrough
Recent-update rows and SSE display holds now resolve operation data through the operation store. The dashboard no longer listens for operation-change events to patch container rows. Tests seed operation records in Pinia and cover queue metadata, retry holds, and hold reconciliation after a resync fetch.
Priority: ➖ Normal
Change: Refactor
Merge Risk:⚪ Minimal · up to 17696
The dashboard now reads update state from the operations store, which is fed by the app-level SSE connection, so live update status should keep working. No actionable merge-blocking risk was found in this review.
Pre-merge checks: 2
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches: 💡 1
🛠️ Fix failing CI checks: 💡
Commit to this branch
Create a new PR
📝 Generate docstrings
Commit to this branch
Create a new PR
🧪 Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DR-89 slice 3. The dashboard reads update state from the operations store through the hold-aware selector: status, from/to versions, batch and queue fields, and the pending-row filter.
applyDashboardOperationPatchand its window listener are gone, and DashboardView reconciles holds after every fetch instead of watching a row fingerprint.Codex found that a retry after a failed batch update could inherit the old batch id and queue position from the list-seeded row and show Queued instead of Updating. Fixed: the hold only reuses the previous operation when its id matches the incoming event. There's a regression test for that sequence.
Changelog
useOperationStore.applyDashboardOperationPatch.dd:sse-update-operation-changedlistener handling.Concerns
useOperationStoreinstead ofcontainer.updateOperation.applyDashboardOperationPatchordd:sse-update-operation-changed.