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

ConfigConverter and ConfigSource implementations for the service layer #6107

Merged
merged 13 commits into from Apr 28, 2023

Conversation

hendrikebbers
Copy link
Member

@hendrikebbers hendrikebbers commented Apr 17, 2023

To use the Config API in the service layer we need to provide converters for all types that the Config API should support nativ. This PR adds converters for all types and a config source that wraps a PropertySource

Part of #5995

Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
@github-actions
Copy link

github-actions bot commented Apr 17, 2023

Node: Unit Test Results

  1 335 files    1 335 suites   1h 20m 39s ⏱️
97 358 tests 97 351 ✔️ 7 💤 0
99 000 runs  98 993 ✔️ 7 💤 0

Results for commit 7e8f636.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Apr 17, 2023

Node: Integration Test Results

    3 files      3 suites   14m 44s ⏱️
150 tests 150 ✔️ 0 💤 0
151 runs  151 ✔️ 0 💤 0

Results for commit 7e8f636.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Apr 17, 2023

Node: E2E Test Results

    1 files      1 suites   17m 10s ⏱️
309 tests 309 ✔️ 0 💤 0
327 runs  327 ✔️ 0 💤 0

Results for commit 7e8f636.

♻️ This comment has been updated with latest results.

Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
@hendrikebbers hendrikebbers marked this pull request as ready for review April 17, 2023 12:10
@hendrikebbers hendrikebbers requested review from a team as code owners April 17, 2023 12:10
@codecov
Copy link

codecov bot commented Apr 19, 2023

Codecov Report

Patch coverage: 82.45% and project coverage change: +91.08 🎉

Comparison is base (7c828f3) 0.00% compared to head (cefaf1b) 91.08%.

❗ Current head cefaf1b differs from pull request most recent head 7e8f636. Consider uploading reports for the commit 7e8f636 to get more accurate results

Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #6107       +/-   ##
==============================================
+ Coverage           0   91.08%   +91.08%     
- Complexity         0    16947    +16947     
==============================================
  Files              0     1295     +1295     
  Lines              0    48590    +48590     
  Branches           0     4905     +4905     
==============================================
+ Hits               0    44257    +44257     
- Misses             0     3396     +3396     
- Partials           0      937      +937     
Impacted Files Coverage Δ
...e/app/spi/config/converter/AccountIDConverter.java 70.00% <70.00%> (ø)
.../app/spi/config/converter/ContractIDConverter.java 70.00% <70.00%> (ø)
...node/app/spi/config/converter/FileIDConverter.java 70.00% <70.00%> (ø)
...ode/app/spi/config/converter/ProfileConverter.java 84.61% <84.61%> (ø)
.../config/converter/AbstractEnumConfigConverter.java 100.00% <100.00%> (ø)
...config/converter/HederaFunctionalityConverter.java 100.00% <100.00%> (ø)
...app/spi/config/converter/SidecarTypeConverter.java 100.00% <100.00%> (ø)
...nfig/converter/CongestionMultipliersConverter.java 100.00% <100.00%> (ø)
.../config/converter/EntityScaleFactorsConverter.java 100.00% <100.00%> (ø)
...node/app/config/converter/EntityTypeConverter.java 100.00% <100.00%> (ø)
... and 6 more

... and 1279 files with indirect coverage changes

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

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

netopyr
netopyr previously approved these changes Apr 21, 2023
Copy link
Contributor

@netopyr netopyr left a comment

Choose a reason for hiding this comment

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

Added just minor suggestion, otherwise LGTM

Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
Copy link
Member

@nathanklick nathanklick left a comment

Choose a reason for hiding this comment

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

Failing Integration tests need resolution.

@hendrikebbers
Copy link
Member Author

@nathanklick looks like this was only a temporary issues that happened after the last update of the branch.

netopyr
netopyr previously approved these changes Apr 24, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 25, 2023

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

87.8% 87.8% Coverage
1.7% 1.7% Duplication

@hendrikebbers hendrikebbers merged commit 598d751 into develop Apr 28, 2023
9 of 11 checks passed
@hendrikebbers hendrikebbers deleted the services-config-support branch April 28, 2023 06:54
@nickpoorman nickpoorman added this to the v0.38 milestone May 2, 2023
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.

None yet

6 participants