Page MenuHomePhabricator

Badges ... on your profile
ClosedPublic

Authored by chad on Jul 23 2015, 4:05 AM.
Tags
None
Referenced Files
F19641744: D13692.id33098.diff
Feb 5 2026, 7:46 PM
F19535085: D13692.diff
Jan 21 2026, 4:10 AM
F19518638: D13692.diff
Jan 15 2026, 10:04 PM
F19518637: D13692.diff
Jan 15 2026, 10:03 PM
F19516273: D13692.diff
Jan 14 2026, 10:07 PM
F19514118: D13692.diff
Jan 13 2026, 10:20 PM
F19514113: D13692.diff
Jan 13 2026, 10:18 PM
F19509184: D13692.id33098.diff
Jan 10 2026, 4:14 PM
Tokens
"Love" token, awarded by johnny-bit.

Details

Reviewers
epriestley
btrahan
lpriestley
Commits
Restricted Diffusion Commit
rPded654b8e2d5: Badges ... on your profile
Summary

Shows badges on profile if you have them. Check if app is installed, show badges.

Test Plan

Gave myself a liberal selection of badge. Gave notchad one badge. Gave chadtwo absolutely nothing.

pasted_file (588×1 px, 71 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

chad retitled this revision from to Badges ... on your profile.
chad updated this object.
chad edited the test plan for this revision. (Show Details)
chad added reviewers: epriestley, btrahan, lpriestley.
src/applications/people/controller/PhabricatorPeopleProfileController.php
209

This seems strange, I can make badges to all users and on public pages they are empty. What's correct here?

I presume I should remove the viewpolicy from badges.

johnny-bit added a subscriber: johnny-bit.
johnny-bit removed a subscriber: johnny-bit.
johnny-bit added a subscriber: johnny-bit.
epriestley edited edge metadata.

Ah, right. Yeah, I think just always giving them getMostOpenPolicy() is probably correct. I don't think we should have secret badges or whatever.

src/applications/people/controller/PhabricatorPeopleProfileController.php
207–210

You can just omit this, CAN_VIEW is the default.

226–228

These should go left one indent level I think?

This revision is now accepted and ready to land.Jul 23 2015, 5:27 PM

Did notchad really earn that badge?

This revision was automatically updated to reflect the committed changes.