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

NOISSUE - Group service middleware into single folder #2472

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

felixgateru
Copy link
Contributor

What type of PR is this?

This is a refactor as it groups current service middleware.

What does this do?

This pr creates the following folder structure for magistrala services:
service
-- middleware
---- logging.go
---- metrics.go
---- tracing.go
---- doc.go

Which issue(s) does this PR fix/relate to?

Noissue

Have you included tests for your changes?

No

Did you document any new/modified feature?

Yes changes include godoc documentation

Notes

To be merged after #2444

@felixgateru felixgateru force-pushed the noissue-middleware branch 2 times, most recently from 36594ce to be16129 Compare October 22, 2024 09:54
Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 0% with 35 lines in your changes missing coverage. Please review.

Project coverage is 51.36%. Comparing base (52c0f26) to head (430d8c0).

Files with missing lines Patch % Lines
auth/middleware/logging.go 0.00% 1 Missing ⚠️
auth/middleware/metrics.go 0.00% 1 Missing ⚠️
auth/middleware/tracing.go 0.00% 1 Missing ⚠️
bootstrap/middleware/authorization.go 0.00% 1 Missing ⚠️
bootstrap/middleware/logging.go 0.00% 1 Missing ⚠️
bootstrap/middleware/metrics.go 0.00% 1 Missing ⚠️
bootstrap/middleware/tracing.go 0.00% 1 Missing ⚠️
certs/middleware/logging.go 0.00% 1 Missing ⚠️
certs/middleware/metrics.go 0.00% 1 Missing ⚠️
certs/middleware/tracing.go 0.00% 1 Missing ⚠️
... and 25 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2472      +/-   ##
==========================================
- Coverage   54.47%   51.36%   -3.12%     
==========================================
  Files         330      251      -79     
  Lines       34536    27103    -7433     
==========================================
- Hits        18814    13921    -4893     
+ Misses      13862    12115    -1747     
+ Partials     1860     1067     -793     

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

@felixgateru felixgateru marked this pull request as ready for review October 22, 2024 10:21
cmd/postgres-reader/main.go Outdated Show resolved Hide resolved
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.

2 participants