1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-23 21:18:19 +01:00
phorge-phorge/src/applications/herald/field
epriestley b4796d2837 Add "Content type" and "Rule type" fields to Herald rules for Herald rules
Summary:
Depends on D19400. Ref T13130. Currently, when you write Herald rules about other Herald rules, you can't pick a rule type or content type, so there's no way to get notified about edits to just global rules (which is the primary driving use case).

Add a "Content type" field to let the rule match rules that affect revisions, tasks, commits, etc.

Add a "Rule type" field to let the rule match global, personal, or object rules.

Test Plan:
  - Wrote a global rule for other rules about global Herald rules:

{F5540307}

{F5540308}

  - Ran it against itself which matched:

{F5540309}

  - Ran it against another rule (not a global rule about Herald rules), which did not match:

{F5540311}

  - Also reviewed the fields in those transcripts in more detail to make sure they were extracting matching correctly.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13130

Differential Revision: https://secure.phabricator.com/D19403
2018-04-25 06:54:48 -07:00
..
__tests__ Add a trivial test case for HeraldField 2015-07-07 23:05:03 +10:00
rule Add "Content type" and "Rule type" fields to Herald rules for Herald rules 2018-04-25 06:54:48 -07:00
HeraldActingUserField.php Add an "Acting user" field to Herald 2018-02-08 09:52:18 -08:00
HeraldAlwaysField.php Group and order Herald fields 2015-07-16 14:13:13 -07:00
HeraldAnotherRuleField.php Correct rendering of "Another Herald Rule" conditions in Herald 2015-07-24 10:57:03 -07:00
HeraldBasicFieldGroup.php Group and order Herald fields 2015-07-16 14:13:13 -07:00
HeraldContentSourceField.php Modularize content sources 2016-03-26 11:59:45 -07:00
HeraldDeprecatedFieldGroup.php Mark the "Reviewer" field for Commits as deprecated 2018-01-26 11:07:02 -08:00
HeraldEditFieldGroup.php Group and order Herald fields 2015-07-16 14:13:13 -07:00
HeraldField.php Don't run Herald build and mail rules when they don't make sense 2017-10-27 08:44:12 -07:00
HeraldFieldGroup.php Use getPhobjectClassConstant() to access class constants 2015-10-01 16:56:21 -07:00
HeraldNewObjectField.php Group and order Herald fields 2015-07-16 14:13:13 -07:00
HeraldRelatedFieldGroup.php Group and order Herald fields 2015-07-16 14:13:13 -07:00
HeraldSupportFieldGroup.php Group and order Herald fields 2015-07-16 14:13:13 -07:00