feat(FN-4044): restore github tracking patch persistence

Restored GitHub tracking patch persistence in the core store with matching test coverage in the task detail and routes tasks ops suites, plus documentation for the repaired flow.

Fusion-Task-Id: FN-4044
This commit is contained in:
Fusion
2026-05-11 17:50:30 -07:00
committed by gsxdsm
parent a318f196bc
commit ebb867ea4e
6 changed files with 100 additions and 7 deletions

View File

@@ -52,6 +52,23 @@ describe("TaskStore github tracking", () => {
});
});
it("persists githubTracking through generic updateTask patch flow", async () => {
const task = await store.createTask({ description: "Patch issue" });
await store.updateTask(task.id, {
githubTracking: {
enabled: true,
repoOverride: "octocat/hello-world",
},
});
const updated = await store.getTask(task.id);
expect(updated?.githubTracking).toEqual({
enabled: true,
repoOverride: "octocat/hello-world",
});
});
it("links and unlinks tracked issue while preserving other tracking fields", async () => {
const task = await store.createTask({ description: "Link issue" });