Page MenuHomePhabricator

Add "bin/herald rule ..." to modify Herald rules from the CLI
ClosedPublic

Authored by epriestley on May 31 2019, 2:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 1:46 AM
Unknown Object (File)
Fri, Dec 13, 11:53 PM
Unknown Object (File)
Fri, Dec 13, 6:05 AM
Unknown Object (File)
Fri, Dec 13, 4:53 AM
Unknown Object (File)
Wed, Dec 11, 3:00 AM
Unknown Object (File)
Sun, Dec 8, 2:16 PM
Unknown Object (File)
Fri, Dec 6, 6:53 PM
Unknown Object (File)
Thu, Dec 5, 6:33 AM
Subscribers

Details

Summary

Depends on D20566. Ref T13298. See PHI1280. Currently, there's no clean way to disable problematic personal rules. This comes up occasionally and sometimes isn't really the best approach to solving a problem, but is a generally reasonable capability to provide.

Allow Herald rules (including personal rules) to be disabled/enabled via bin/herald rule ... --disable/--enable.

Test Plan

Used the CLI to disable and enable a personal rule.

Diff Detail

Repository
rP Phabricator
Branch
herald2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22939
Build 31474: Run Core Tests
Build 31473: arc lint + arc unit

Event Timeline

jmeador added inline comments.
src/applications/herald/management/HeraldRuleManagementWorkflow.php
39

Not sure if there's a translation here, but the grammar seems a bit icky.

78

Assuming exmaple is the British spelling of example.

amckinley added inline comments.
src/applications/herald/management/HeraldRuleManagementWorkflow.php
39

Yeah, "a rule" seems to have been the intent.

This revision is now accepted and ready to land.Jun 2 2019, 8:33 AM

Oh, I edited "an to edit" into "an rule to edit" or something. Perhaps not my greatest work.