docs: correct stale 'by entry id' resolve comments to the stable id
The referral and hazard resolve reconstructions now join on the intrinsic referralId/reportId, not the local Event Log id; the doc comments said otherwise.
This commit is contained in:
1 parent
1045b2b3f3
commit
a943e87de8
2 files changed
+3
-3
No files matched your search
@@ -179,7 +179,7 @@ export async function resolveHazard(
|
||||
/**
|
||||
* Replays the signed Event Log into the current set of hazard reports:
|
||||
* every `tunnelsafety.hazard.report` entry, each annotated with whether a
|
||||
* later `tunnelsafety.hazard.resolve` entry (by this entry's id) has since
|
||||
* later `tunnelsafety.hazard.resolve` entry (by the report's stable reportId) has since
|
||||
* closed it out. Returned in Lamport replay order.
|
||||
*/
|
||||
export function computeHazardReports(
|
||||
|
||||
@@ -210,7 +210,7 @@ export async function postReferral(triageResult: TriageResult): Promise<StoredEv
|
||||
|
||||
/**
|
||||
* Signs and appends one real `healthpost.referral.resolve` event
|
||||
* referencing a previously posted referral's Event Log id, so a clinician
|
||||
* referencing a previously posted referral's stable id (ReferralPayload.referralId), so a clinician
|
||||
* can mark a case handled and have it drop out of every device's open
|
||||
* queue on the next replay. This never touches the original referral entry
|
||||
* - resolution is purely an additional signed event that `extractReferrals`
|
||||
@@ -238,7 +238,7 @@ export async function resolveReferral(
|
||||
* `createdAtLamportTs` (the real append-order position, never a
|
||||
* caller-supplied or guessed value) - the same cold-replay reconstruction
|
||||
* `extractSymptomReports` performs above. A later
|
||||
* `healthpost.referral.resolve` event (by the referral's entry id) is
|
||||
* `healthpost.referral.resolve` event (by the referral's stable referralId) is
|
||||
* folded in as `status: "resolved"`, so a handled case drops out of the
|
||||
* open queue without the append-only log ever being mutated.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user