Page MenuHomePhabricator

Support "only the first time" in Maniphest
ClosedPublic

Authored by epriestley on Feb 11 2014, 12:48 AM.
Tags
None
Referenced Files
F15482404: D8193.id.diff
Wed, Apr 9, 5:13 AM
F15480836: D8193.diff
Tue, Apr 8, 4:53 PM
F15438669: D8193.diff
Wed, Mar 26, 2:33 AM
F15409714: D8193.id18535.diff
Wed, Mar 19, 4:54 AM
Unknown Object (File)
Feb 23 2025, 10:19 PM
Unknown Object (File)
Feb 14 2025, 5:40 AM
Unknown Object (File)
Feb 14 2025, 5:40 AM
Unknown Object (File)
Feb 14 2025, 5:40 AM
Subscribers
Tokens
"Love" token, awarded by dctrwatson.

Details

Summary

Ref T4403. Implements "only the first time" for Maniphest rules, and fixes the trigger itself.

The trigger would never fire and block rules because it was comparing a string (like "first") to an int (like 0).

The "only" vs "every" stuff is contributed and I should have pushed back harder on this toInt / toString stuff. Maybe I'll just get rid of it; it purely causes confusion and problems.

Test Plan

Wrote an "only the first time" rule, ran it twice, it applied once.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped