Skip to content
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

fix(webhook): only send one response to client #1154

Merged
merged 3 commits into from
Aug 9, 2024
Merged

Conversation

wass3r
Copy link
Collaborator

@wass3r wass3r commented Jun 28, 2024

during webhook processing some of the helper function can set a status response for the client while the callee is also doing so. this can cause a warning that the status is being set multiple times when they differ. this change puts the responsibility on the caller of the helper functions to return a response to the client - once.

during webhook processing some of the helper function can set a status
response for the client while the callee is also doing so. this can
cause a warning that the status is being set multiple times when they
differ. this change puts the responsibility on the caller of the helper
functions to return a response to the client - once.
@wass3r wass3r requested a review from a team as a code owner June 28, 2024 03:24
Copy link

codecov bot commented Jun 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.11%. Comparing base (9bb4acc) to head (1834ea1).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1154   +/-   ##
=======================================
  Coverage   52.11%   52.11%           
=======================================
  Files         550      550           
  Lines       18857    18855    -2     
=======================================
  Hits         9827     9827           
+ Misses       8468     8466    -2     
  Partials      562      562           
Files Coverage Δ
api/webhook/post.go 0.00% <ø> (ø)

@wass3r wass3r self-assigned this Jul 14, 2024
@ecrupper ecrupper merged commit df7bf4a into main Aug 9, 2024
11 of 13 checks passed
@ecrupper ecrupper deleted the fix/multiple-responses branch August 9, 2024 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants