Skip to content

Allow usage of blocks in notification settings #6938

Closed
@sti0

Description

@sti0

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar request and didn't find it.
  • I searched the Prefect documentation for this feature.

Prefect Version

2.x

Describe the current behavior

Currently we have to add the webhook URL for Teams or SLACK to both - the notification config and the block. Would be great when we could use blocks within the notification setup.

We can specify the webhook url as a block configuration:
image

and we can add a webhook url in the notification settings as well:
image

But we may use the same Teams channel for multiple notification scenarios like Flow status (Notification settings) and notification out of the flow itself (Block configuration). Another scenario might be multiple notification settings based on tags so we are notfied for Tag A only when "crashed" but for Tag B we are notified when it "crashed" or "failed".

Describe the proposed behavior

There should be the possibility to either use the webhook URL (current state) or a block configuration to setup notifications via UI.
So we might could have two buttons:

  1. One to enter a webhook url directly
  2. One to use a block configuration

image

Example Use

So we could reuse the same webhook url within flows and multiple notifications.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiRelated the Prefect REST APIenhancementAn improvement of an existing featureuiRelated to the Prefect web interface

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions