Page MenuHomePhabricator

Badges ... on your profile
ClosedPublic

Authored by chad on Jul 23 2015, 4:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 9:35 AM
Unknown Object (File)
Tue, Nov 19, 9:03 AM
Unknown Object (File)
Mon, Nov 4, 10:43 PM
Unknown Object (File)
Fri, Nov 1, 10:22 PM
Unknown Object (File)
Oct 22 2024, 10:13 AM
Unknown Object (File)
Oct 6 2024, 5:16 AM
Unknown Object (File)
Oct 6 2024, 5:15 AM
Unknown Object (File)
Oct 6 2024, 3:06 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.