Page MenuHomePhabricator

Properly set project icon in timeline
ClosedPublic

Authored by chad on Sep 7 2016, 5:35 PM.
Tags
None
Referenced Files
F17894889: D16512.id39740.diff
Tue, Jul 29, 6:01 AM
F17849728: D16512.id.diff
Sun, Jul 27, 9:02 AM
F17841147: D16512.diff
Sat, Jul 26, 10:01 PM
Unknown Object (File)
Jun 19 2025, 8:30 PM
Unknown Object (File)
May 27 2025, 11:28 AM
Unknown Object (File)
Apr 25 2025, 12:41 PM
Unknown Object (File)
Apr 24 2025, 12:55 PM
Unknown Object (File)
Apr 23 2025, 1:42 AM
Subscribers

Details

Summary

This fixes a bug where the icon won't display since it doesn't include fa-.

Test Plan

Change icon on a project, revisit timeline and see icon.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Properly set project icon in timeline.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.Sep 7 2016, 5:36 PM

Actually, I think this is maybe still wrong? I think $new is just a key which happens to be the right value most of the time.

Actual code is this, I believe:

$set = new PhabricatorProjectIconSet();
$font_icon = $set->getIconIcon($new);
This revision was automatically updated to reflect the committed changes.

(If you set it to the "lock" icon I think this will try to render fa-policy, which is incorrect/invalid/does not exist.)

ah, I only tested group. I guess I got lucky.