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
F13186539: D20567.diff
Sat, May 11, 3:42 AM
Unknown Object (File)
Tue, May 7, 6:59 AM
Unknown Object (File)
Sat, May 4, 1:50 PM
Unknown Object (File)
Fri, May 3, 5:46 PM
Unknown Object (File)
Fri, May 3, 4:56 AM
Unknown Object (File)
Wed, May 1, 8:46 PM
Unknown Object (File)
Thu, Apr 25, 12:41 AM
Unknown Object (File)
Sat, Apr 20, 4:49 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.