Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15418638
D18931.id45401.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D18931.id45401.diff
View Options
diff --git a/src/docs/user/userguide/herald.diviner b/src/docs/user/userguide/herald.diviner
--- a/src/docs/user/userguide/herald.diviner
+++ b/src/docs/user/userguide/herald.diviner
@@ -20,7 +20,7 @@
> When [ all of ] these conditions are met:
> [ Title ][ contains ][ quasar ]
-> Take these actions [ every time ] this rule matches:
+> Take these actions [ every time this rule matches: ]
> [ Add me as a subscriber ]
This rule will automatically subscribe you to any newly created or updated
@@ -106,6 +106,44 @@
any actions.
+Action Repetition Settings
+==========================
+
+Rules can be configured to act in different ways:
+
+**Every time the rule matches:** The rule will take actions every time the
+object is updated if the rule's conditions match the current object state.
+
+**Only the first time the rule matches:** The rule will take actions only once
+per object, regardless of how many times the object is updated. After the rule
+acts once, it won't run on the same object again.
+
+**If this rule did not match the last time:** This rule will take actions the
+first time it matches for an object. After that, it won't act unless the object
+just changed from not matching to matching.
+
+For example, suppose you have a rule like this:
+
+> When:
+> [ Title ][ contains ][ duck ]
+> Take actions [ if this rule did not match the last time: ]
+> [ Add comment ][ "Please prefer the term 'budget goose'." ]
+
+If you set this rule to act "every time", it will leave a comment on the task
+for every single update until the title is edited. This is usually pretty noisy.
+
+If you set this rule to act "only the first time", it will only leave one
+comment. This fixes the noise problem, but creates a new problem: if someone
+edits the title, then a later change breaks it again, the rule won't leave
+another reminder comment.
+
+If you set this rule to act "if it did not match the last time", it will leave
+one comment on matching tasks. If the task is fixed (by replacing the term
+"duck" with the term "budget goose", so the object no longer matches the rule)
+and then later changed to violate the rule again (by putting the term
+"duck" back in the title), the rule will act again.
+
+
Advanced Herald
===============
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 22, 12:34 AM (2 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7707823
Default Alt Text
D18931.id45401.diff (2 KB)
Attached To
Mode
D18931: Document the new "only if this didn't match last time" Herald action setting
Attached
Detach File
Event Timeline
Log In to Comment