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)
Fri, Mar 29, 1:13 PM
Unknown Object (File)
Fri, Mar 29, 12:54 PM
Unknown Object (File)
Sat, Mar 23, 12:40 PM
Unknown Object (File)
Sat, Mar 23, 12:40 PM
Unknown Object (File)
Mar 5 2024, 4:07 PM
Unknown Object (File)
Mar 3 2024, 9:36 PM
Unknown Object (File)
Feb 11 2024, 10:36 PM
Unknown Object (File)
Feb 9 2024, 1:57 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.