Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b12523c
setup fcm integration with user model
cassidyxu Nov 6, 2024
fa75920
Merge branch 'users' into notifications
cassidyxu Nov 10, 2024
366c48c
fix migrations
cassidyxu Nov 10, 2024
59b434b
create scheduled cron job
cassidyxu Dec 4, 2024
1c706f9
Merge branch 'master' into notifications
cassidyxu Dec 4, 2024
f5824b9
unify device_token and FCM token logic
cassidyxu Dec 4, 2024
2e6c31e
fix fcm django import
skyeslattery Dec 4, 2024
7ffff33
changes
cassidyxu Dec 4, 2024
68721fe
increase character limit for device token
cassidyxu Dec 4, 2024
ac780f8
Merge branch 'notifications' of github.com:cuappdev/eatery-blue-backe…
cassidyxu Dec 4, 2024
5124a08
add migrations
cassidyxu Dec 4, 2024
f77c6e1
add device tokens to serializer
skyeslattery Dec 4, 2024
082c9c6
minor fixes
cassidyxu Dec 30, 2024
c52c617
add unit tests for eatery event notifs
cassidyxu Dec 30, 2024
b77b7c0
small fixes + testing cron job successful
cassidyxu Dec 31, 2024
3c81592
add unit tests for eatery event notifs
cassidyxu Dec 30, 2024
ebd4872
small fixes + testing cron job successful
cassidyxu Dec 31, 2024
9573467
Remove Firebase JSON file and add to .gitignore
cassidyxu Dec 31, 2024
78f702c
set up Firestore for notification scheduling
cassidyxu Jan 6, 2025
7dcd66a
small changes
cassidyxu Feb 2, 2025
5a8c945
Integrate Cloud Tasks for eatery notifications
cassidyxu Feb 3, 2025
8b395f4
handle duplicate events/notifications logic
cassidyxu Mar 15, 2025
3f1ada1
handle general "Open" eatery events
cassidyxu Mar 15, 2025
c6cb1c5
handle "open" and regular events separately
cassidyxu Mar 17, 2025
8eaadcd
minor fixes
cassidyxu Mar 20, 2025
b622e57
handle "General" events
cassidyxu Mar 20, 2025
b84d689
handle quota limits with batches
cassidyxu Mar 20, 2025
cb17237
clean up comments
cassidyxu Mar 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "eatery-a4ad1"
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,4 @@ MANIFEST
local_settings.py
db.sqlite3
db.sqlite3-journal
src/eatery_blue_backend/eatery-a4ad1-firebase-adminsdk-ehcww-262f7c1a73.json
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@ COPY ./requirements.txt .
RUN pip install -r requirements.txt

RUN mv ./cron/update_db.txt /etc/cron.d/update_db
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

18 changes: 18 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"functions": [
{
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log",
"*.local"
],
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run build"
]
}
]
}
36 changes: 36 additions & 0 deletions functions/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
module.exports = {
root: true,
env: {
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"google",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: ["tsconfig.json", "tsconfig.dev.json"],
sourceType: "module",
},
ignorePatterns: [
"/lib/**/*", // Ignore built files.
"/generated/**/*", // Ignore generated files.
],
plugins: [
"@typescript-eslint",
"import",
],
rules: {
"quotes": ["error", "double"],
"import/no-unresolved": 0,
"indent": ["error", 2],
"max-len": ["error", {"code": 120}],
"require-jsdoc": "off",
"no-trailing-spaces": "off",
},
};
10 changes: 10 additions & 0 deletions functions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Compiled JavaScript files
lib/**/*.js
lib/**/*.js.map

# TypeScript v1 declaration files
typings/

# Node.js dependency directory
node_modules/
*.local
Loading