-
Notifications
You must be signed in to change notification settings - Fork 284
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
added webpush on notes creation #1553
Closed
Closed
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5bb39a9
added webpush on notes creation
Bhavik-ag 84536d0
Merge branch 'master' into issue-1552
Bhavik-ag 1276efa
Merge branch 'master' into issue-1552
Bhavik-ag ed6c3c9
Merge branch 'master' into issue-1552
Bhavik-ag 0ddcdcb
generate notification on patient note addition
Bhavik-ag 11bb3b0
Merge branch 'master' into issue-1552
Bhavik-ag 4cd84e0
Merge branch 'master' into issue-1552
Bhavik-ag 0dd6d6d
Merge branch 'master' into issue-1552
Bhavik-ag 86e2bfd
add missing migrations
Ashesh3 2479805
Merge branch 'master' into issue-1552
sainak 6a47c96
Merge branch 'master' into issue-1552
Bhavik-ag 12aed7e
Merge branch 'master' into issue-1552
Bhavik-ag 9fb2fe0
Merge branch 'master' into issue-1552
Bhavik-ag 9de9ab5
Merge branch 'master' into issue-1552
Bhavik-ag 4c9622e
Merge branch 'master' into issue-1552
Bhavik-ag 2b8e573
Merge branch 'master' into issue-1552
Bhavik-ag 444c557
Merge branch 'master' into issue-1552
Bhavik-ag f522b72
Merge remote-tracking branch 'origin/master' into issue-1552
sainak 03003d5
Merge branch 'master' into issue-1552
Bhavik-ag 40f1da5
Merge branch 'master' into issue-1552
Bhavik-ag File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Generated by Django 4.2.2 on 2023-09-06 08:56 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("facility", "0382_assetservice_remove_asset_last_serviced_on_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="event", | ||
field=models.IntegerField( | ||
choices=[ | ||
(0, "MESSAGE"), | ||
(20, "PATIENT_CREATED"), | ||
(30, "PATIENT_UPDATED"), | ||
(40, "PATIENT_DELETED"), | ||
(50, "PATIENT_CONSULTATION_CREATED"), | ||
(60, "PATIENT_CONSULTATION_UPDATED"), | ||
(70, "PATIENT_CONSULTATION_DELETED"), | ||
(80, "INVESTIGATION_SESSION_CREATED"), | ||
(90, "INVESTIGATION_UPDATED"), | ||
(100, "PATIENT_FILE_UPLOAD_CREATED"), | ||
(110, "CONSULTATION_FILE_UPLOAD_CREATED"), | ||
(120, "PATIENT_CONSULTATION_UPDATE_CREATED"), | ||
(130, "PATIENT_CONSULTATION_UPDATE_UPDATED"), | ||
(140, "PATIENT_CONSULTATION_ASSIGNMENT"), | ||
(200, "SHIFTING_UPDATED"), | ||
(210, "PATIENT_NOTE_ADDED"), | ||
], | ||
default=0, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sainak is this call deterministic, if not can we move it to the notification generator, it sends the webpush from the worker.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is non-deterministic.
@Bhavik-ag can you move this to the notification generator?