Skip to content

[SSF 186] - Dashboard Stats Controller Backend#163

Open
dburkhart07 wants to merge 5 commits intomainfrom
ddb/SSF-186-dashboard-stats-controller-backend
Open

[SSF 186] - Dashboard Stats Controller Backend#163
dburkhart07 wants to merge 5 commits intomainfrom
ddb/SSF-186-dashboard-stats-controller-backend

Conversation

@dburkhart07
Copy link
Copy Markdown

@dburkhart07 dburkhart07 commented Apr 23, 2026

ℹ️ Issue

Closes #186

📝 Description

  • Added endpoint to get the stats based on role
  • Created service function to parse user's role and call appropriate service function as a result to get the right stats
  • Wrote tests

✔️ Verification

Validated that all roles got the proper stats for the endpoint

🏕️ (Optional) Future Work / Notes

N/A

@dburkhart07 dburkhart07 changed the title final commit [SSF 186] - Dashboard Stats Controller Backend Apr 23, 2026
Comment thread apps/backend/src/users/users.service.ts Outdated
Comment thread apps/backend/src/foodManufacturers/manufacturers.service.ts
Comment thread apps/backend/src/users/users.service.spec.ts
@dburkhart07 dburkhart07 requested a review from amywng April 23, 2026 02:58
Copy link
Copy Markdown
Member

@amywng amywng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nits

Comment thread apps/backend/src/users/users.service.ts Outdated
Comment thread apps/backend/src/users/users.service.ts Outdated
Comment thread apps/backend/src/users/users.service.ts Outdated
@Yurika-Kan Yurika-Kan requested a review from sam-schu April 24, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants