1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-01 11:12:42 +01:00
phorge-phorge/src/applications/maniphest/storage
epriestley ad3745c801 Add a "columns" attachment to the maniphest.search API method
Summary:
Ref T12074. This allows callers to identify which columns an object appears in (currently, always tasks).

There are a few major cases:

  - Object is in a normal column: we return column information.
  - Object is in a proxy column (subproject or milestone). For example, when you look at the board for "Some Parent Project", the task might show up in a milestone column. I've chosen to not return anything in this case: you can figure out that the task is there by looking at the project structure, and this is kind of an internal artifact of the implementation and probably not useful to callers.
  - Project does not have a workboard: we return nothing.

These seem fairly reasonable, I think?

Test Plan:
  - Queried for tasks, using the "columns" attachment.
  - Dragged a task across a board, querying it repeatedly. Got expected results for normal column (the column), subprojects with no board (nothing), milestones with no board (nothing) and mielstones/subprojects with a board (the column on //that// board, only, not the proxy column on the parent).

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12074

Differential Revision: https://secure.phabricator.com/D17156
2017-01-08 13:18:01 -08:00
..
ManiphestCustomFieldNumericIndex.php Various linter fixes. 2014-02-26 12:44:58 -08:00
ManiphestCustomFieldStorage.php Various linter fixes. 2014-02-26 12:44:58 -08:00
ManiphestCustomFieldStringIndex.php Various linter fixes. 2014-02-26 12:44:58 -08:00
ManiphestDAO.php Remove @group annotations 2014-07-10 08:12:48 +10:00
ManiphestNameIndex.php Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
ManiphestSchemaSpec.php Automatically build all Lisk schemata 2014-10-02 09:51:20 -07:00
ManiphestTask.php Add a "columns" attachment to the maniphest.search API method 2017-01-08 13:18:01 -08:00
ManiphestTransaction.php Split "Edit Blocking Tasks" into "Edit Parent Tasks" and "Edit Subtasks" 2016-06-22 11:20:38 -07:00
ManiphestTransactionComment.php Rename "transactionpro" table to "transaction" 2013-09-24 10:49:16 -07:00