-
Notifications
You must be signed in to change notification settings - Fork 29
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(entities,resources): Decouple parsing from entities hook into a separate serializer class #1671
Conversation
mmelko
commented
Nov 28, 2024
- create CamelResourceSerializer interface and YamlCamelResourceSerializer implementantion
- create CamelResourceFactory and CamelKResourceFactory to creating new resources
- move parsing out of the entities hook
Thanks @mmelko for putting this together. I'm turning this PR into a draft for now, so we don't consume Chromatic credits until we're ready to merge 😄 |
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.
Looks good @mmelko 💪 , let's try to tackle the open comments first
@lordrip thanks for the review! Updated code coming soon. |
…o separate serializer class * create CamelResourceSerializer interface and YamlCamelResourceSerializer implementantion * create CamelResourceFactory and CamelKResourceFactory to creating new resources * move parsing out of the entities hook
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1671 +/- ##
=======================================
Coverage ? 78.96%
Complexity ? 365
=======================================
Files ? 464
Lines ? 14541
Branches ? 2780
=======================================
Hits ? 11483
Misses ? 2789
Partials ? 269 ☔ View full report in Codecov by Sentry. |
@lordrip I incorporated your suggestions and also added types into the CamelResourceFactory, please check. |
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.
Just a couple of little touches and we're good to go
53b7840
to
83b70f2
Compare
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.
Looks good 🟢 , thanks for taking care @mmelko
…f unknown update tests to reflect types
Quality Gate passedIssues Measures |