Page MenuHomePhabricator

Reduce code duplication in Herald fields
ClosedPublic

Authored by epriestley on Jul 9 2015, 3:42 PM.
Tags
None
Referenced Files
F13082117: D13612.diff
Wed, Apr 24, 10:00 PM
Unknown Object (File)
Sun, Apr 21, 4:06 PM
Unknown Object (File)
Wed, Apr 17, 3:06 PM
Unknown Object (File)
Wed, Apr 17, 1:32 PM
Unknown Object (File)
Thu, Apr 11, 7:15 AM
Unknown Object (File)
Mon, Apr 8, 1:24 AM
Unknown Object (File)
Sat, Mar 30, 12:02 AM
Unknown Object (File)
Mar 25 2024, 1:51 PM
Subscribers
Tokens
"Doubloon" token, awarded by btrahan.

Details

Summary

Ref T8726. I want to modularize values and reduce how hard-coded / copypasta'd they are.

  • Rename get...StandardCondition() to get...StandardType(), since we can drive both conditions and values from it.
  • Rename STANDARD_LIST to STANDARD_PHID_LIST for consistency: all "lists" are lists of PHIDs.
  • For all standard types which don't require typehaeads, lift their logic into the base class.
  • I'll lift typeaheads soon, but need to generalize them first.
Test Plan

Edited various Herald rules, saw value UI generate correctly.

Diff Detail

Repository
rP Phabricator
Branch
herald1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7229
Build 7500: [Placeholder Plan] Wait for 30 Seconds
Build 7499: arc lint + arc unit

Event Timeline

epriestley retitled this revision from to Reduce code duplication in Herald fields.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
This revision is now accepted and ready to land.Jul 16 2015, 8:36 PM
This revision was automatically updated to reflect the committed changes.