test(e2e): ignore annotation catch-up during pane-drag network assert - #227
Conversation
test_drag_visible_pane_move_preserves_runtimes failed on #226 Full E2E with "pane move must not fetch: /api/works/" while runtime identity still held. Broad substring matching attributed late PDF annotation catch-up GETs from tree build to the spatial move. Wait for annotation gates idle before arming the listener (same as Main-close preservation), and assert entity detail GETs only via _url_is_entity_detail_get. Co-authored-by: Nikola Perović <Fooftilly@users.noreply.github.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: Fooftilly/PRKS/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe pane-move end-to-end test waits for PDF annotation materialization to settle before tracking requests. It excludes Range requests and checks specific Work, Person, Position, and PDF detail GETs. ChangesPane-Move Request Test
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The pane-move test retains checks for its fixture entities while ignoring annotation catch-up and PDF streaming requests; no material merge risk is evident. 🚥 Pre-merge checks | ✅ 8✅ Passed checks (8 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings
🧪 Generate unit tests (beta)
🛠️ Fix failing CI checks 💡
Comment |
PR Summary by QodoHarden pane-drag E2E assertion against annotation catch-up
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Qodo: dropping /api/pdfs/ left PDF remounts to the identity check alone. Add concrete /api/pdfs/<file> detail paths for both Work leaves, and ignore Range PDF streaming so byte-range loads are not treated as remounts. Co-authored-by: Nikola Perović <Fooftilly@users.noreply.github.com>
Summary
Unrelated Full E2E flake blocking #226 tip
552c240(run36233320046shard 2/4):WorkspaceDragDropTests.test_drag_visible_pane_move_preserves_runtimes—AssertionError: pane move must not fetch: /api/works/On that same run, #226’s Group
/sync-statetargets passed (test_group_metadata_save_failure_restores_button_for_retryok on 1/4; sibling ok on 4/4). #226 diff touches only Group save-intercept helpers (~L2972 / ~L4325–4470) — no drag /WorkspaceDragDropTests/ workspace-move path.Runtime identity on the failing run still held (PDF/notes/mounted unchanged); the assert was a broad
/api/works/substring match racing late PDF annotation catch-up GETs from tree build.Fix
Same pattern as Main-close runtime preservation in this file:
_wait_pdf_annotation_gates_idlebefore arming the request listener._url_is_entity_detail_getfor the four leaves’ concrete paths (not/annotations-snapshot,/opened, etc.).No timeout inflation, retries, sleeps, or empty tip-clears. Does not tip-clear #226.
Validation
--jobs 2 --no-pointer-capture.Coordination
552c240as-is.ca26ed5as-is.Summary by CodeRabbit