Page MenuHomePhabricator

Support "only the first time" in Maniphest
ClosedPublic

Authored by epriestley on Feb 11 2014, 12:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 10:29 AM
Unknown Object (File)
Thu, Apr 11, 10:22 AM
Unknown Object (File)
Wed, Apr 3, 3:28 PM
Unknown Object (File)
Fri, Mar 29, 5:19 AM
Unknown Object (File)
Feb 5 2024, 3:12 PM
Unknown Object (File)
Jan 24 2024, 3:45 PM
Unknown Object (File)
Jan 24 2024, 3:44 PM
Unknown Object (File)
Jan 24 2024, 3:44 PM
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

Repository
rP Phabricator
Branch
heraldevery
Lint
Lint Passed
Unit
Tests Passed