feat(hk): connect delivery failures to precise diagnostic records
CI / check (push) Successful in 3m31s
CI / deploy (push) Successful in 18s
CI / publish-container (push) Successful in 1m12s

This commit is contained in:
Simo committed 2026-09-13 20:25:03 +02:00
1 parent 275a574203
commit 60e49c1ec9
17 files changed
+253 -20

No files matched your search

+18
View File
@@ -75,3 +75,21 @@ it("links server operation IDs to the audit search without trusting browser IDs"
]).auditLink,
).toBeNull();
});
it("links a server delivery error to its exact persisted delivery only", () => {
const id = "840f4023-04cd-4d7b-92c5-047aa620029c";
const record = createErrorRecord(
"server",
"Delivery failed",
"private failure",
{ module: "operations", deliveryId: id },
);
expect(errorOperationLink(record)).toBe(`/admin/devops/deliveries?id=${id}`);
expect(errorOperationLink({ ...record, source: "browser" })).toBeNull();
expect(
errorOperationLink({
...record,
context: { module: "operations", deliveryId: "../settings" },
}),
).toBeNull();
});