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)
Sat, Nov 23, 4:42 AM
Unknown Object (File)
Tue, Nov 19, 8:16 PM
Unknown Object (File)
Fri, Nov 15, 10:59 PM
Unknown Object (File)
Tue, Nov 12, 1:39 AM
Unknown Object (File)
Fri, Nov 8, 12:48 AM
Unknown Object (File)
Tue, Nov 5, 6:35 PM
Unknown Object (File)
Oct 25 2024, 3:59 AM
Unknown Object (File)
Oct 21 2024, 11:56 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.