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, 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
Unknown Object (File)
Mar 29 2024, 1:13 PM
Unknown Object (File)
Mar 29 2024, 12:54 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
Branch
herald2
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 22935
Build 31468: Run Core Tests
Build 31467: arc lint + arc unit

Event Timeline

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

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

77

Assuming exmaple is the British spelling of example.

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

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.