-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Notifications: Add support for webhooks #7311
Conversation
@kiblik this is looking really interesting so far. The only critique I have thus far is that it appears there is only support for one web hook at a time. I think it would be good to allow for an arbitrary amount of web hooks. Sorta like how the Jira integration works where you can connect an arbitrary amount of Jira servers and push to them according to how they are configured. |
@Maffooch, thank you for the feedback. I can add management of multiple webhook endpoints. Btw, what do you think about User notifications? Do they make sense to you? They are disabled for MS Teams. Or the combination of your idea and my question: One endpoint System notification endpoint and each user will be able to define his/her/they own endpoint. |
I would think adding a web hook url would require a higher permission (I think maintainer would be sufficient) so adding user levels would be a little redundant. |
2438ec8
to
061a125
Compare
fa88b41
to
34404ce
Compare
@Maffooch, we see a possible use case when the user should be able to define his own endpoint.
|
I think that sounds reasonable |
Hey @kiblik how are things going on this? Can I be of any help on this PR (or any of your others)? |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
So, my priorities were on the other tasks recently but I had planned to come back to this functionality during the next week. |
c19ab2c
to
85b464b
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are accessibility issues in these changes.
<h3 class="has-filters"> | ||
Notification Webhook List | ||
<div class="dropdown pull-right"> | ||
<button id="show-filters" data-toggle="collapse" data-target="#the-filters" class="btn btn-primary toggle-filters"> <i class="fa-solid fa-filter"></i> <i class="caret"></i> </button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<h3 class="has-filters"> | ||
Notification Webhook List | ||
<div class="dropdown pull-right"> | ||
<button id="show-filters" data-toggle="collapse" data-target="#the-filters" class="btn btn-primary toggle-filters"> <i class="fa-solid fa-filter"></i> <i class="caret"></i> </button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<div class="dropdown pull-right"> | ||
<button id="show-filters" data-toggle="collapse" data-target="#the-filters" class="btn btn-primary toggle-filters"> <i class="fa-solid fa-filter"></i> <i class="caret"></i> </button> | ||
{% if "dojo.add_notification_webhook"|has_configuration_permission %} | ||
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
<div class="dropdown pull-right"> | ||
<button id="show-filters" data-toggle="collapse" data-target="#the-filters" class="btn btn-primary toggle-filters"> <i class="fa-solid fa-filter"></i> <i class="caret"></i> </button> | ||
{% if "dojo.add_notification_webhook"|has_configuration_permission %} | ||
<button class="btn btn-primary dropdown-toggle" type="button" id="dropdownMenu1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this element is missing an accessible name or label. That makes it hard for people using screen readers or voice control to use the control.
08c44bd
to
0daeeab
Compare
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
0daeeab
to
4a6c3f1
Compare
Conflicts have been resolved. A maintainer will review the pull request shortly. |
4a6c3f1
to
a695ce1
Compare
Co-authored-by: Cody Maffucci <[email protected]>
Co-authored-by: Cody Maffucci <[email protected]>
96b1730
to
3cc64f7
Compare
I fixed the lastest comments from @cneill. I hope this PR is (finally after 1 year, 8 months, 22 days) ready for merge 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 🎉 Thanks for taking care of those final comments
We would like to do an implementation similar to this: https://docs.gitlab.com/ee/user/project/integrations/webhooks.html
Events will be published via notifications
The whole functionality is described in the documentation section. This is an image which is rendered by
mermaid