Page MenuHomePhabricator

Improve display behavior for write locks held by omnipotent users
ClosedPublic

Authored by epriestley on Jun 1 2021, 1:13 PM.
Tags
None
Referenced Files
F13270039: D21669.diff
Wed, May 29, 8:44 AM
F13268945: D21669.diff
Wed, May 29, 5:34 AM
F13258956: D21669.id51572.diff
Sun, May 26, 2:26 PM
F13254491: D21669.diff
Sat, May 25, 3:27 AM
F13233783: D21669.diff
Tue, May 21, 2:34 AM
F13228053: D21669.id51568.diff
Mon, May 20, 6:42 AM
F13218379: D21669.id.diff
Sat, May 18, 12:18 PM
F13213805: D21669.diff
Fri, May 17, 8:05 AM
Subscribers
None

Details

Summary

Ref T13614. When an omnipotent user calls "synchronizeWorkingCopyBeforeWrite()", we record a WorkingCopyVersion record with a null "userPHID". The UI then renders this as "Unknown Object (????)".

Improve this behavior:

  • When no PHID is available, just render nothing in the UI (this doesn't seem meaningfully different from no version existing at all).
  • Allow callers to provide an acting user PHID, similar to Editor.

There's currently no way to perform this kind of write legitimately in the upstream, but T13614 is providing one.

Test Plan
  • Wrote a script that calls "synchronizeWorkingCopyBeforeWrite()" as the omnipotent user.
  • Ran script, saw "Unknown Object (????)" in the UI.
  • Applied UI fix, saw empty UI.
  • Applied "acting as" fix, modified script to act as the Diffusion application, ran script, saw "Diffusion" attribution in UI.

Screen Shot 2021-06-01 at 6.12.01 AM.png (131×374 px, 8 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Jun 1 2021, 3:30 PM
This revision was automatically updated to reflect the committed changes.