HomePhorge

Support "Set X to" as an action in Herald for tokenizer/datasource custom fields

Description

Support "Set X to" as an action in Herald for tokenizer/datasource custom fields

Summary:
See PHI173. Adds custom field support for Herald actions, and implements actions for "Datasource/Tokenizer" fields.

The only action available for now is "set field to...". Other actions ("Add values", "Remove values") might make sense in the future for these fields, but there's currently no use case. For most other field types (text, select, checkbox, etc) only "Set to" makes sense.

Test Plan:

  • Added a "datasource" custom field to the custom field definition in Config.
  • Added a "if field is empty, set field to default value X" rule to Herald.
  • Created a task with a nonempty field: no Herald trigger.
  • Created a task with an empty field: Herald fired.
  • Reviewed rule and transcripts for text strings.

{F5297615}

{F5297616}

{F5297617}

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D18784

Details

Provenance
epriestleyAuthored on Nov 27 2017, 3:11 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPe919233b3182: Don't show personalized menu items until users establish a full session
Branches
Loading...
Tags
Loading...

Event Timeline