Page MenuHomePhabricator

Maniphest - introduce needProjectPHIDs
ClosedPublic

Authored by btrahan on Dec 17 2014, 11:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 2:49 AM
Unknown Object (File)
Sat, Apr 20, 11:02 AM
Unknown Object (File)
Fri, Apr 12, 3:40 PM
Unknown Object (File)
Thu, Apr 11, 10:09 AM
Unknown Object (File)
Thu, Apr 4, 8:10 PM
Unknown Object (File)
Mar 5 2024, 4:07 AM
Unknown Object (File)
Feb 16 2024, 7:54 AM
Unknown Object (File)
Feb 5 2024, 4:57 PM
Subscribers
Tokens
"Evil Spooky Haunted Tree" token, awarded by chad."Doubloon" token, awarded by epriestley.

Details

Summary

Ref T5245. This is some of the associated cleanup there.

Test Plan

foreach ManiphestTaskQuery site, I made the change (or not) and tested as follows:

Call sites where added needProjectPHIDs

  • PhabricatorHomeMainController - loaded the home page
  • ManiphestBatchEditController - batch edited some tasks (added a project)
  • ManiphestConduitAPIMethod - tested implicitly when tested ManiphestUpdateConduitAPIMethod
  • ManiphestInfoConduitAPIMethod - used the method via conduit console with input id : 1
  • ManiphestQueryConduitAPIMethod - used the method via conduit console with input ids : [1, 2]
  • ManiphestUpdateConduitAPIMethod - used the method via conduit with input id : 1 and comment : “asdasds"
  • ManiphestReportController - viewed “By User” and “By Project”
  • ManiphestSubpriorityController - changed the priority of a task via a drag on manphest home
  • ManiphestTaskMailReceiver - updated Task 1 via bin/mail receive-test with a comment that is the README
  • ManiphestTaskSearchEngine - loaded Manifest home page
  • ManiphestTaskEditController - edited a task
  • ManiphestTransactionEditor - closed a blocking task
  • ManiphestTransactionSaveController - commented on a task
  • PhabricatorProjectProfileController - viewed project with id of 1 that has a few tasks in it
  • PhabricatorSearchAttachController - merged tasks together
  • DifferentialTransactionEditor - submit a diff that references a task; commit the diff (thus closing the diff) and the task gets updated
  • PhabricatorRepositoryCommitMessageParserWorker - submit a diff that references a task; commit the diff (thus closing the diff) and the task gets updated

Calls sites where *did not* add needProjectPHIDs (they do not appear in this revision)

  • PhabricatorManiphestApplication - loaded the home page
  • ManiphestGetTaskTransactionsConduitAPIMethod - used the method via conduit console with input ids : [1, 2] ManiphestTaskDetailController - viewed a task with and without associated projects; finished workflow creating a task with a parent
  • ManiphestTransactionPreviewController - verified transaction preview showed up properly
  • PhabricatorProjectBoardViewController - viewed a board
  • PhabricatorProjectMoveController - moved a task around
  • ManiphestRemarkupRule - made a task reference like {T123}
  • ManiphestTaskQuery - executed a custom query for all tasks with page size of 2 and paginated through some tasks
  • ManiphestTaskPHIDType - nothing random seems broken? =D

Call sites where had to do something funky

  • ManiphestHovercardEventListener - loaded hover cards from task mentions

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Maniphest - introduce needProjectPHIDs.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
btrahan edited the test plan for this revision. (Show Details)
epriestley edited edge metadata.

Looks good to me, let's see what croaks.

We're safe on Herald on this one, at least, and that's the only real issue we hit last time around. Nice work!

src/applications/maniphest/controller/ManiphestSubpriorityController.php
16

This one's a little surprising to me -- does it end up hitting workboard stuff?

This revision is now accepted and ready to land.Dec 17 2014, 11:13 PM
src/applications/maniphest/controller/ManiphestSubpriorityController.php
16

The response is a "task card" which includes the projects, so we have to get the projects here.

This revision was automatically updated to reflect the committed changes.