mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Bucket Asana parent tasks by "assignee_status"
Summary: Ref T2852. When the parent task is actionable (needs revision, accepted) give it an "Upcoming" status; otherwise give it a "Later" status. Test Plan: Sync'd "Needs Revision" and "Needs Review" tasks and saw them both bucket correctly Reviewers: btrahan, chad Reviewed By: chad CC: aran Maniphest Tasks: T2852 Differential Revision: https://secure.phabricator.com/D6551
This commit is contained in:
parent
6750a48951
commit
ccbb8afe97
1 changed files with 6 additions and 0 deletions
|
@ -306,6 +306,12 @@ final class DoorkeeperFeedWorkerAsana extends FeedPushWorker {
|
|||
'POST',
|
||||
array(
|
||||
'workspace' => $workspace_id,
|
||||
// NOTE: We initially create parent tasks in the "Later" state but
|
||||
// don't update it afterward, even if the corresponding object
|
||||
// becomes actionable. The expectation is that users will prioritize
|
||||
// tasks in responses to notifications of state changes, and that
|
||||
// we should not overwrite their choices.
|
||||
'assignee_status' => 'later',
|
||||
) + $main_data);
|
||||
$parent_ref = $this->newRefFromResult(
|
||||
DoorkeeperBridgeAsana::OBJTYPE_TASK,
|
||||
|
|
Loading…
Reference in a new issue