docs(documents): qualify same-application attachment reload ordering
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
# Same-application attachment list ordering
|
||||
|
||||
17 November 2026. Source `e4847555` on `codex/a3-ui-10`, following published `1e9105df`.
|
||||
|
||||
Successive rename completions can start overlapping list reloads for the same application. The older reload could replace newer rows, show an obsolete failure, or clear the loading indicator before the latest read completed. An incrementing list request ID now supplements the existing mount/job/session guard for success, failure and finally. No write admission, request cancellation, endpoint, payload or server revision behavior changed.
|
||||
|
||||
Two initial ordering regressions FAILED. Final four-case fixtures exercised older success/failure both before and after the latest successful response; all four FAILED on original `1e9105df` source. Fixed source restored byte-for-byte after that replay. Final **107 cases/four complete affected suites PASSED**, zero failures/skips; intermediate105 overlaps107. Non-incremental TypeScript, two-file lint, source diff check and AST refresh PASSED19,326 nodes/47,466 edges. Native red logs retain their original whitespace, so whole-evidence diff whitespace is not a clean source-check claim.
|
||||
|
||||
Tests retain two original rename payloads/ID, three original list reads, newest rows, loading and error behavior. No real API/storage/browser/device or integrated security/release qualification; prior Next build remains FAILED. Rollback: revert this source commit, no migration. Source/native gzip bindings: `evidence/attachment-list-order/SOURCE_RECEIPTS.json`.
|
||||
|
||||
Separate follow-up: four EN/NB controlled-client/server-semantics cases reproduce one metadata control overwriting the other control's value while both requests are pending. The controller supports omitted fields. This finding and its new tests are outside this snapshot and need a separately verified partial-update fix. Same-field concurrent write ordering and backend concurrency remain unqualified.
|
||||
@@ -0,0 +1,91 @@
|
||||
{
|
||||
"sourceCommit": "e484755571d6f7ea5d968e4338584772e15cfa6f",
|
||||
"sourcesLfSha256": {
|
||||
"job-tracker-ui/src/components/Attachments.tsx": "61168d1693b1c0235232d994dbbce44eb8332932139049b650360d733615cc04",
|
||||
"job-tracker-ui/src/attachment-action-lifetime.test.tsx": "de28249389ec6bf861b8b5fd17e2a7934fc22f700427e9ae21d6d300cfc3df35",
|
||||
"job-tracker-ui/src/attachments.test.tsx": "20b023eedce62a660149c8436426bae0c5d2b2410b318069ab7f798fca6bc51b",
|
||||
"job-tracker-ui/src/file-picker-activation.test.tsx": "accb87f94a7b36373eec6583a391a17ede7e7779cf18d81d4a86b43e0bd6afbe",
|
||||
"job-tracker-ui/src/dialog-text.test.tsx": "60db06fb84238d356c6f7be657f6dcf0dc47c0b51cc5e89d001d6f9024fe44fe"
|
||||
},
|
||||
"evidenceLfSha256": {
|
||||
"red.json": "101e3a9c1c8399cdb2eccc25bb4ac23de7e2a9ec99abe4b70104039dcca216f9",
|
||||
"red.txt": "a5d076cbc17166299cdd42e97883bfbe668bddb8b9b207f6d41e040c5d27d31c",
|
||||
"red-final.json": "87e4076599227cd3cff9bc6839302ca107d6f4878ba42e0b1ad945b060ef1f8b",
|
||||
"red-final.txt": "56537f08a1531dbe764fc2a3c389a6021acc7f388aa215ade63f3183e668ef1d",
|
||||
"green.json": "3a618d79501b46782b24cfd49215a1c5488e58f987784edc0684ce44d5e23e05",
|
||||
"green.txt": "117475b06aa80c0165f9369fbad3f2014a4329b21d8829c4eca15a21b4a49a29",
|
||||
"final.json": "21b361768e7800f2c0f5a9a5e05e3ea4a99f3facc175d59d6bf83400a0e35c86",
|
||||
"final.txt": "9dfbf12825f63dff3278fddf43a797634d178bd2362beebf86512be18dbe0229",
|
||||
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"graph.txt": "e5608e0c4b9c96e517f5f4fcb1d87d4a1b8feaf3932bc4ac1aaf1092daae2d6d"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "red.json",
|
||||
"gzipPath": "red.json.gz",
|
||||
"rawSha256": "101e3a9c1c8399cdb2eccc25bb4ac23de7e2a9ec99abe4b70104039dcca216f9",
|
||||
"gzipSha256": "a3d084620714fa9faaa2202a4efa6aa23b4bc9cc55764b304936013552d23280"
|
||||
},
|
||||
{
|
||||
"path": "red.txt",
|
||||
"gzipPath": "red.txt.gz",
|
||||
"rawSha256": "596ae7ff3a2b9c372af271af41b5d372a9ca4ef07c4858f89a0be3344f82e85f",
|
||||
"gzipSha256": "09e2c176cd339c2135615b7e26239437d7c9d74edfc50cc033abdb4c9824de73"
|
||||
},
|
||||
{
|
||||
"path": "red-final.json",
|
||||
"gzipPath": "red-final.json.gz",
|
||||
"rawSha256": "87e4076599227cd3cff9bc6839302ca107d6f4878ba42e0b1ad945b060ef1f8b",
|
||||
"gzipSha256": "edf1f7933ba87eb9e301baee005178f122221a2dd03f1e150a66d72c8d9a9531"
|
||||
},
|
||||
{
|
||||
"path": "red-final.txt",
|
||||
"gzipPath": "red-final.txt.gz",
|
||||
"rawSha256": "56537f08a1531dbe764fc2a3c389a6021acc7f388aa215ade63f3183e668ef1d",
|
||||
"gzipSha256": "7c71f9ecb007d8b7e45b912bb11f59e958d88b2bd391014d48fc022330f90521"
|
||||
},
|
||||
{
|
||||
"path": "green.json",
|
||||
"gzipPath": "green.json.gz",
|
||||
"rawSha256": "3a618d79501b46782b24cfd49215a1c5488e58f987784edc0684ce44d5e23e05",
|
||||
"gzipSha256": "f005ad31e9e67d7e6ddca5d738af6893095e257db7b9a67de7c94ff29bd39b68"
|
||||
},
|
||||
{
|
||||
"path": "green.txt",
|
||||
"gzipPath": "green.txt.gz",
|
||||
"rawSha256": "65aec4b8450b76cad6b4a455a4dded68c51b4b054ffc88e001dcee5c30a4e903",
|
||||
"gzipSha256": "97392341cee4cd8347ebd6642387527de0c2b2687d834bbcb0410f635f7ae88b"
|
||||
},
|
||||
{
|
||||
"path": "final.json",
|
||||
"gzipPath": "final.json.gz",
|
||||
"rawSha256": "21b361768e7800f2c0f5a9a5e05e3ea4a99f3facc175d59d6bf83400a0e35c86",
|
||||
"gzipSha256": "c0004028a88aea7d847177500eb63b071091998252419c7b28e8584be99ec186"
|
||||
},
|
||||
{
|
||||
"path": "final.txt",
|
||||
"gzipPath": "final.txt.gz",
|
||||
"rawSha256": "e169842122b17cea6bee6508ce07b94037d1e6bbc1e0bbbad2246fcbfc34eb86",
|
||||
"gzipSha256": "34ae6230baf865dc5ff7e1e075050bf19007a4eeaec4f16a2516cca818afc7b7"
|
||||
},
|
||||
{
|
||||
"path": "typecheck.txt",
|
||||
"gzipPath": "typecheck.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
},
|
||||
{
|
||||
"path": "lint.txt",
|
||||
"gzipPath": "lint.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
},
|
||||
{
|
||||
"path": "graph.txt",
|
||||
"gzipPath": "graph.txt.gz",
|
||||
"rawSha256": "95cfd6a8772730b777f339573652e5ce2db906a2d2648ceeeb6e64748f46cff6",
|
||||
"gzipSha256": "fd001ee2bfc135f875a5e50885aae45bbfc84f1baf42f4a71bf17c67a0cfd83e"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
|
||||
Test Suites: 4 passed, 4 total
|
||||
Tests: 107 passed, 107 total
|
||||
Snapshots: 0 total
|
||||
Time: 28.903 s
|
||||
Ran all test suites matching src/attachment-action-lifetime.test.tsx|src/attachments.test.tsx|src/file-picker-activation.test.tsx|src/dialog-text.test.tsx.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-list-order-final.json
|
||||
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
Re-extracting code files in . (no LLM needed)...
|
||||
[graphify watch] 744 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+738 more)
|
||||
AST cache: 2626/3075 files served from cache (85%); 449 to extract
|
||||
AST extraction: 100/449 uncached files (22%) [16 workers]
|
||||
AST extraction: 200/449 uncached files (44%) [16 workers]
|
||||
AST extraction: 300/449 uncached files (66%) [16 workers]
|
||||
AST extraction: 400/449 uncached files (89%) [16 workers]
|
||||
AST extraction: 449/449 uncached files (100%) [16 workers]
|
||||
warning: 8 .sql file(s) contributed nothing to the graph because a dependency is missing: tree_sitter_sql not installed. Install it with: pip install "graphifyy[sql]" (#1745)
|
||||
warning: 145 code file(s) yielded no symbols (0.15 MB) — a data file, or source this extractor models no symbols for: JobTrackerApi.Tests/PdfBrowserStub/Program.cs, JobTrackerApi/Program.cs, JobTrackerApi/Properties/AssemblyInfo.cs, browser-extension/tests/capture-url.test.mjs, docs/audits/2026-09-07/validation/evidence/b05-excel-probe.ps1 (+140 more)
|
||||
[graphify watch] community set changed since labeling (0 saved labels, 1204 communities now; renamed 132 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
|
||||
Graph has 19326 nodes (above 5000 limit). Building aggregated community view...
|
||||
graph.html written (aggregated: 1204 community nodes, 3282 cross-community edges)
|
||||
Tip: run with --obsidian for full node-level detail.
|
||||
[graphify watch] Rebuilt: 19326 nodes, 47466 edges, 1204 communities
|
||||
[graphify watch] graph.json, graph.html and GRAPH_REPORT.md updated in graphify-out
|
||||
Code graph updated. For doc/paper/image changes run /graphify --update in your AI assistant.
|
||||
Tip: set GEMINI_API_KEY or GOOGLE_API_KEY to use Gemini for semantic extraction.
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
|
||||
Test Suites: 4 passed, 4 total
|
||||
Tests: 105 passed, 105 total
|
||||
Snapshots: 0 total
|
||||
Time: 22.054 s
|
||||
Ran all test suites matching src/attachment-action-lifetime.test.tsx|src/attachments.test.tsx|src/file-picker-activation.test.tsx|src/dialog-text.test.tsx.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-list-order-green.json
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,187 @@
|
||||
FAIL src/attachment-action-lifetime.test.tsx
|
||||
● older same-application attachment reload resolve cannot replace the latest list
|
||||
|
||||
TestingLibraryElementError: Unable to find an element with the text: Latest name.pdf. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body
|
||||
style=""
|
||||
>
|
||||
<div>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-1owejxv"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1v8ok63-MuiTypography-root"
|
||||
>
|
||||
Attachments (1)
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
|
||||
>
|
||||
Upload resumes, cover letters, portfolios, and supporting files for this application.
|
||||
</p>
|
||||
<div
|
||||
class="MuiBox-root css-x2j9i8"
|
||||
>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
0 images
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
1 PDFs
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
Max 10 MB each
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeSmall css-d8i980-MuiButton-startIcon"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
||||
data-testid="CloudUploadOutlinedIcon"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
Upload
|
||||
</button>
|
||||
<input
|
||||
hidden=""
|
||||
multiple=""
|
||||
type="file"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-497k9w"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1g7ym63-MuiTypography-root"
|
||||
>
|
||||
Drag and drop files here
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1moljxt-MuiTypography-root"
|
||||
>
|
||||
or use the upload button to choose documents from your device.
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
>
|
||||
Content loaded.
|
||||
</span>
|
||||
<div
|
||||
aria-label="Attachments (1)"
|
||||
class="MuiTableContainer-root css-1sde01b-MuiTableContainer-root"
|
||||
role="region"
|
||||
tabindex="0"
|
||||
>
|
||||
<table
|
||||
aria-label="Current documents"
|
||||
class="MuiTable-root css-1ii7ygr-MuiTable-root"
|
||||
>
|
||||
<thead
|
||||
class="MuiTableHead-root css-1a7iywq-MuiTableHead-root"
|
||||
>
|
||||
<tr
|
||||
class="MuiTableRow-root MuiTableRow-head css-1xtozoh-MuiTableRow-root"
|
||||
>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-10umtgd-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-vgdc2f-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Kind
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-by61h7-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Type
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-1vxk39h-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
...
|
||||
|
||||
111 | else older.reject(new Error('obsolete same-application read'));
|
||||
112 | });
|
||||
> 113 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
| ^
|
||||
114 | expect(screen.queryByText('Previous name.pdf')).not.toBeInTheDocument();
|
||||
115 | expect(screen.queryByText(translations.en.attachmentsLoadFailed)).not.toBeInTheDocument();
|
||||
116 | expect(mockedApi.get.mock.calls.map(([url]) => url)).toEqual(['/attachments/42', '/attachments/42', '/attachments/42']);
|
||||
|
||||
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
|
||||
at getByText (src/attachment-action-lifetime.test.tsx:113:17)
|
||||
|
||||
● older same-application attachment reload reject cannot replace the latest list
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <p class="MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root">Could not load this application's attachments.</p> instead
|
||||
|
||||
113 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
114 | expect(screen.queryByText('Previous name.pdf')).not.toBeInTheDocument();
|
||||
> 115 | expect(screen.queryByText(translations.en.attachmentsLoadFailed)).not.toBeInTheDocument();
|
||||
| ^
|
||||
116 | expect(mockedApi.get.mock.calls.map(([url]) => url)).toEqual(['/attachments/42', '/attachments/42', '/attachments/42']);
|
||||
117 | expect(mockedApi.patch.mock.calls).toEqual([
|
||||
118 | ['/attachments/7', { fileName: 'Previous name.pdf' }],
|
||||
|
||||
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:115:73)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 2 failed, 62 skipped, 64 total
|
||||
Snapshots: 0 total
|
||||
Time: 4.991 s
|
||||
Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "older same-application attachment reload".
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-list-order-red.json
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user