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

chore: upgrade to latest go-libs #59

Merged

Conversation

gfyrag
Copy link
Contributor

@gfyrag gfyrag commented Nov 23, 2022

Update go-libs to last version.
Also use github.com/formancehq/go-libs import path instead of github.com/numary/go-libs.

Changes also add pre-commit config.
Other changes are caused by the linter on pre-commit which remove trailing spaces on files.

Also, fix a little "bug" on flags which was defined on root command instead of the "server" command.

@gfyrag gfyrag force-pushed the feat/num-1050-payments-update-go-libs-to-last-version branch from e79c6cc to 224b8ee Compare November 23, 2022 13:51
root.Flags().Bool(publisherKafkaEnabledFlag, false, "Publish write events to kafka")
root.Flags().StringSlice(publisherKafkaBrokerFlag, []string{}, "Kafka address is kafka enabled")
root.Flags().StringSlice(publisherTopicMappingFlag,
server.Flags().BoolP("toggle", "t", false, "Help message for toggle")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Set flags on server command and not un root command.

false, "Use scopes as defined by rfc https://datatracker.ietf.org/doc/html/rfc8693")

sharedotlptraces.InitOTLPTracesFlags(server.Flags())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Library now automatically setup flags.

@gfyrag gfyrag force-pushed the feat/num-1050-payments-update-go-libs-to-last-version branch from 224b8ee to 8447e4c Compare November 23, 2022 14:02
@gfyrag gfyrag marked this pull request as ready for review November 23, 2022 14:03
@codecov
Copy link

codecov bot commented Nov 23, 2022

Codecov Report

Merging #59 (c8d90b3) into main (cf71535) will increase coverage by 0.10%.
The diff coverage is 7.50%.

@@            Coverage Diff             @@
##             main      #59      +/-   ##
==========================================
+ Coverage   24.34%   24.45%   +0.10%     
==========================================
  Files          87       87              
  Lines        4140     4147       +7     
==========================================
+ Hits         1008     1014       +6     
- Misses       3038     3039       +1     
  Partials       94       94              
Impacted Files Coverage Δ
cmd/root.go 0.00% <0.00%> (ø)
cmd/server.go 0.00% <0.00%> (ø)
internal/app/api/connector.go 0.00% <ø> (ø)
internal/app/api/connectormodule.go 0.00% <ø> (ø)
internal/app/api/module.go 0.00% <ø> (ø)
internal/app/api/payments.go 0.00% <ø> (ø)
internal/app/database/module.go 0.00% <0.00%> (ø)
internal/pkg/connectors/bankingcircle/client.go 0.00% <0.00%> (ø)
internal/pkg/connectors/bankingcircle/loader.go 0.00% <ø> (ø)
...kg/connectors/bankingcircle/task_fetch_payments.go 0.00% <0.00%> (ø)
... and 35 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

also add pre-commit config
@gfyrag gfyrag force-pushed the feat/num-1050-payments-update-go-libs-to-last-version branch from 8447e4c to a7d0c9b Compare November 24, 2022 08:10
@antoinegelloz antoinegelloz merged commit 5c6b29b into main Nov 29, 2022
@antoinegelloz antoinegelloz deleted the feat/num-1050-payments-update-go-libs-to-last-version branch November 29, 2022 15:48
flemzord pushed a commit that referenced this pull request Sep 25, 2024
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