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

feat(integrations): Add support for slack integration #260

Merged
merged 36 commits into from
Dec 23, 2021

Conversation

gagantrivedi
Copy link
Member

@gagantrivedi gagantrivedi commented Aug 13, 2021

  • Env vars
    SLACK_CLIENT_ID
    SLACK_CLIENT_SECRET

To start the oath flow we make a get request to
https://{address}/api/v1/environments/<environment_key>/integrations/slack/oauth/
which redirects the user(after oauth) to our callback endpoint(with auth token)
The view set to configure a channel for an environment is hosted at:
/environments/{environment_api_key}/integrations/slack/

ps: you can use something like https://ngrok.com/ to test oauth callback

Open question:
where should we redirect the user after successful oauth.

@dabeeeenster dabeeeenster linked an issue Aug 16, 2021 that may be closed by this pull request
@gagantrivedi gagantrivedi force-pushed the feat/github-83/slack-integration branch from 633a45d to b2b280b Compare October 11, 2021 15:57
@gagantrivedi gagantrivedi changed the title wip: slack changes feat(integations): Add support for slack integration Oct 25, 2021
@gagantrivedi gagantrivedi marked this pull request as ready for review October 25, 2021 06:01
@gagantrivedi gagantrivedi force-pushed the feat/github-83/slack-integration branch 2 times, most recently from 704199d to 305d849 Compare October 25, 2021 07:19
api/audit/signals.py Outdated Show resolved Hide resolved
api/audit/signals.py Show resolved Hide resolved
api/audit/signals.py Show resolved Hide resolved
api/environments/urls.py Outdated Show resolved Hide resolved
api/integrations/slack/serializers.py Outdated Show resolved Hide resolved
api/tests/unit/integrations/slack/test_unit_slack.py Outdated Show resolved Hide resolved
api/tests/unit/integrations/slack/test_unit_slack.py Outdated Show resolved Hide resolved
@dabeeeenster dabeeeenster changed the title feat(integations): Add support for slack integration feat(integrations): Add support for slack integration Nov 15, 2021
@gagantrivedi gagantrivedi force-pushed the feat/github-83/slack-integration branch from 3b21603 to 0f0da1b Compare December 16, 2021 04:12
api/integrations/slack/exceptions.py Outdated Show resolved Hide resolved
api/integrations/slack/slack.py Outdated Show resolved Hide resolved
api/integrations/slack/views.py Outdated Show resolved Hide resolved
redirect the user to the given url after successful oauth
@gagantrivedi gagantrivedi requested review from matthewelwell and removed request for matthewelwell December 21, 2021 12:03
@gagantrivedi
Copy link
Member Author

Requesting the review again because of redirect url

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.

Feature: Slack notifications
2 participants