Page MenuHomePhabricator

Respect repository identities when selecting author vs auditor actions
ClosedPublic

Authored by epriestley on Jun 17 2019, 5:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Mar 23, 12:42 PM
Unknown Object (File)
Feb 11 2024, 10:10 AM
Unknown Object (File)
Feb 7 2024, 11:59 AM
Unknown Object (File)
Feb 6 2024, 9:39 AM
Unknown Object (File)
Jan 6 2024, 7:46 AM
Unknown Object (File)
Dec 21 2023, 1:40 PM
Unknown Object (File)
Nov 30 2023, 5:45 AM
Unknown Object (File)
Nov 21 2023, 3:36 PM
Subscribers
None

Details

Summary

Depends on D20580. Fixes T13311. When we choose which actions to show a user, we can either show them "auditor" actions (like "raise concern") or "author" actions (like "request verification").

Currently, we don't show "author" actions if you're the author of the commit via an identity mapping, but we should. Use identity mappings where they exist.

(Because I've implemented getEffectiveAuthorPHID() in a way that requires $data be attached, it's possible this will make something throw a "DataNotAttached" exception, but: probably it won't?; and that's easy to fix if it happens.)

Test Plan

See D20580. As @alice, viewed the commit in the UI.

  • Before: got auditor actions presented to me.
  • After: got author actions.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable