Page MenuHomePhabricator

Show only the first N branches/tags on commits in Diffusion, with a "Show all..." link
Closed, ResolvedPublic

Description

I use Phabricator with a repository that has a lot of branches and tags, and a fairly rapid rate of branch and tag creation. As a result, most commits are contained in a large number of branches and tags. For example, one fairly representative commit is currently in 1,700 branches, and probably at least that many tags.

Unfortunately, this means that the list of branches and tags at the top of a commit detail page in Diffusion can grow to be quite large, which pushes the actual content of the commit far down the page. For the commit in 1,700 branches, for example, the list of changes doesn't appear until approximately halfway down the page.

It would be awesome if I could configure Diffusion to not show branches and tags by default for commits—at least for this repository—so that the list wouldn't take up so much space and push the change list so far down the page.

Event Timeline

edibiase updated the task description. (Show Details)
edibiase added a project: Diffusion.
edibiase added a subscriber: edibiase.

A nice middle ground would be if I could specify to show some branches by default—for example, just autoclose branches—and to have others hidden unless specifically requested.

I'd be inclined to show N branches, for some small value of N like 3 or 5 or 10, with a link to "Show 1,695 more branches which contain this commit...".

Preferentially choosing autoclose branches to order first in that N might be desirable, although picking the first N that the VCS gives us may be faster or more scalable (e.g., if you had 170,000 instead of 1,700, the cost to select the "good" ones might not be worth paying).

I'd be inclined to show N branches, for some small value of N like 3 or 5 or 10, with a link to "Show 1,695 more branches which contain this commit...".

Preferentially choosing autoclose branches to order first in that N might be desirable, although picking the first N that the VCS gives us may be faster or more scalable (e.g., if you had 170,000 instead of 1,700, the cost to select the "good" ones might not be worth paying).

I think limiting to a small value by default and providing the option to show more would work well in this case, since there are probably some times when I would want to see all of the branches, but, for the most part, showing the full list isn't useful. It'd also be nice to limit the initial query to a small number, as you suggest, to avoid querying for the full list of branches in the majority of cases, when I wouldn't be looking at them anyway.

I want to see stuffs like this too - this commit is messy, isn't it?

Maybe show default branch and first few branches and hide all others?

epriestley triaged this task as Normal priority.Oct 20 2015, 1:24 PM
epriestley moved this task from Backlog to vNext on the Diffusion board.
epriestley renamed this task from Option to hide the branches and tags for a commit by default to Show only the first N branches/tags on commits in Diffusion, with a "Show all..." link.Nov 23 2015, 11:00 PM
eadler added a project: Restricted Project.Jan 9 2016, 1:03 AM
eadler moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
epriestley edited projects, added Diffusion (v3); removed Diffusion.
epriestley moved this task from Backlog to Junk Behavior on the Diffusion (v3) board.