-
Notifications
You must be signed in to change notification settings - Fork 76
refactor: Clio Config #1544
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
refactor: Clio Config #1544
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #1544 +/- ##
===========================================
+ Coverage 69.19% 69.56% +0.37%
===========================================
Files 244 254 +10
Lines 9702 9904 +202
Branches 5384 5466 +82
===========================================
+ Hits 6713 6890 +177
- Misses 1589 1595 +6
- Partials 1400 1419 +19 ☔ View full report in Codecov by Sentry. |
godexsoft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice progress. Leaving some improvement ideas 👍
|
Thank you for taking the time to review @godexsoft @cindyyan317 🙇 |
|
There should be also tests for Array, ConfigConstraints (or delete them for now), ConfigDefinition, ConfigValue. |
kuznetsss
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
godexsoft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is a pretty cool system and i like the implementation 👍
This could be already be shipped but since this is a learning experience for you I'm leaving a few more suggestions and comments.
You can still use [[nodiscard]] more as well as const is missing in many places where it could be added.
It's also good to look for other algorithms than find_if - many times there will be some algo that's a better choice for the job at hand.
godexsoft
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes since my last review look good 👍 🚀
Add constraint + parse json into Config Second part of refactoring Clio Config; First PR found [here](#1544) Steps that are left to implement: - Replacing all the places where we fetch config values (by using config.valueOr/MaybeValue) to instead get it from Config Definition - Generate markdown file using Clio Config Description
Add constraint + parse json into Config Second part of refactoring Clio Config; First PR found [here](#1544) Steps that are left to implement: - Replacing all the places where we fetch config values (by using config.valueOr/MaybeValue) to instead get it from Config Definition - Generate markdown file using Clio Config Description
Implementation of new config definition + methods + UT
Steps that still need to be implemented: