Homec4science

Add a priorityColor property to the maniphest conduit endpoint

Authored by Brayden Winterton <bwinterton@gmail.com> on Apr 9 2014, 20:32.

Description

Add a priorityColor property to the maniphest conduit endpoint

Summary:
I added a getTaskPriorityColor function to the ManiphestTaskPriority class which returns the color set in the maniphest config for the given priority.

This is in preparation for a change to arcanist which will allow it to display the priority color (if it is a supported color) upon running arc tasks.

Fixed some linting issues

Test Plan:
Invoke the maniphest.info method from conduit and ensure that:

  • The priorityColor property is given in the json
  • the priorityColor property is set correctly

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

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

Details

Committed
epriestley <git@epriestley.com>Apr 9 2014, 20:32
Pushed
aubortJan 31 2017, 17:16
Parents
rPH2d43cf12964d: OAuth - add a little notes section for admins to remember details about…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHb660960771a4: Add a priorityColor property to the maniphest conduit endpoint (authored by Brayden Winterton <bwinterton@gmail.com>).Apr 9 2014, 20:32