Add badge earned info to user profile badges API response #157
Labels
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: retoor/devplacepy#157
Loadingβ¦
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The user profile badges API response is missing information about how each badge was earned. In the webapp, hovering over a badge shows a message such as "Reacted 50 times" for the "Cheerleader" badge, but this message is absent from the API response.
Example current API response:
Steps to Reproduce
Not provided.
Expected Behaviour
The API response for badges should include the earned-by information (e.g., "Reacted 50 times" for the Cheerleader badge), matching what is shown in the webapp hover tooltip.
Actual Behaviour
The API response only includes
name,icon, andcreated_at. The message describing how the badge was earned is missing.Environment
Not provided.
Reported by Lensflare via DevPlace.
YELENA Β· project-manager β 2026-08-04T16:08:48.178329+00:00
Ticket claimed by team Dev Team ONE ELITE.
Branch: typosaurus/157-add-badge-earned-info-to-user-profile-badges-api-response
Agents assigned: @yelena, @katya, @mila, @vera, @nadia, @sveta, @tanya, @zoya, @irina, @oksana, @larisa
Next: Decompose the ticket into an executable tree.
YELENA Β· project-manager β 2026-08-05T09:11:15.397464+00:00
Progress
State: publishing
Completed: 17/17 nodes
Current: none β none
Cost: 0.2027 USD Β· Elapsed: 17h 2m
Completed
Open
Just checked the api response. Still missing. Do I need to wait?
Posted by Lensflare via DevPlace.
It did not even create a pull request young man.
Oh... ok.
Posted by Lensflare via DevPlace.
There are people questioning where the pull request is.
Posted by retoor via DevPlace.
YELENA Β· project-manager β 2026-08-04T23:11:27.631813+00:00
Result
Run completed for ticket #157.
Delivered:
Not delivered:
Verification: make test β see nodes
Commits: 3 Β· Cost: 0.1444 USD Β· Duration: 7h 2m
Pull request: #159
YELENA Β· project-manager β 2026-08-04T23:18:11.836299+00:00
Result
Run completed for ticket #157.
Delivered:
Not delivered:
Verification: make test β see nodes
Commits: 3 Β· Cost: 0.1444 USD Β· Duration: 7h 9m
Pull request: none
YELENA Β· project-manager β 2026-08-05T07:09:48.070035+00:00
Result
Run completed for ticket #157.
Delivered:
Not delivered:
Verification: make test β see nodes
Commits: 3 Β· Cost: 0.1534 USD Β· Duration: 15h 0m
Pull request: #160
imo, the ticket should be closed only after the pull request is merged
Posted by Lensflare via DevPlace.
YELENA Β· project-manager β 2026-08-05T08:49:51.806240+00:00
Pull request evidence
The pull request for ticket #157 exists and has been merged:
e02919a1db4bd420f,f72f2ed,68c4037,3a0f682origin/mastertip equals the merge commite02919a1db, so the change is live on masterYELENA Β· project-manager β 2026-08-05T09:10:41.719244+00:00
The
descriptionfield was missing in the live API response because the running instance servesmaster, and at the time of the checkmasterpredated the fix. The earned-by text existed only in the badge catalog and in the webapp hover tooltip; the JSON surface did not carry it.The gap is closed on
masternow:4bd420f,f72f2ed,68c4037,3a0f682on branchtyposaurus/157-add-badge-earned-info-to-user-profile-badges-api-response(PR #159)BadgeOutdeclaresdescription(devplacepy/schemas/content.py:71); the handler fills it per badge (devplacepy/routers/profile/index.py:204-208), sourced fromget_badge()(devplacepy/utils/badges.py:105)GET /profile/{username}withAccept: application/json;ProfileOut.badges: list[BadgeOut](devplacepy/schemas/profile.py:32). Before the merge,master'sBadgeOutheld onlyname/icon/created_at; after the merge it includesdescriptionmasteron 2026-08-05T02:21:37+02:00 (merge commite02919a1); the badge description tests passTo answer the question directly: yes, wait β but only for the deployment. No code gap remains; the live API will include the
descriptionfield once the instance is redeployed from the mergedmaster.YELENA Β· project-manager β 2026-08-05T09:37:14.312076+00:00
Result
Run completed for ticket #157.
Delivered:
Not delivered:
Verification: make test β see nodes
Commits: 3 Β· Cost: 0.2027 USD Β· Duration: 17h 28m
Pull request: #160