Page MenuHomePhabricator

Support "only the first time" in Maniphest
ClosedPublic

Authored by epriestley on Feb 11 2014, 12:48 AM.
Tags
None
Referenced Files
F18469811: D8193.diff
Tue, Sep 2, 5:10 PM
F18314853: D8193.id18538.diff
Sun, Aug 24, 8:04 AM
F18106950: D8193.diff
Aug 10 2025, 11:33 PM
F17933982: D8193.id18535.diff
Jul 30 2025, 9:47 PM
F17867998: D8193.id.diff
Jul 28 2025, 7:05 AM
F17861366: D8193.diff
Jul 27 2025, 10:45 PM
F17856606: D8193.diff
Jul 27 2025, 5:30 PM
F17819310: D8193.id18538.diff
Jul 26 2025, 1:04 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