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

org: Add slack bot integration to send timelog updates. #3021

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

apoorvapendse
Copy link
Contributor

@apoorvapendse apoorvapendse commented Nov 30, 2024

This PR fixes #2973.

Implmented features.

  1. Slack Oauth integration to generate and store slack bot token for organzation.
  2. UI to manage future integrations with other services.
  3. Manage command to send updates, which can be run as a cron job every hour.
  4. The messages are only sent when the UTC hour difference between current time and organization set time is <= 1hour.
  5. Organization can configure the channel they prefer to receive updates every 24 hours.
  6. Summary will contain info about all the timelogs that were dedicated for the organization is the past 24 hours.

https://github.com/user-attachments/assets/1387679c-e442-4222-89e3-5b98d46d0a70
image

company/views.py Fixed Show fixed Hide fixed
company/views.py Fixed Show fixed Hide fixed
company/views.py Show resolved Hide resolved
.env.example Show resolved Hide resolved
blt/settings.py Outdated Show resolved Hide resolved
blt/urls.py Outdated Show resolved Hide resolved
company/views.py Outdated Show resolved Hide resolved
company/views.py Outdated Show resolved Hide resolved
company/views.py Outdated Show resolved Hide resolved
@apoorvapendse
Copy link
Contributor Author

Thanks for the review, should we go with keeping the callback uri as environment variables?

Copy link
Collaborator

@DonnieBLT DonnieBLT left a comment

Choose a reason for hiding this comment

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

I reviewed it and there are a couple changes, please

@apoorvapendse
Copy link
Contributor Author

I reviewed it and there are a couple changes, please

Sure I'll make them.

@DonnieBLT DonnieBLT merged commit e7885ac into OWASP-BLT:main Dec 1, 2024
7 checks passed
@DonnieBLT
Copy link
Collaborator

Thank you 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants