Page MenuHomePhabricator

First stab at a badges typeahead
ClosedPublic

Authored by lpriestley on Apr 9 2016, 6:41 PM.
Tags
None
Referenced Files
F19912984: D15665.id37790.diff
Thu, Apr 2, 11:14 PM
F19851850: D15665.id37753.diff
Mar 13 2026, 1:13 AM
F19814195: D15665.diff
Mar 4 2026, 12:52 PM
F19800896: D15665.id37753.diff
Feb 28 2026, 7:13 PM
F19765257: D15665.id37751.diff
Feb 19 2026, 1:53 AM
F19699390: D15665.id37751.diff
Feb 10 2026, 7:49 PM
F19618366: D15665.id37751.diff
Feb 4 2026, 8:08 AM
F19614527: D15665.id37790.diff
Feb 3 2026, 10:06 PM
Subscribers

Details

Summary

Ref T10702

Test Plan

Open a user profile, attempt to award an archived or previously awarded badge, badges dialog should provide a typeahead, and the suggestions should offer details about whether a badge is archived or already awarded.

Diff Detail

Repository
rP Phabricator
Branch
badgesdatasource
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 11621
Build 14534: Run Core Tests
Build 14533: arc lint + arc unit

Event Timeline

lpriestley retitled this revision from to First stab at a badges typeahead.
lpriestley updated this object.
lpriestley edited the test plan for this revision. (Show Details)
lpriestley added a reviewer: epriestley.
lpriestley edited edge metadata.

Removing commented out code

epriestley edited edge metadata.
epriestley added inline comments.
src/applications/badges/controller/PhabricatorBadgesAwardController.php
22

For consistency, maybe rename this to badgePHIDs since it's a list now.

src/applications/badges/typeahead/PhabricatorBadgesDatasource.php
27

This will load some extra data we don't need. Use a separate awardquery to just fetch awards to the recipient instead.

This revision is now accepted and ready to land.Apr 9 2016, 7:42 PM
lpriestley marked 2 inline comments as done.
lpriestley edited edge metadata.

Specifying awards query in badges datasource

This revision was automatically updated to reflect the committed changes.