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

Ruby Slack integration and cronjob for WRT with some information #8423

Open
danieljames-dj opened this issue Oct 16, 2023 · 0 comments
Open
Labels
TEAM: wrt issues related to WRT

Comments

@danieljames-dj
Copy link
Member

This has two subtasks:

  • Ruby Slack integration
  • WRT cronjob with some information

Basically, what the cronjob has to do is, it has to check the length of Competition.pending_posting and if it is greater than 5, send a Slack notification to WRT saying that 'Number of pending competitions to be posted is greater than 5'.

For integrating Ruby Slack, the following link can be referred: https://www.rubyinrails.com/2015/09/14/rails-slack-integration-with-slack-notifier-gem/.

Also, it is suggested to store the webhook URL in a table named slack_webhook_url, so that we can extend the notification to more teams in future. For testing purpose, the developer can create their own slack URL, and the original WRT URL can be added manually to the database after the PR is merged.

Some helping articles to the developer interested in taking this:

@dunkOnIT dunkOnIT added the TEAM: wrt issues related to WRT label Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TEAM: wrt issues related to WRT
Projects
Status: No status
Development

No branches or pull requests

2 participants