1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 00:02:41 +01:00
phorge-phorge/src/applications
epriestley 1094527072 Allow Herald to trigger audits for users or projects
Summary:
Allows you to write a commit rule that triggers an audit by a user (personal
rules) or a project (global rules).

Mostly this is trying to make auditing more lightweight and accessible in
environments where setting up Owners packages doesn't make sense.

For instance, Disqus wants a rule like "trigger an audit for everything that
didn't have a Differential revision". While not necessarily scalable, this is a
perfectly reasonable rule for a small company, but a lot of work to implement
with Owners (and you'll get a lot of collateral damage if you don't make every
committer a project owner).

Instead, they can create a project called 'Unreviewed Commits' and write a rule
like:

	- When: Differential revision does not exist
 	- Action: Trigger an Audit for project: "Unreviewed Commits"

Then whoever cares can join that project and they'll see those audits in their
queue, and when they approve/raise on commits their actions will affect the
project audit.

Similarly, if I want to look at all commits that match some other rule (say,
XSS) but only want to do it like once a month, I can just set up an audit rule
and go through the queue when I feel like it.

NOTE: This abuses the 'packagePHID' field to also store user and project PHIDs.
Through the magic of handles, this (apparently) works fine for now; I'll do a
big schema patch soon but have several other edits I want to make at the same
time.

Also:

	- Adds an "active" fiew for /audit/, eventually this will be like the
Differential "active" view (stuff that is relevant to you right now).
	- On commits, highlight triggered audits you are responsible for.

Test Plan: Added personal and global audit triggers to Herald, reparsed some
commits with --herald, got audits. Browsed all audit interfaces to make sure
nothing exploded. Viewed a commit where I was responsible for only some audits.
Performed audits and made sure the triggers I am supposed to be responsible for
updated properly.

Reviewers: btrahan, jungejason

Reviewed By: jungejason

CC: aran, epriestley

Maniphest Tasks: T904

Differential Revision: https://secure.phabricator.com/D1690
2012-02-27 09:36:30 -08:00
..
audit Allow Herald to trigger audits for users or projects 2012-02-27 09:36:30 -08:00
auth Make conduit read access_token and login the pertinent $user 2012-02-20 10:21:23 -08:00
base Send 403 for admin pages without being admin 2012-01-15 17:30:23 -08:00
calendar Build a basic calendar view 2011-08-08 10:34:06 -07:00
chatlog Add a basic chatlog 2012-02-17 10:21:38 -08:00
conduit OAuth Server enhancements -- more complete access token response and groundwork 2012-02-21 16:33:06 -08:00
countdown Use generic URIs 2012-01-16 14:53:05 -08:00
daemon Add buttons to delete or free tasks from the queue 2012-01-24 09:14:06 -08:00
differential Merge branch 'master' of github.com:facebook/phabricator 2012-02-24 15:29:04 -08:00
diffusion Allow Herald to trigger audits for users or projects 2012-02-27 09:36:30 -08:00
directory Fixed jump nav repo functionality to not mess with other jump nav functionality 2012-02-27 09:30:36 -08:00
draft/storage Revision comment drafts. 2011-02-05 16:57:21 -08:00
drydock Use setConcreteOnly() in Phabricator and only list/launch concrete Daemons 2012-01-25 11:50:59 -08:00
feed Add a "feed" filter to the home page; align things; allow browsing older stories 2012-02-15 17:48:14 -08:00
files Display //no name// for files without name to make the link clickable 2012-02-23 13:23:04 -08:00
help/controller Explicitly show that "escape" closes dialogs in Phabricator 2011-08-02 09:21:28 -07:00
herald Allow Herald to trigger audits for users or projects 2012-02-27 09:36:30 -08:00
maniphest Unify Maniphest + Differential comment styles 2012-02-24 13:02:35 -08:00
markup Show audit comments on the Diffusion commit view 2012-02-24 14:14:39 -08:00
metamta [mailing list] add paging 2012-02-22 12:47:13 -08:00
oauthserver OAuth Server -- add controllers to RUD client authorizations and CRUD clients 2012-02-24 14:56:18 -08:00
owners Update location for "Related Commits" link in owners tool list 2012-02-24 16:20:42 -08:00
paste Add line link to Paste 2012-02-08 10:54:57 -08:00
people Add email preferences to receive fewer less-important notifications 2012-02-17 22:57:07 -08:00
phid OAuth - Phabricator OAuth server and Phabricator client for new Phabricator OAuth Server 2012-02-19 14:00:13 -08:00
phriction Add a contextual "scope" dropdown for searches 2012-02-14 17:00:12 -08:00
project Added Additional Fuctionality to Jump Nav: Jump to users, projects, symbols, or 2012-02-20 10:23:51 -08:00
repository Allow Herald to trigger audits for users or projects 2012-02-27 09:36:30 -08:00
search Add a contextual "scope" dropdown for searches 2012-02-14 17:00:12 -08:00
slowvote Kill PhabricatorFileURI 2012-01-10 15:21:39 -08:00
status/base Add /status/ 2011-04-08 11:13:51 -07:00
typeahead/controller Add a name token table so on-demand typeaheads can match last names 2011-10-23 14:25:26 -07:00
uiexample Examples using JX.View 2011-11-06 15:17:00 -08:00
xhpastview Add missing includes from XHPAST parse bug. 2011-04-06 23:14:58 -07:00
xhprof Fix iframe issue for XHProf DarkConsole plugin 2012-01-28 11:17:19 -08:00