Skip to content

[SSF-148] - Backend admin stats#117

Open
dburkhart07 wants to merge 19 commits intomainfrom
ddb/SSF-148-backend-admin-stats
Open

[SSF-148] - Backend admin stats#117
dburkhart07 wants to merge 19 commits intomainfrom
ddb/SSF-148-backend-admin-stats

Conversation

@dburkhart07
Copy link

@dburkhart07 dburkhart07 commented Mar 1, 2026

ℹ️ Issue

Closes #148

📝 Description

  • Added an endpoint to get all stats by pantry
  • Added query parameters to the above endpoints to filter by pantry names, selected years that orders were created, and pagination (each page is 10 pantries, so page 1 gets the first 10 pantries in the db, page 2 gets the 11-20th pantries)
  • Added an endpoint to get the total stats for all pantries combined
  • Added query parameters to the above endpoint to filter by the years that orders were created for the pantries
  • Wrote pantry controller and service tests for the above endpoints, as well as every other endpoint in the pantries
  • Removed totalItem, totalOz, and totalEstimatedValue from the donations entity
  • Cleaned up unused code in other files

✔️ Verification

Tested endpoints, and made sure all tests passed

@dburkhart07 dburkhart07 requested a review from amywng March 6, 2026 07:45
Copy link
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 but i trust so approving

Copy link
Collaborator

@Yurika-Kan Yurika-Kan left a comment

Choose a reason for hiding this comment

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

tested via postman

looks so great, found a possible bug

@dburkhart07 dburkhart07 requested a review from Yurika-Kan March 12, 2026 01:23
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.

3 participants