HomePhabricator

When a Herald rule blocks a push, show which rule fired in the push log UI

Description

When a Herald rule blocks a push, show which rule fired in the push log UI

Summary:
Ref T13164. See PHI765. We currently show "Rejected: Herald" in the push log UI, but don't show which rule rejected a push.

We store this data, and it's potentially useful: either for hunting down a particular issue, or for getting a general sense of how often a reject rule is triggering (maybe because you want to tune how aggressive it is).

Show this data in the web UI, and include it in the data export payload.

Test Plan:

  • Pushed to a hosted repository so that I got blocked by a Herald rule.
  • Viewed the push logs in the web UI, now saw which rule triggered things.
  • Exported logs to CSV, saw Herald rule PHIDs in the data.

Screen Shot 2018-08-01 at 8.38.59 AM.png (1×1 px, 173 KB)

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13164

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