-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Test Webhook Button ignores consumer/provider settings #718
Comments
@mefellows I did in between, but even without that checkbox it still spams the endpoint when testing it |
Hey Ruth, Could you try via an API call, or with the pact_broker-client. I believe there may be an issue with the webhook button in pactflow triggering multiple executions that I can recreate, but I get the expected behaviour triggering the webhook directly via API |
@YOU54F unfortunately I do not seem to have the required permissions to make that API call I try to get more permisions to do the test call |
@YOU54F I got the permissions and you are right, when using the API call there is only one session triggered -> what was expected as we have just one consumer |
Hi @huehnerlady , The duplication of requests from the UI has now been resolved. I appear to have an issue in our test environment where by webhooks are triggering for pairs I have not specified, I have raised it with the team. Feel free to try out the webhook behaviour from the UI and let us know how you get on |
@YOU54F I am sorry if I missexplained my problem, I am meaning exactly that issue of triggering the webhook for pairs I have not yet specified. I did not experience duplicated requests 😅 |
Thanks @huehnerlady, this issue should also now be resolved (triggering the wrong consumer/provider pair) and the issue with sending out too many webhooks - both of these were actually issues in the PactFlow UI and not the underlying Pact Broker. I think we can close this off? |
I tested it and it works now, thanks |
Fantastic, thanks, |
Pre issue-raising checklist
I have already (please mark the applicable with an
x
):Software versions
Expected behaviour
I have this webhook page:
When I select a specific provider and click
Test Webhook
, I expect a webhook call from all possible consumer/provider pairs with this provider.Example:
I have 30 consumers and 10 providers.
Provider A has 3 consumers. Then I would expect 3 webhooks to be send out.
Actual behaviour
It seems that every possible consumer/provider constellation is send out spamming the endpoint receiving the webhook call.
Steps to reproduce
Test Webhook
You should just get 1 call as the chosen provider has only one consumer. But there will be 2.
Additional information
This issue was initially discussed in the pact slack workspace on the 3rd September 2024.
The conversation can be found here
In there it was pointed out that the logic would be somewhere in the trigger_service.rb.
The text was updated successfully, but these errors were encountered: