1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 10:52:41 +01:00
phorge-phorge/src/applications/differential/render
Bob Trahan 77eae81e1a Policy - fix up DifferentialChangesetParser
Summary:
Ref T7094. We should do a policy query on the files IMO because there exists a scenario where the file gets locked down directly. This requires being a bit more disciplined about setting user, which in turn requires deciding whether or not to show edit / reply links as a separate piece of logic, not conditional on user presence.

This is not the best code but I don't think it gets worse with this and is just some other nuance in any larger cleanup we take on someday.

Test Plan: looked at a revision and noted inline comments rendered correctly with reply / edit actions. looked at a diff standalone and noted no reply / edit actions as expected. looked at a "details" link on a transaction and it rendered correctly. looked at a diff in phriction of page edits and it looked good. grepped around and verified the remaining callsite in diffusion already has the setUser call.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7094

Differential Revision: https://secure.phabricator.com/D11579
2015-01-30 11:17:34 -08:00
..
DifferentialChangesetHTMLRenderer.php Policy - fix up DifferentialChangesetParser 2015-01-30 11:17:34 -08:00
DifferentialChangesetOneUpRenderer.php Set up colspec for differential 1up 2014-11-14 16:58:37 -08:00
DifferentialChangesetOneUpTestRenderer.php Implement basic one-up and test renderers 2013-01-14 14:20:06 -08:00
DifferentialChangesetRenderer.php Policy - fix up DifferentialChangesetParser 2015-01-30 11:17:34 -08:00
DifferentialChangesetTestRenderer.php Show image dimensions and some other metadata in Differential 2014-08-13 14:41:06 -07:00
DifferentialChangesetTwoUpRenderer.php Set up colspec for differential 1up 2014-11-14 16:58:37 -08:00
DifferentialChangesetTwoUpTestRenderer.php Implement basic one-up and test renderers 2013-01-14 14:20:06 -08:00
DifferentialRawDiffRenderer.php Move more hunk loads into DifferentialHunkQuery 2014-06-03 18:01:19 -07:00