Page MenuHomePhabricator

Allow Maniphest tasks to be queried by workboard Column PHID via SearchEngine
ClosedPublic

Authored by epriestley on Apr 13 2018, 1:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 7:41 PM
Unknown Object (File)
Fri, Apr 19, 7:13 PM
Unknown Object (File)
Mon, Apr 8, 9:18 PM
Unknown Object (File)
Sat, Mar 30, 6:20 AM
Unknown Object (File)
Fri, Mar 29, 3:20 AM
Unknown Object (File)
Mar 15 2024, 12:41 PM
Unknown Object (File)
Feb 3 2024, 6:46 PM
Unknown Object (File)
Dec 21 2023, 11:51 PM
Subscribers
None

Details

Summary

Ref T13120. See PHI571. Fixes T5024. This adds a "View as Query" action to workboard columns, which builds a query in Maniphest that has the current query constraints plus an additional constraint to select only tasks in the specified column.

This is a normal query and can be turned into a dashboard panel, added to a menu, edited, saved as a link, etc.

Much of the complexity here is that finding tasks in a given column isn't entirely straightforward because of how board layout works: when you create a task, it isn't immediately placed in columns. It's only actually added to the "Backlog" column on any boards when someone looks at the board.

To get the right behavior, we must do "board layout" for any queried columns before we can constrain results. This isn't enormously efficient, but should be OK for reasonable boards.

Test Plan
  • Used "View as Query" for normal columns and milestome columns, got appropriate queries in Maniphest.
  • Applied filters to the board (e.g., "Priorities: wishlist"), then used "View As Query" and had my custom filters respected.
  • Queried some large boards/columns with more than a thousand tasks, got results back within a second or so.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable