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

Change wording from "incident" to "alert group" in the Telegram app #1052

Merged
merged 3 commits into from
Jan 4, 2023

Conversation

vstpme
Copy link
Member

@vstpme vstpme commented Dec 29, 2022

What this PR does

Makes Telegram integration consistent with the rest of the system so it uses the word "alert group" instead of "incident" when referring to alert groups.

Checklist

  • Tests updated
  • Documentation added (N/A)
  • CHANGELOG.md updated

@vstpme vstpme marked this pull request as ready for review December 29, 2022 15:00
@vstpme vstpme requested a review from a team December 29, 2022 15:00
Copy link
Member Author

@vstpme vstpme left a comment

Choose a reason for hiding this comment

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

Most of the changes are just searching & replacing "incident" to "alert group", but there are couple places that are different.

@@ -20,7 +20,7 @@ class TelegramMessage(models.Model):
(ACTIONS_MESSAGE, "Actions message"),
(LOG_MESSAGE, "Log message"),
(FORMATTING_ERROR, "Alert can not be rendered"),
(PERSONAL_MESSAGE, "Alert group message with action buttons and incident log"),
(PERSONAL_MESSAGE, "Alert group message with action buttons and alert group log"),
Copy link
Member Author

Choose a reason for hiding this comment

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

This line here generates a migration, but I think it won't really change anything at the DB level.

@@ -111,6 +111,19 @@ def send_link_to_channel_message_or_fallback_to_full_incident(
)


@shared_dedicated_queue_retry_task(bind=True, autoretry_for=(Exception,), retry_backoff=True, max_retries=None)
def send_link_to_channel_message_or_fallback_to_full_incident(
Copy link
Member Author

Choose a reason for hiding this comment

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

Can't just delete this straight away since it can cause celery issues. So introducing a new task with the same internals but a new name and "deprecating" this one.

@vstpme vstpme merged commit 0d4701b into dev Jan 4, 2023
@vstpme vstpme deleted the vadimkerr/rename-incident-to-alert-group-tg branch January 4, 2023 17:44
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