Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chim/feature/setup notification repository #284

Merged
merged 19 commits into from
Sep 19, 2024

Conversation

anannnchim
Copy link
Contributor

Describe your changes

Add fcm token repository and Api endpoint for register and unregister fcm token.
Add a new domain FCMToken for representing fcm token.

Issue ticket number and link

Copy link
Collaborator

@emilymclean emilymclean left a comment

Choose a reason for hiding this comment

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

Your code is clean and readable, your database transactions are safely designed, this is generally a good contribution. Make the changes to the endpoints to make them secure and follow RESTful conventions, and likewise move the check_user_exists function somewhere more conceptually relevant.

controllers/v2/fcm_tokens/api.py Outdated Show resolved Hide resolved
controllers/v2/fcm_tokens/api.py Outdated Show resolved Hide resolved
controllers/v2/fcm_tokens/api.py Outdated Show resolved Hide resolved
controllers/v2/fcm_tokens/api.py Outdated Show resolved Hide resolved
repository/fcm_token_repository.py Outdated Show resolved Hide resolved
repository/fcm_token_repository.py Outdated Show resolved Hide resolved
repository/fcm_token_repository.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@emilymclean emilymclean left a comment

Choose a reason for hiding this comment

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

Your implementation is mostly correct, save some minor feedback

repository/fcm_token_repository.py Outdated Show resolved Hide resolved
repository/user_repository.py Outdated Show resolved Hide resolved
controllers/v2/fcm_tokens/api.py Show resolved Hide resolved
controllers/v2/fcm_tokens/api.py Outdated Show resolved Hide resolved
controllers/v2/fcm_tokens/api.py Outdated Show resolved Hide resolved
controllers/v2/fcm_tokens/api.py Outdated Show resolved Hide resolved
repository/fcm_token_repository.py Outdated Show resolved Hide resolved
@emilymclean emilymclean self-requested a review September 19, 2024 00:49
Copy link
Collaborator

@emilymclean emilymclean left a comment

Choose a reason for hiding this comment

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

Self-requested review because it looks like you addressed all my feedback. Great work, your PR is looking good! Approving assuming you've exercised both endpoints with the changes.

@anannnchim anannnchim added this pull request to the merge queue Sep 19, 2024
Merged via the queue into main with commit ded2c4f Sep 19, 2024
6 checks passed
@anannnchim anannnchim deleted the chim/feature/setup-notification-repository branch September 19, 2024 09:45
5oappy pushed a commit that referenced this pull request Sep 27, 2024
Add fcm token repository and Api endpoint for register and unregister
fcm token.
Add a new domain FCMToken for representing fcm token.

-
[Jira](https://fireapp-emergiq-2024.atlassian.net/jira/software/projects/FIR/boards/2?selectedIssue=FIR-99)
-
[Documentation](https://fireapp-emergiq-2024.atlassian.net/wiki/spaces/fireapp202/pages/99713028/Notification+Feature)

merged new changes from origin/main into branch to make merging more seamless
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.

2 participants