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

Reorganize common folder #235

Merged
merged 11 commits into from
Dec 16, 2021
Merged

Reorganize common folder #235

merged 11 commits into from
Dec 16, 2021

Conversation

mtrinh11
Copy link
Contributor

@mtrinh11 mtrinh11 commented Dec 3, 2021

No description provided.

@codecov
Copy link

codecov bot commented Dec 7, 2021

Codecov Report

Merging #235 (e419973) into main (f37e8df) will increase coverage by 1.13%.
The diff coverage is 72.83%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
+ Coverage   46.44%   47.57%   +1.13%     
==========================================
  Files          13       11       -2     
  Lines         773      763      -10     
==========================================
+ Hits          359      363       +4     
+ Misses        405      391      -14     
  Partials        9        9              
Impacted Files Coverage Δ
main.go 0.00% <0.00%> (ø)
translation/transport_utils.go 78.88% <50.00%> (ø)
translation/transport.go 88.51% <61.53%> (+0.07%) ⬆️
stat/transport.go 66.66% <66.66%> (+0.75%) ⬆️
transaction/transactor.go 63.15% <81.48%> (ø)
transaction/errors.go 92.30% <88.88%> (ø)
stat/service.go 86.66% <100.00%> (ø)
translation/service.go 81.81% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f37e8df...e419973. Read the comment docs.

@mtrinh11
Copy link
Contributor Author

fixes #123

transaction/transactor.go Outdated Show resolved Hide resolved
transaction/transactor.go Outdated Show resolved Hide resolved
transaction/transactor.go Outdated Show resolved Hide resolved
transaction/transactor.go Outdated Show resolved Hide resolved
transaction/transactor.go Outdated Show resolved Hide resolved
transaction/transactor.go Outdated Show resolved Hide resolved
// keep track of incoming requests and their corresponding responses
func TransactionLogging(reducedLoggingResponseCodes []int, logger kitlog.Logger) kithttp.ServerFinalizerFunc {
func Logging(reducedLoggingResponseCodes []int, logger kitlog.Logger) kithttp.ServerFinalizerFunc {
Copy link
Contributor

Choose a reason for hiding this comment

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

Logging is kind of weird, since normally our function verbs are more direct.

Suggested change
func Logging(reducedLoggingResponseCodes []int, logger kitlog.Logger) kithttp.ServerFinalizerFunc {
func Log(reducedLoggingResponseCodes []int, logger kitlog.Logger) kithttp.ServerFinalizerFunc {

I also think the logger parameter should be first, but not sure that this pr is a good place to do that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created a ticket for moving the parameter. I've applied the syntax to this pr!
#236

@sonarcloud
Copy link

sonarcloud bot commented Dec 16, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

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

68.3% 68.3% Coverage
0.0% 0.0% Duplication

Copy link
Contributor

@kristinapathak kristinapathak left a comment

Choose a reason for hiding this comment

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

🥳

@mtrinh11 mtrinh11 merged commit 82f8322 into main Dec 16, 2021
@mtrinh11 mtrinh11 deleted the renamecommon branch December 16, 2021 02:32
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