Page MenuHomePhabricator

Don't present users with Herald fields/actions for uninstalled applications, unless the rule already uses them
ClosedPublic

Authored by epriestley on Sep 12 2019, 7:57 PM.
Tags
None
Referenced Files
F13183885: D20808.id.diff
Fri, May 10, 12:56 PM
F13179408: D20808.diff
Wed, May 8, 9:11 PM
Unknown Object (File)
Tue, May 7, 5:28 PM
Unknown Object (File)
Sat, May 4, 6:44 PM
Unknown Object (File)
Thu, May 2, 5:01 PM
Unknown Object (File)
Wed, May 1, 12:04 AM
Unknown Object (File)
Sun, Apr 28, 12:03 PM
Unknown Object (File)
Sun, Apr 28, 5:55 AM
Subscribers
Restricted Owners Package

Details

Summary

Fixes T7961. Currently, we present Herald users with actions like "Require legalpad signatures" and "Run build plans" even if Legalpad and Harbormaster are not installed.

Instead, allow fields and actions to be made "unavailable", which means that we won't present them as options when adding to new or existing rules.

If you edit a rule which already uses one of these fields or actions, it isn't affected.

Test Plan
  • Created a rule with a legalpad action, uninstalled legalpad, edited the rule. Action remained untouched.
  • Created a new rule, wasn't offered the legalpad action.
  • Reinstalled the application, saw the action again.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable