mesh-knowledge: give a never-reviewed notice its resolved line when raised, and test a refused clear and local time in a set zone (review of #219)
mesh/merge-gate pass: builds mesh-knowledge → novox; no bus step; every machine composes with the change as it did without (4 of 4 compose)
mesh/repo-check pass: its merge-check.sh passed, each part in its toolchain: merge-check.sh (go), merge-check-typescript.sh (typescript)
mesh/delivery covered after its failure: a later walk that contains it was delivered: plan-1791744131193016639 (novox/mesh-catalog at 3fa07682 into main,…
mesh/merge-gate pass: builds mesh-knowledge → novox; no bus step; every machine composes with the change as it did without (4 of 4 compose)
mesh/repo-check pass: its merge-check.sh passed, each part in its toolchain: merge-check.sh (go), merge-check-typescript.sh (typescript)
mesh/delivery covered after its failure: a later walk that contains it was delivered: plan-1791744131193016639 (novox/mesh-catalog at 3fa07682 into main,…
The operator's channel edits a cleared message with the resolved line it was raised with, so one sent only with the clear was never shown.
This commit is contained in:
@@ -400,6 +400,7 @@ type world struct {
|
||||
// toldKeys are the keys told under, and cleared what was cleared: key, then its resolved line.
|
||||
toldKeys []string
|
||||
cleared [][2]string
|
||||
resolved []string // the resolved line given with each notice raised
|
||||
clock time.Time
|
||||
}
|
||||
|
||||
@@ -410,8 +411,8 @@ func newWorld(t *testing.T, s Store, records Records) *world {
|
||||
w.k = &KB{Store: s, Records: records, Reserve: w.tracker.reserve, Judge: w.judge.judge, Asks: w.router,
|
||||
Emit: w.said.emit, Settings: func() (Settings, error) { return Settings{}, nil }, Now: func() time.Time { return w.clock },
|
||||
Logf: func(f string, a ...any) { t.Logf(f, a...) },
|
||||
Notify: func(key, summary, headline, explanation string) error {
|
||||
w.told, w.toldKeys = append(w.told, summary), append(w.toldKeys, key)
|
||||
Notify: func(key, summary, headline, explanation, resolved string) error {
|
||||
w.told, w.toldKeys, w.resolved = append(w.told, summary), append(w.toldKeys, key), append(w.resolved, resolved)
|
||||
return nil
|
||||
},
|
||||
Clear: func(key, resolved string) error { w.cleared = append(w.cleared, [2]string{key, resolved}); return nil }}
|
||||
|
||||
Reference in New Issue
Block a user