Skip to content

Enable ListNotifierConnectors for Slack - #4505

Merged
begelundmuller merged 3 commits into
mainfrom
begelundmuller/list-notifiers-api-slack
Apr 3, 2024
Merged

Enable ListNotifierConnectors for Slack#4505
begelundmuller merged 3 commits into
mainfrom
begelundmuller/list-notifiers-api-slack

Conversation

@begelundmuller

@begelundmuller begelundmuller commented Apr 3, 2024

Copy link
Copy Markdown
Contributor
  • Returns info about registered Slack connectors (PR) in ListNotifierConnectors.
  • Note that even if the response does not contain a "slack" driver, the "slack" connector can still be used anonymously if a Slack webhook is provided to the alert. A Slack connector only needs to be configured to support delivery to users and channels.
  • The ListNotifierConnectors API does not yet return info about email connector.

@begelundmuller begelundmuller self-assigned this Apr 3, 2024
}
}

// Connectors may be implicitly defined just by adding variables in the format "connector.<name>.<property>".

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Slack connector is defined even if bot token isn't there but only for webhooks

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah the abstractions definitely get blurry with that kind of "anonymous" functionality. In this case, it's useful for the ListNotifierConnectors only to return connectors that have been configured somehow (with vars or by adding to rill.yaml). Will add a note in the PR about it.

@begelundmuller
begelundmuller merged commit 7758469 into main Apr 3, 2024
@begelundmuller
begelundmuller deleted the begelundmuller/list-notifiers-api-slack branch April 3, 2024 15:50
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.

2 participants