Skip to content

feat: Add report location backend#1

Open
aalmuhan wants to merge 75 commits into
mainfrom
feature/report-location
Open

feat: Add report location backend#1
aalmuhan wants to merge 75 commits into
mainfrom
feature/report-location

Conversation

@aalmuhan
Copy link
Copy Markdown
Owner

@aalmuhan aalmuhan commented Dec 4, 2025

Summary

  • Added /api/report-location endpoint for users to report incorrect dining location data
  • Added /api/reports admin endpoint to view all submitted reports
  • Added location_reports database table to store reports
  • Reports are stored in database (not yet sent to slack because we need the webhook URL)
  • Fixed conceptId lookup to use concept_id_to_internal_id mapping table
  • Added database tests for report location feature

Database Changes

  • Added location_reports table to store user-submitted reports
  • Uses concept_id_to_internal_id table to map frontend conceptId to internal UUID

Test plan

  • Test submitting a report via the frontend
  • Verify reports are stored in database via /api/reports
  • Run pnpm test tests/reportLocation.test.ts

Related PR

  • Frontend PR:

laasyaaki and others added 30 commits August 3, 2025 14:13
Manually added off campus flex only locations
Revert "Manually added off campus flex only locations"
ScottyLabs#190)

* fix: coalesce intervals if gap is 1 min, and do wrap-around coalescing

* fix: unparseable tokens should be ignored

* chore: remove extraneous comment

* fix: redo the merging algo
SQL dashboard phase 2 completed-basic ability to overread scrapes wit…
@sabualha sabualha force-pushed the feature/report-location branch from d3b6c9d to 5dc9e40 Compare December 8, 2025 19:23
@sabualha sabualha changed the title Feature/report location - Add backend endpoint for reporting incorrect location data feat: Add report location button feature Dec 9, 2025
@sabualha sabualha changed the title feat: Add report location button feature feat: Add report location backend Dec 9, 2025
@cirex-web
Copy link
Copy Markdown

hi! if this is ready for review, could you make a PR in the dining api repo?

@sabualha
Copy link
Copy Markdown
Collaborator

hi! if this is ready for review, could you make a PR in the dining api repo?

hello! yes it is ready for review I'll make it a PR soon

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.

6 participants