-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Polling requests and blocking an integration (#358)
- Loading branch information
Showing
6 changed files
with
333 additions
and
0 deletions.
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
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
103 changes: 103 additions & 0 deletions
103
back/organization/migrations/0037_alter_notification_notification_type.py
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,103 @@ | ||
# Generated by Django 4.2.5 on 2023-09-27 00:36 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("organization", "0036_organization_ignored_user_emails"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="notification", | ||
name="notification_type", | ||
field=models.CharField( | ||
choices=[ | ||
("added_todo", "A new to do item has been added"), | ||
("completed_todo", "To do item has been marked as completed"), | ||
("added_resource", "A new resource item has been added"), | ||
("completed_course", "Course has been completed"), | ||
("added_badge", "A new badge item has been added"), | ||
("added_introduction", "A new introduction item has been added"), | ||
("added_preboarding", "A new preboarding item has been added"), | ||
("added_appointment", "A new appointment item has been added"), | ||
("added_new_hire", "A new hire has been added"), | ||
("added_administrator", "A new administrator has been added"), | ||
("added_manager", "A new manager has been added"), | ||
("added_admin_task", "A new admin task has been added"), | ||
("added_sequence", "A new sequence has been added"), | ||
("sent_email_message", "A new email has been sent"), | ||
("sent_text_message", "A new text message has been sent"), | ||
("sent_slack_message", "A new slack message has been sent"), | ||
("updated_slack_message", "A new slack message has been updated"), | ||
( | ||
"sent_email_login_credentials", | ||
"Login credentials have been sent", | ||
), | ||
("sent_email_task_reopened", "Reopened task email has been sent"), | ||
("sent_email_task_reminder", "Task reminder email has been sent"), | ||
( | ||
"sent_email_new_hire_credentials", | ||
"Sent new hire credentials email", | ||
), | ||
( | ||
"sent_email_preboarding_access", | ||
"Sent new hire preboarding email", | ||
), | ||
("sent_email_custom_sequence", "Sent email from sequence"), | ||
( | ||
"sent_email_new_hire_with_updates", | ||
"Sent email with updates to new hire", | ||
), | ||
( | ||
"sent_email_admin_task_extra", | ||
"Sent email to extra person in admin task", | ||
), | ||
( | ||
"sent_email_admin_task_new_assigned", | ||
"Sent email about new person assigned to admin task", | ||
), | ||
( | ||
"sent_email_admin_task_new_comment", | ||
"Sent email about new comment on admin task", | ||
), | ||
( | ||
"sent_email_integration_notification", | ||
"Sent email about completing integration call", | ||
), | ||
( | ||
"failed_no_phone", | ||
"Couldn't send text message: number is missing", | ||
), | ||
( | ||
"failed_no_email", | ||
"Couldn't send email message: email is missing", | ||
), | ||
( | ||
"failed_email_recipients_refused", | ||
"Couldn't deliver email message: recipient refused", | ||
), | ||
( | ||
"failed_email_delivery", | ||
"Couldn't deliver email message: provider error", | ||
), | ||
( | ||
"failed_email_address", | ||
"Couldn't deliver email message: provider error", | ||
), | ||
("failed_send_slack_message", "Couldn't send Slack message"), | ||
("failed_update_slack_message", "Couldn't update Slack message"), | ||
("ran_integration", "Integration has been triggered"), | ||
("failed_integration", "Couldn't complete integration"), | ||
("blocked_integration", "Integration was blocked due to condition"), | ||
( | ||
"failed_text_integration_notification", | ||
"Couldn't send integration notification", | ||
), | ||
], | ||
default="added_todo", | ||
max_length=100, | ||
), | ||
), | ||
] |
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