WIP: Added menu items and images to api #251
No reviewers
Labels
No labels
bootcamp
bug
codebase
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
high priority
invalid
javascript
outdated
question
typescript
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ScottyLabs/dining-api!251
Loading…
Reference in a new issue
No description provided.
Delete branch "searchable_menus"
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?
The menu PNGs given by dining are now visible directly on cmueats. The items are all searchable and the locations serving those items will pop up. Search "lavender" for example will result in coffee shops showing up when it previously did not yield any results.
@ -99,0 +101,4 @@...timeRanges.map((rng) => ({date: overrideDate,startMinutesSinceMidnight:rng.start.hour * 60 + rng.start.minute,Bug: The
menuItemsStringfield incorrectly returns""instead ofnullfor missing data, which violates the API's nullable schema definition.Severity: MEDIUM
Suggested Fix
Change the nullish coalescing operator's fallback value from
""tonullto align with the API schema. The line should be updated tomenuItemsString: menuData?.menuItemsString ?? null. This ensures the API correctly signals the absence of data to clients.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.