mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
desktop: Refresh the cache after the user's own writes
Reviews and writes with announcing off or the node stopped never reach the node's events, so each write command now invalidates the data it changes, also when it fails partway. Views that pin data join that refetch instead of starting another.
This commit is contained in:
@@ -68,4 +68,22 @@ describe("affectedKeys", () => {
|
||||
}),
|
||||
).toEqual([keys.repo(rid)]);
|
||||
});
|
||||
|
||||
test("signed refs alone affect nothing", () => {
|
||||
expect(
|
||||
affectedKeys({
|
||||
rid,
|
||||
refs: [`refs/namespaces/${nid}/refs/rad/sigrefs`],
|
||||
}),
|
||||
).toEqual([]);
|
||||
});
|
||||
|
||||
test("an unknown COB type affects the whole repository", () => {
|
||||
expect(
|
||||
affectedKeys({
|
||||
rid,
|
||||
refs: [`refs/namespaces/${nid}/refs/cobs/org.example.thing/${issue}`],
|
||||
}),
|
||||
).toEqual([keys.repo(rid)]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user