Page MenuHomePhabricator

Badges ... on your profile
ClosedPublic

Authored by chad on Jul 23 2015, 4:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 20, 8:56 PM
Unknown Object (File)
Thu, Dec 19, 7:49 AM
Unknown Object (File)
Sat, Dec 14, 2:16 PM
Unknown Object (File)
Thu, Dec 12, 4:54 PM
Unknown Object (File)
Sun, Dec 8, 12:58 AM
Unknown Object (File)
Sat, Dec 7, 6:28 PM
Unknown Object (File)
Sat, Dec 7, 1:53 PM
Unknown Object (File)
Fri, Dec 6, 5:30 AM
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.