HomePhabricator

Add icon, color and profile image to project.query

Description

Add icon, color and profile image to project.query

Summary:

  • The icon CSS tag is transformed through the new function PhabricatorProjectIcon::getAPIName($key), which returns a name without fa-.
  • Color is a trivial lookup
  • Profile image returns the PHID or null if not available

Test Plan:

  • Create two projects, with different icon and color, one with and one without profile image.
  • Request information on both using project.query

Then:

  • Confirm icon and colors are correct for both projects
  • Confirm image PHID is correct
  • Confirm image PHID is null for the project without image

Reviewers: Blessed Reviewers, epriestley

Reviewed By: Blessed Reviewers, epriestley

Subscribers: yuvipanda, Korvin, legoktm, epriestley

Maniphest Tasks: T6501

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

Details

Provenance
valhallaswAuthored on
epriestleyCommitted on Nov 9 2014, 7:37 PM
epriestleyPushed on Nov 9 2014, 7:37 PM
Reviewer
Blessed Reviewers
Differential Revision
D10823: Add icon, color and profile image to project.query
Parents
rP6f971a0fc4d8: Phriction - if you can't edit x/y don't allow creating x/y/z
Branches
Unknown
Tags
Unknown