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(notifiers): support multiple slack workspaces #67

Merged
merged 6 commits into from
Sep 12, 2023
Merged

Conversation

bsushmith
Copy link
Collaborator

@bsushmith bsushmith commented Sep 5, 2023

Closes: #39

Changes:

  • changes to configure multiple slack workspaces and corresponding bot tokens
  • slack notifier will use email (other user attributes are difficult since for approvers we wouldn't have any additional details) for evaluating configured criteria and send notifications to corresponding slack workspace

ToDo:

  • Test cases

@bsushmith bsushmith self-assigned this Sep 5, 2023
@bsushmith bsushmith marked this pull request as ready for review September 5, 2023 08:44
plugins/notifiers/slack/client.go Outdated Show resolved Hide resolved
plugins/notifiers/slack/client.go Show resolved Hide resolved
@bsushmith bsushmith changed the title feat(notifiers): support multiple slack workspaces feat(notifiers)!: support multiple slack workspaces Sep 6, 2023
* feat: Add filter q, account_type for litAppeals and listGrants and added getTotalCount

* chore: added testing for total count

* chore: fix testing

* chore: fix test total

* chore: fix test mock appeal and grant

* chore: fix test mock user appeal and grant

* chore: fix test coverage

* chore: fix test coverage 2

* chore: fix test coverage 3

* chore: resolve comments

* test: resolve comments

* test: fix testing

---------

Co-authored-by: Lifosmin Simon <[email protected]>
@bsushmith bsushmith force-pushed the slack-workspaces branch 2 times, most recently from 05322e0 to a43e09c Compare September 11, 2023 08:45
- changes to configure multiple slack workspaces and corresponding bot tokens
- slack notifier will use email (other user attributes are difficult since for approvers we wouldn't have any additional details) for evaluating configured criteria and send notifications to corresponding slack workspace
- additional test cases
- maintains backward compatibility
pkg/evaluator/expression_test.go Show resolved Hide resolved
plugins/notifiers/slack/client.go Outdated Show resolved Hide resolved
@bsushmith bsushmith changed the title feat(notifiers)!: support multiple slack workspaces feat(notifiers): support multiple slack workspaces Sep 12, 2023
@bsushmith bsushmith merged commit b6afb30 into main Sep 12, 2023
4 checks passed
@bsushmith bsushmith deleted the slack-workspaces branch September 12, 2023 06:48
@bsushmith bsushmith linked an issue Sep 23, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ability to send notification to different slack workspaces
4 participants