Page MenuHomePhabricator

Badges ... on your profile
ClosedPublic

Authored by chad on Jul 23 2015, 4:05 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 6:41 PM
Unknown Object (File)
Mon, Nov 25, 1:06 AM
Unknown Object (File)
Sun, Nov 24, 1:06 AM
Unknown Object (File)
Sun, Nov 24, 12:53 AM
Unknown Object (File)
Sat, Nov 23, 10:42 PM
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
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
Branch
people-badges
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 7366
Build 7772: [Placeholder Plan] Wait for 30 Seconds
Build 7771: arc lint + arc unit

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.