feat(FN-4899): complete Step 2 — support source metadata patches
Fusion-Task-Id: FN-4899 Fusion-Task-Lineage: 2ae24667-6635-4268-a620-d6012266d8f2
This commit is contained in:
committed by
gsxdsm
parent
4b01e8e66e
commit
9eb10fca7e
@@ -4510,6 +4510,14 @@ export class TaskStore extends EventEmitter<TaskStoreEvents> {
|
||||
}
|
||||
}
|
||||
if (updates.description !== undefined) task.description = updates.description;
|
||||
if (updates.sourceMetadataPatch === null) {
|
||||
task.sourceMetadata = undefined;
|
||||
} else if (updates.sourceMetadataPatch !== undefined) {
|
||||
task.sourceMetadata = {
|
||||
...(task.sourceMetadata ?? {}),
|
||||
...updates.sourceMetadataPatch,
|
||||
};
|
||||
}
|
||||
if (updates.priority === null) {
|
||||
task.priority = normalizeTaskPriority(undefined);
|
||||
} else if (updates.priority !== undefined) {
|
||||
|
||||
Reference in New Issue
Block a user