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

1261 Raise An Issue Not Always Sending Slack Alerts #1263

Merged
merged 2 commits into from
Nov 19, 2024

Conversation

drieJAC
Copy link
Contributor

@drieJAC drieJAC commented Nov 18, 2024

Occasionally the slack message doesnt get sent when the create issue github hook calls our backend.
This PR allows us to track whether this message was sent and, if not, retry sending the message several times (specified by a constant in the config).
Added a scheduled task which runs every 2 mins to look for bugReports which havent had a slack message sent. If it finds any it tries to send the slack message.
Also modified existing code to:

  • ensure the github link to the issue and the issue number are stored in the bugReport
  • no longer send the slack message when the 'create issue' hook is called and leave it to the scheduled task to pick it up and send it

Closes #1261

… sent for bug reports.

Ensure bug report gets updated when initial create issue hook is called.
Add indexes for search for bug reports by retries and timestamp.
Added functions to update bug reports.
Add constant for max number of retries.
Ensure slack msg resend limit.
Remove call to send slack msg when create issue hook is called so that scheduled task picks it up.
@drieJAC drieJAC self-assigned this Nov 18, 2024
@drieJAC drieJAC merged commit 6a2d425 into develop Nov 19, 2024
4 checks passed
@drieJAC drieJAC deleted the bugfix/1261-raise-an-issue branch November 19, 2024 10:07
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.

Raise An Issue Not Always Sending Slack Alerts
2 participants