Page MenuHomePhabricator

Add a "columns" attachment to the maniphest.search API method
ClosedPublic

Authored by epriestley on Jan 8 2017, 8:21 PM.
Tags
None
Referenced Files
F13090362: D17156.diff
Thu, Apr 25, 2:20 AM
Unknown Object (File)
Fri, Apr 19, 2:32 AM
Unknown Object (File)
Fri, Apr 19, 2:32 AM
Unknown Object (File)
Fri, Apr 19, 2:32 AM
Unknown Object (File)
Thu, Apr 11, 3:52 AM
Unknown Object (File)
Sun, Apr 7, 10:27 AM
Unknown Object (File)
Sun, Apr 7, 8:08 AM
Unknown Object (File)
Sun, Apr 7, 5:50 AM
Subscribers
None

Details

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).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 8 2017, 8:30 PM
This revision was automatically updated to reflect the committed changes.