Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix(webhook-service): Do not respond to anything else than .triggered event on pre execution error #8337

Merged
merged 3 commits into from
Jul 12, 2022

Conversation

bacherfl
Copy link
Member

@bacherfl bacherfl commented Jul 7, 2022

Closes #8334

This fixes a bug due to which the webhook service was responding with a started event if something went wrong with the retrieval of the webhook config (e.g. if the project has. been deleted at the point where the service received the event).

… event on pre execution error

Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@codecov
Copy link

codecov bot commented Jul 7, 2022

Codecov Report

Merging #8337 (1f94733) into master (9e9f776) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #8337      +/-   ##
==========================================
+ Coverage   66.13%   66.16%   +0.03%     
==========================================
  Files         606      607       +1     
  Lines       31726    31749      +23     
  Branches     1688     1697       +9     
==========================================
+ Hits        20983    21008      +25     
+ Misses       9443     9441       -2     
  Partials     1300     1300              
Impacted Files Coverage Δ
webhook-service/handler/handler.go 87.92% <100.00%> (+0.18%) ⬆️
bridge/client/app/app.routing.ts 73.33% <0.00%> (-3.34%) ⬇️
bridge/shared/models/trace.ts 69.71% <0.00%> (ø)
bridge/client/app/app.module.ts 100.00% <0.00%> (ø)
...ge/client/app/_services/_mockData/sli-info.mock.ts 100.00% <0.00%> (ø)
...p/evaluation-board/evaluation-board.component.html
...ent/app/evaluation-board/evaluation-board-state.ts
...app/evaluation-board/evaluation-board.component.ts
...b-evaluation-view/ktb-evaluation-view.component.ts 100.00% <0.00%> (ø)
... and 6 more
Flag Coverage Δ
api 84.14% <ø> (ø)
approval-service 64.61% <ø> (ø)
bridge-server 73.73% <ø> (ø)
bridge2 78.37% <ø> (+0.04%) ⬆️
cli 44.04% <ø> (+0.06%) ⬆️
distributor 69.88% <ø> (ø)
helm-service 47.57% <ø> (ø)
jmeter-service 25.29% <ø> (ø)
lighthouse-service 75.07% <ø> (ø)
mongodb-datastore 57.94% <ø> (ø)
remediation-service 79.77% <ø> (ø)
resource-service 81.46% <ø> (ø)
secret-service 81.47% <ø> (ø)
shipyard-controller 65.74% <ø> (ø)
statistics-service 58.41% <ø> (ø)
webhook-service 83.79% <100.00%> (+0.09%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@bacherfl bacherfl marked this pull request as ready for review July 7, 2022 12:39
@bacherfl bacherfl requested a review from a team as a code owner July 7, 2022 12:39
@bacherfl bacherfl added the CI:trigger-build-everything Trigger CI Build: Set BUILD_EVERYTHING=TRUE label Jul 8, 2022
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
@sonarcloud
Copy link

sonarcloud bot commented Jul 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bacherfl bacherfl removed the CI:trigger-build-everything Trigger CI Build: Set BUILD_EVERYTHING=TRUE label Jul 8, 2022
@bacherfl bacherfl merged commit 4430a13 into master Jul 12, 2022
@bacherfl bacherfl deleted the fix/8334/webhook-started-event branch July 12, 2022 11:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core :: Webhook sends a started event although subscribed to finished event
2 participants