Page MenuHomePhabricator

Add a view option to disable blame in Diffusion and fix some view transition bugs
ClosedPublic

Authored by epriestley on Apr 28 2018, 1:55 PM.
Tags
None
Referenced Files
F15456519: D19414.diff
Sun, Mar 30, 10:20 AM
F15455724: D19414.diff
Sun, Mar 30, 4:26 AM
F15452100: D19414.id46439.diff
Sat, Mar 29, 1:46 AM
F15448541: D19414.id46449.diff
Fri, Mar 28, 5:30 AM
F15436286: D19414.id.diff
Tue, Mar 25, 1:07 PM
F15431870: D19414.diff
Mon, Mar 24, 3:02 PM
F15427490: D19414.id46449.diff
Sun, Mar 23, 2:40 PM
F15402040: D19414.id.diff
Mon, Mar 17, 8:16 PM
Subscribers
None

Details

Summary

See PHI604. Ref T13130. Ref T13105. There's currently no way to turn blame off in Diffusion. Add a "Hide Blame" option to the "View Options" dropdown so it can be toggled off.

Also fix a couple of bugs around this: for example, if you loaded a Jupyter notebook and then switched to "Source" view, blame would incorrectly fail to activate because the original rendering of the "stage" used an asynchronous engine so willRenderRef() wasn't called to populate blame.

Test Plan
  • Viewed a source file, toggled blame off/on, reloaded page to see state stick in URL.
  • Viewed a Jupyter notebook, toggled to "Source" view, saw blame.
  • Viewed stuff in Files (no blame UI options).
  • Tried to do some invalid stuff like toggle blame on a non-blame engine (options disable properly).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable