Page MenuHomePhabricator

Properly set project icon in timeline
ClosedPublic

Authored by chad on Sep 7 2016, 5:35 PM.
Tags
None
Referenced Files
F13105790: D16512.diff
Sat, Apr 27, 4:55 PM
Unknown Object (File)
Thu, Apr 25, 2:51 AM
Unknown Object (File)
Thu, Apr 18, 4:41 PM
Unknown Object (File)
Thu, Apr 11, 10:14 AM
Unknown Object (File)
Thu, Apr 11, 12:01 AM
Unknown Object (File)
Mar 18 2024, 5:20 AM
Unknown Object (File)
Mar 5 2024, 7:23 AM
Unknown Object (File)
Feb 20 2024, 3:15 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
Branch
proj-icon (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 13618
Build 17548: Run Core Tests
Build 17547: arc lint + arc unit

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.