Skip to content

Commit

Permalink
fix: remove archived tasks from poker scoping connection
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <[email protected]>
  • Loading branch information
mattkrick committed Dec 10, 2024
1 parent 171fbf6 commit 58b68a0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/client/mutations/handlers/handleUpsertTasks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ const handleUpsertTask = (task: Task | null, store: RecordSourceSelectorProxy<an
safePutNodeInConn(teamConn, task, store)
safePutNodeInConn(threadConn, task, store, 'threadSortOrder', true)
addNodeToArray(task, meeting, 'tasks', 'createdAt')
/* updates parabol search query if task is created from a sprint poker meeting
* should also implement updating parabol search query if task is created elsewhere?
*/
const scopingTasksConn = getScopingTasksConn(store, meetingId, viewer, [teamId])
safePutNodeInConn(scopingTasksConn, task, store, 'updatedAt', false)
if (userConn) {
const isPrivate = isTaskPrivate(tags)
const ownedByViewer = task.getValue('userId') === viewerId
Expand All @@ -71,11 +76,6 @@ const handleUpsertTask = (task: Task | null, store: RecordSourceSelectorProxy<an
}
}
}
/* updates parabol search query if task is created from a sprint poker meeting
* should also implement updating parabol search query if task is created elsewhere?
*/
const scopingTasksConn = getScopingTasksConn(store, meetingId, viewer, [teamId])
safePutNodeInConn(scopingTasksConn, task, store, 'updatedAt', false)
}

const handleUpsertTasks = pluralizeHandler(handleUpsertTask)
Expand Down

0 comments on commit 58b68a0

Please sign in to comment.