Page MenuHomePhabricator

Explicitly decline to add commit authors as auditors from Herald
ClosedPublic

Authored by epriestley on Feb 23 2017, 10:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 28, 12:25 AM
Unknown Object (File)
Fri, Jan 24, 7:18 PM
Unknown Object (File)
Fri, Jan 24, 7:18 PM
Unknown Object (File)
Fri, Jan 24, 7:18 PM
Unknown Object (File)
Fri, Jan 24, 7:18 PM
Unknown Object (File)
Wed, Jan 22, 11:09 AM
Unknown Object (File)
Wed, Jan 22, 11:08 AM
Unknown Object (File)
Wed, Jan 22, 11:08 AM
Subscribers
None

Details

Summary

Fixes T12304. If you have a Herald rule which tries to add a commit author as an auditor, it fails validation when trying to apply.

Stop trying to apply these transactions, and explicitly tell the user why. Differential already uses a similar ruleset around reviewers, but Audit was using older code.

Test Plan
  • Wrote a Herald rule to add A, B and C as auditors.
  • Committed as A.
  • After change, saw B and C added with transacript guidance that A was the author.

Screen Shot 2017-02-23 at 2.42.02 PM.png (201×540 px, 33 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable