1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 07:12:41 +01:00
phorge-phorge/webroot/rsrc/js/application
epriestley add7bc418d Allow Herald to "Require legal signatures" for reviews
Summary:
Ref T3116. Add a Herald action "Require legal signatures" which requires revision authors to accept legal agreements before their revisions can be accepted.

  - Herald will check which documents the author has signed, and trigger a "you have to sign X, Y, Z" for other documents.
  - If the author has already signed everything, we don't spam the revision -- basically, this only triggers when signatures are missing.
  - The UI will show which documents must be signed and warn that the revision can't be accepted until they're completed.
  - Users aren't allowed to "Accept" the revision until documents are cleared.

Fixes T1157. The original install making the request (Hive) no longer uses Phabricator, and this satisfies our requirements.

Test Plan:
  - Added a Herald rule.
  - Created a revision, saw the rule trigger.
  - Viewed as author and non-author, saw field UI (generic for non-author, specific for author), transaction UI, and accept-warning UI.
  - Tried to accept revision.
  - Signed document, saw UI update. Note that signatures don't currently //push// an update to the revision, but could eventually (like blocking tasks work).
  - Accepted revision.
  - Created another revision, saw rules not add the document (since it's already signed, this is the "no spam" case).

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: asherkin, epriestley

Maniphest Tasks: T1157, T3116

Differential Revision: https://secure.phabricator.com/D9771
2014-06-29 07:53:53 -07:00
..
aphlict Show Aphlict connection status in notification menu 2014-06-23 16:26:16 -07:00
auth Add Persona auth provider 2013-10-14 14:34:57 -07:00
config Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
conpherence Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
countdown Fix countdown embeds and endless loops on resource loads in Javelin 2014-06-05 17:16:36 -07:00
dashboard Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
differential Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
diffusion Change double quotes to single quotes in JavaScript. 2014-06-24 03:35:39 +10:00
doorkeeper Various linter fixes. 2014-02-26 12:44:58 -08:00
files Various linter fixes. 2014-02-26 12:44:58 -08:00
harbormaster Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
herald Allow Herald to "Require legal signatures" for reviews 2014-06-29 07:53:53 -07:00
maniphest Change double quotes to single quotes in JavaScript. 2014-06-24 03:35:39 +10:00
owners Change double quotes to single quotes in JavaScript. 2014-06-24 03:35:39 +10:00
passphrase Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
phame Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
pholio Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
phortune Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
policy Change double quotes to single quotes in JavaScript. 2014-06-24 03:35:39 +10:00
ponder Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
projects Move general workboard actions to "Manage Board" dropdown 2014-06-25 12:30:53 -07:00
releeph Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
repository Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
search Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
slowvote Remove unused JavaScript variables. 2014-06-24 03:27:47 +10:00
transactions Change double quotes to single quotes in JavaScript. 2014-06-24 03:35:39 +10:00
uiexample Change double quotes to single quotes in JavaScript. 2014-06-24 03:35:39 +10:00