Homec4science

Improve audit behavior for "uninteresting" auditors

Authored by epriestley <git@epriestley.com> on May 17 2016, 20:56.

Description

Improve audit behavior for "uninteresting" auditors

Summary:
Ref T10939. Fixes T10174. We can currently trigger "uninteresting" auditors in two ways:

  • Packages with auditing disabled ("NONE" audits).
  • Packages with auditing enabled, but they don't need an audit (e.g., author is a pacakge owner; "NOT REQUIRED" audits).

These audits aren't interesting (we only write them so we can list "commits in this package" from other UIs) but right now they take up the audit slot. In particular:

  • They show in the UI, but are generally useless/confusing nowadays. The actual table of contents does a better job of just showing "which packages do these paths belong to" now, and shows all packages for each path.
  • They block Herald from adding real auditors.

Change this:

  • Don't show uninteresting auditors.
  • Let Herald upgrade uninteresting auditors into real auditors.

Test Plan:

  • Ran bin/repository reparse --owners <commit> --force, and --herald to trigger Owners and Herald rules.
  • With a package with auditing disabled, triggered a "None" audit and saw it no longer appear in the UI with the patch applied.
  • With a package with auditing disabled, added a Herald rule to trigger an audit. With the patch, saw it go through and upgrade the audit to "Audit Required".

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10174, T10939

Differential Revision: https://secure.phabricator.com/D15940

Details

Committed
epriestley <git@epriestley.com>May 17 2016, 22:47
Pushed
aubortJan 31 2017, 17:16
Parents
rPH9c24798e64c9: Update Owners auditing rules for multiple reviewers
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHde1a30efc740: Improve audit behavior for "uninteresting" auditors (authored by epriestley <git@epriestley.com>).May 17 2016, 22:47