Homec4science

Move many task status hardcodes into ManiphestTaskStatus

Authored by epriestley <git@epriestley.com> on Feb 18 2014, 00:59.

Description

Move many task status hardcodes into ManiphestTaskStatus

Summary:
Ref T1812. This cleans up most of the easy hard-coded references to specific statuses:

  • The "fixes" language moves into ManiphestTaskStatus.
  • Add a method to list open statuses.
  • Add a method to test if a status is open.
  • Add a method to get default status for new tasks.

Test Plan: Browsed around, lint, grep, created, filtered and updated tasks.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1812

Differential Revision: https://secure.phabricator.com/D8264

Details

Committed
epriestley <git@epriestley.com>Feb 18 2014, 00:59
Pushed
aubortJan 31 2017, 17:16
Parents
rPH8a725ece0f8b: Bring "fixes x as y" parser forward and use new parsers instead of old ones
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHf3cbc0e0066e: Move many task status hardcodes into ManiphestTaskStatus (authored by epriestley <git@epriestley.com>).Feb 18 2014, 00:59