Skip to content

list: Exclude tasks in subprojects and milestones - #37

Merged
brouberol merged 1 commit into
brouberol:mainfrom
gehel:list-exclude-subprojects
Oct 10, 2026
Merged

brouberol merged 1 commit into
brouberol:mainfrom
gehel:list-exclude-subprojects

Conversation

@gehel

@gehel gehel commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

"phable list" on a project also returns the tasks that are in its milestones and subprojects. The result set can be very large.

Phabricator does not seem to provide a way to query only for exact project match (excluding subprojects), so we find all subprojects and exclude them. This is a bit of a bulldozer approach but I can't find a nicer way to do it.

I haven't added a flag to toggle this additional filtering, as from a user point of view, it seems unlikely that we would ever want to list tasks from subprojects (and that list is likely to be too large anyway - hitting the 100 task per page limit, and we don't do pagination). Subprojects would also break when using column filtering (columns are project / board specific).

@gehel

gehel commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

Note that the current implementation adds a phabricator call for each list. Alternative implementation could be to either add a cli flag to disable this behaviour (not my preferred option, it seems unlikely to actually be needed by the user), or to exclude the filtering when using --milestone and assume that we don't have sub-milestones, or sub-subprojects. I'm also not super keen on this alternative as it makes strong assumptions about how we use phab (multiple levels of projects / milestones are allowed in phab, it just happens that we don't use them at the moment for our team).

Happy for suggestions!

"phable list" on a project also returns the tasks that are in its
milestones and subprojects. The result set can be very large.

Phabricator does not seem to provide a way to query only for
exact project match (excluding subprojects), so we find all
subprojects and exclude them. This is a bit of a bulldozer approach
but I can't find a nicer way to do it.

I haven't added a flag to toggle this additional filtering, as
from a user point of view, it seems unlikely that we would
ever want to list tasks from subprojects (and that list is likely
to be too large anyway - hitting the 100 task per page limit, and
we don't do pagination). Subprojects would also break when using
column filtering (columns are project / board specific).

Fixes: brouberol#35
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gehel
gehel force-pushed the list-exclude-subprojects branch from 6135a92 to b11729d Compare October 9, 2026 14:18
@brouberol
brouberol merged commit fab5f5f into brouberol:main Oct 10, 2026
4 checks passed
@brouberol

Copy link
Copy Markdown
Owner

Nicely done, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants