Skip to content

Conversation

@cassidyxu
Copy link
Contributor

@cassidyxu cassidyxu commented Mar 20, 2025

Overview

Schedule notifications 30 minutes before a user's favorite eateries open or close.

Changes Made

  • At midnight every day, push eatery event data to Firestore. This includes event details such as start and end times, event names, and the user tokens of those who have favorited the eatery.
  • At 6 AM daily, execute the scheduleDailyNotifications function to schedule notifications in Cloud Tasks. These notifications will be sent out at the appropriate time.

Test Coverage

  • Manually triggered functions to schedule notifications.
  • Verified notifications on a personal iOS device.

Screenshots

Copy link
Contributor

@skyeslattery skyeslattery left a comment

Choose a reason for hiding this comment

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

We're switching auth to use GET instead of google - should we wait until thats merged and then add notification logic in auth routes? otherwise lgtm

RUN mv ./cron/notify_eatery_events.txt /etc/cron.d/notify_eatery_events
RUN chmod 0766 manage.py
RUN crontab /etc/cron.d/update_db
RUN crontab /etc/cron.d/notify_eatery_events
Copy link
Contributor

Choose a reason for hiding this comment

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

These RUNs could be combined, but keeping them separate might be better for debugging. @Aayush-Agnihotri ?

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah what skye said above is true but i think its fine that way it is, it makes it easy to follow and less complicated

Copy link
Contributor

@Aayush-Agnihotri Aayush-Agnihotri left a comment

Choose a reason for hiding this comment

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

lgtm

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.

4 participants