Page MenuHomePhabricator

Add a graph view page to Diffusion
ClosedPublic

Authored by chad on Jun 18 2017, 7:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 2:18 AM
Unknown Object (File)
Sat, Apr 13, 7:36 PM
Unknown Object (File)
Sat, Apr 13, 7:35 PM
Unknown Object (File)
Sat, Apr 13, 5:21 PM
Unknown Object (File)
Sat, Apr 13, 5:21 PM
Unknown Object (File)
Sat, Apr 13, 4:11 PM
Unknown Object (File)
Sat, Apr 13, 9:00 AM
Unknown Object (File)
Sat, Apr 13, 8:31 AM
Subscribers

Details

Summary

Fixes T12840. This adds a parallel "graph" button next to history on home and on the history list page. I'll think more about better placement of how to get to this page with the upcoming redesign that's still sitting in Pholio.

Test Plan

View History, View Graph, Try pager, go to a file, click view history, see no graph button.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Why doesn't the graph draw for history on a path?

For example, if I browse to src/View History, I don't get an option to see the graph.

(I'd personally prefer to replace the "List" history with the "Graph" history in every case, but putting a "View Graph" next to every "View History" link probably doesn't make much sense...)

This seems fine in any case, but I expect a graph of a path like src/maniphest/ to work; it represents a useful operation for answering questions like "Which of the recent Maniphest fixes got merged into stable?", which you can answer by going to src/maniphest/ then viewing the graph.

This revision is now accepted and ready to land.Jun 19 2017, 3:45 PM

Maybe I read the code wrong, but it didn't look like we showed a graph on paths?

Hmm, you're right. I don't know why that was the case. I guess we can sort it out in the future.

I tried it at first and it basically had a branch on every line.

|
|\
| \ \
|  \ \ \

It came from D2007. I think this was just a technical/scope restriction (since the feature was brand new), not an explicit product decision.

The way we build parents may need to change to make it work if path is nonempty. I can fiddle with this later if I care.

This revision was automatically updated to reflect the committed changes.