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

Give ability to send test message when creating integration #184

Open
unkrich opened this issue Apr 13, 2022 · 0 comments
Open

Give ability to send test message when creating integration #184

unkrich opened this issue Apr 13, 2022 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@unkrich
Copy link
Collaborator

unkrich commented Apr 13, 2022

Problem

There's no good way to check that an integration is working as expected today until an anomaly occurs and sends a message through.

Solution

Implement a test button similar to datasources that send a test message through to the integration to confirm it is working. Today, these integrations are slack and webhooks.

Additional Context

  1. First, add test button / call to frontend.
    Refer to data sources for how to do this easily
    https://github.com/monosidev/monosi/blob/master/src/ui/src/pages/settings/Sources/components/SourcesTable.tsx#L26-L42
    https://github.com/monosidev/monosi/blob/master/src/ui/src/pages/settings/Sources/components/SourcesTable.tsx#L95-L101

Implement similar in integrations:
https://github.com/monosidev/monosi/blob/master/src/ui/src/pages/settings/Integrations

  1. Add an endpoint in integrations to handle test, again refer to data sources
    https://github.com/monosidev/monosi/blob/master/src/server/handlers/datasources.py#L76-L85
    https://github.com/monosidev/monosi/blob/master/src/server/handlers/__init__.py#L30

Do the same in:
https://github.com/monosidev/monosi/blob/master/src/server/handlers/integrations.py
https://github.com/monosidev/monosi/blob/master/src/server/handlers/__init__.py#L30

  1. Add method to integrations which is responsible for creating a test message and sending it.
@unkrich unkrich added the help wanted Extra attention is needed label Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant