Change user findOne endpoint to return more data
- Dominant language
- TypeScript
- Stars
- 6
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Return all the needed data for the user profile page. Return
- favourite drinks, along with the total number of drinkActions for that drink by the user (or sum of millilitre?)
- blood alcohol content - only if the userId is the same as the signed in user - bac is not public!
- sum of money spent each month for the past year
Contributor guide
Research direction
Locate the user findOne endpoint and the data sources for drinkActions, BAC, and spending. Clarify whether favourite drinks should include action counts or millilitres, then define the past-year monthly totals and the signed-in-user check for BAC. Done means the endpoint returns these profile fields with BAC hidden for other users.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100