Skip to content

fix: ignore upload completions after changing records - #1839

Draft
Jacky-Pham wants to merge 1 commit into
Jacky/strr-upload-context-base-20260915from
Jacky/strr-upload-context-20260915
Draft

Jacky-Pham wants to merge 1 commit into
Jacky/strr-upload-context-base-20260915from
Jacky/strr-upload-context-20260915

Conversation

@Jacky-Pham

@Jacky-Pham Jacky-Pham commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

A Host application/registration or Strata application upload can finish after the user loads a different record. Its response then compares against the new record's documents and inserts an old file into the new list. A late failure also opens an error dialog over the new record.

Capture the document list when the request starts and apply its response or error dialog only while that list remains active. Record loaders and reset actions replace the list. Loading flags still clear, and active-record failures still reject for the existing retry flow. The server request continues against its original record.

Fifteen regression tests use the actual document stores, record loaders, rendered document lists, and API plugin with local synthetic endpoints. Before the fix, nine stale-completion/reset cases fail and six normal-upload controls pass. All fifteen pass after the fix. Full local suites pass 461 Host and 76 Strata tests, with clean lint.

Stacked on Jacky/strr-upload-context-base-20260915, which combines #1838 with the upload response/queue prerequisites from #1803 and #1822. This PR changes only the two document stores and their new regression tests. Browser navigation and real uploads remain separate checks.

Validation on review head f2652df0ce990f61fae3befe6cc6683633ba405f:

  • Host CI: lint, 461 tests and build pass.
  • Strata CI: lint, 76 tests and build pass.
  • Combined CI, QA head 9c7bf684b7c155ecb00dab4d0142b2c27983e96c: all five lint/test/build jobs pass; 1,183 tests (Base 41, Host 506, Platform 57, Strata 90, Examiner 489).
  • Strict diagnostic sets are unchanged against both the review prerequisite baseline and previous combined source. Combined totals remain 47 default / 32 configured; the profiles overlap and must not be added. Strict checking is not yet clean.

This repair covers additional uploads to existing applications and Host registrations. The separate first-time postDocument path remains under investigation.

@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant