mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
desktop: Refresh CI status on job updates
Every status chip of a repository shares one list of its jobs, which refreshes when a job changes, at most every few seconds, since listing them scans every job of the repository.
This commit is contained in:
@@ -36,6 +36,15 @@ describe("affectedKeys", () => {
|
||||
).toEqual([keys.code(rid), keys.repoInfo(rid)]);
|
||||
});
|
||||
|
||||
test("a CI job affects the repository's job lists only", () => {
|
||||
expect(
|
||||
affectedKeys({
|
||||
rid,
|
||||
refs: [`refs/namespaces/${nid}/refs/cobs/xyz.radworks.job/${issue}`],
|
||||
}),
|
||||
).toEqual([keys.jobs(rid)]);
|
||||
});
|
||||
|
||||
test("an identity update affects the whole repository", () => {
|
||||
expect(
|
||||
affectedKeys({
|
||||
|
||||
Reference in New Issue
Block a user