Closed Bug 1752191 Opened 4 years ago Closed 3 years ago

[WEBHOOKS] Allow Webhook Setup with "Any" Product

Categories

(bugzilla.mozilla.org :: API, enhancement)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: bsieber, Assigned: dkl)

Details

Attachments

(2 files)

As part of JBI, there's an interest to access the full flow of bugzilla events; by adding an "Any" option for the Product dropdown this could be one webhook.

Currently there ~182 Products, an alternate option is to construct a webhook per product.

What would the load of events/sec look like with this?

We can work on this but it will be Q2 at the earliest due to a couple of other important features that need to be completed first.

Notes to self:

  • We will create a special group that will allow a user to select ANY product. Only members of the group will be allowed
  • Bugs filed in specific products that the webhook owner cannot see will be filtered out and not sent.
  • Bugs that are marked secure will be sent only if the webhook owner has permission to see the bug.
  • After a specified number of failures, the webhook will be automatically disabled and no future calls will be made.
  • Bugzilla will send a notification to the webhook owner when the failure threshold has been hit and the webhook is disabled. The owner can then try to figure out what is wrong and re-enable it.

(In reply to David Lawrence [:dkl] from comment #1)

We can work on this but it will be Q2 at the earliest due to a couple of other important features that need to be completed first.

Notes to self:

  • We will create a special group that will allow a user to select ANY product. Only members of the group will be allowed
  • Bugs filed in specific products that the webhook owner cannot see will be filtered out and not sent.
  • Bugs that are marked secure will be sent only if the webhook owner has permission to see the bug.
  • After a specified number of failures, the webhook will be automatically disabled and no future calls will be made.
  • Bugzilla will send a notification to the webhook owner when the failure threshold has been hit and the webhook is disabled. The owner can then try to figure out what is wrong and re-enable it.

Going to break this up into smaller bugs as some of the changes are more universal and will affect all webhooks.

For this bug it will just be the ability to specify product == 'Any' to get all notifications. The other bugs will deal with the disabling of webhooks for over load of failures and the notifications sent out.

Attached file GitHub Pull Request
Assignee: nobody → dkl
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

bsieber, this change is now live in productions. I have made the group who can select Product to 'Any' to be the mozilla-employee-confidential group for now to limit the exposure. You should be able to create a webhook that sends messages for all changes for all products. Please try it out and let me know if it works for you.

Flags: needinfo?(bsieber)

Thanks :dkl! Apologies for the delay, I was OOO; I'll test this out in staging next week and get back to you.

Flags: needinfo?(bsieber)

Hi DKL, I was looking to add this into staging but haven't been able to use the 'ANY' Product; does there need to be a toggle enabled for jira-integration@bots.tld on https://bugzilla-dev.allizom.org/userprefs.cgi?tab=webhooks

(In reply to Bryan Sieber [ :bsieber ] from comment #8)

Hi DKL, I was looking to add this into staging but haven't been able to use the 'ANY' Product; does there need to be a toggle enabled for jira-integration@bots.tld on https://bugzilla-dev.allizom.org/userprefs.cgi?tab=webhooks

Ah yes. 1) I need to update bugzilla-dev with the latest code that is live on production and 2) I need to create the group and assign you to it that allows to choose 'Any' as a product. Will do that shortly.

(In reply to David Lawrence [:dkl] from comment #9)

(In reply to Bryan Sieber [ :bsieber ] from comment #8)

Hi DKL, I was looking to add this into staging but haven't been able to use the 'ANY' Product; does there need to be a toggle enabled for jira-integration@bots.tld on https://bugzilla-dev.allizom.org/userprefs.cgi?tab=webhooks

Ah yes. 1) I need to update bugzilla-dev with the latest code that is live on production and 2) I need to create the group and assign you to it that allows to choose 'Any' as a product. Will do that shortly.

Should be enabled now on bugzilla-dev.allizom.org for testing.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: