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

Senderwrapper #436

Merged
merged 7 commits into from
Jan 28, 2024
Merged

Senderwrapper #436

merged 7 commits into from
Jan 28, 2024

Conversation

maurafortino
Copy link
Contributor

@maurafortino maurafortino commented Jan 16, 2024

What's Included:

  • commented back in caduceus request handler in http.go to implement the handler
  • updated senderwrapper to use uber/fx
  • created fx module for senderwrapper
  • removed modules and replaced them with provide functions based off of uber/fx best practices
  • Kept OutboundSenderFactory to avoid passing mutexes, but simplified so there wasn't so much duplication from SenderConfig --> CaduceusSenderWrapper --> OutboundSenderFactory --> CadueceusOutboundSender
  • updated functions for metrics of senderwrapper and outboundsender
  • added a webhook stub for testing

Copy link

codecov bot commented Jan 16, 2024

Codecov Report

Attention: 164 lines in your changes are missing coverage. Please review.

Comparison is base (132c6c5) 19.86% compared to head (234c7de) 16.78%.
Report is 4 commits behind head on denopink/feat/rewrite.

Files Patch % Lines
senderWrapper.go 0.00% 82 Missing ⚠️
outboundSender.go 0.00% 43 Missing ⚠️
metrics.go 0.00% 24 Missing ⚠️
http.go 0.00% 10 Missing ⚠️
httpClient.go 0.00% 4 Missing ⚠️
routes.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                    Coverage Diff                    @@
##           denopink/feat/rewrite     #436      +/-   ##
=========================================================
- Coverage                  19.86%   16.78%   -3.08%     
=========================================================
  Files                         12       12              
  Lines                       1148     1233      +85     
=========================================================
- Hits                         228      207      -21     
- Misses                       908     1014     +106     
  Partials                      12       12              
Flag Coverage Δ
unittests 16.78% <0.00%> (-3.08%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

guardrails bot commented Jan 16, 2024

⚠️ We detected 1 security issue in this pull request:

Insecure Network Communication (1)
Severity Details Docs
Medium Title: Insecure SSL/TLS versions allowed
TLSClientConfig: &tls.Config{InsecureSkipVerify: config.DisableClientHostnameValidation},
📚

More info on how to fix Insecure Network Communication in Go.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

Copy link
Contributor

@denopink denopink left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but I recommend (if we aren't already doing this) that we reconsider not using the preexisting design (e.g. CaduceusSenderWrapper and etc) and try simplifying the overall outbound sender design and the related support structs

@maurafortino maurafortino mentioned this pull request Jan 25, 2024
@@ -8,7 +8,6 @@ require (
emperror.dev/emperror v0.33.0
github.com/alecthomas/kong v0.8.1
github.com/go-chi/chi/v5 v5.0.10
github.com/go-kit/kit v0.13.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@maurafortino maurafortino merged commit b1caa05 into denopink/feat/rewrite Jan 28, 2024
10 of 16 checks passed
@maurafortino maurafortino deleted the senderwrapper branch January 28, 2024 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants