Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Comment the caching policy of taskListByUser wrt taskById

天舟a35e2d0de328
diff --git a/frontend/src/types/bytebase.ts b/frontend/src/types/bytebase.ts
index 6f3df2c5c0..65bd6c4ac8 100644
--- a/frontend/src/types/bytebase.ts
+++ b/frontend/src/types/bytebase.ts
@@ -691,6 +691,9 @@ export interface ActivityState {
}
export interface TaskState {
+ // [NOTE] This is only used by the task list view. We don't
+ // update the entry here if any task is changed (the updated task only gets updated in taskById).
+ // Instead, we always fetch the list every time we display the task list view.
taskListByUser: Map<UserId, Task[]>;
taskById: Map<TaskId, Task>;
}