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(entity-manager): getDeepPopulate #14977
Conversation
Codecov ReportBase: 59.68% // Head: 64.26% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #14977 +/- ##
==========================================
+ Coverage 59.68% 64.26% +4.58%
==========================================
Files 1342 1055 -287
Lines 32629 22482 -10147
Branches 6224 3977 -2247
==========================================
- Hits 19473 14447 -5026
+ Misses 11293 7070 -4223
+ Partials 1863 965 -898
Flags with carried forward coverage won't be shown. Click here to find out more.
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 at Codecov. |
ff702a6
to
773adcc
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.
Nice split :)
packages/core/content-manager/server/services/utils/populate.js
Outdated
Show resolved
Hide resolved
packages/core/content-manager/server/services/utils/populate.js
Outdated
Show resolved
Hide resolved
packages/core/content-manager/server/services/utils/populate.js
Outdated
Show resolved
Hide resolved
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.
LGTM! Well done :)
What does it do?
It split the getDeepPopulate function into smaller ones and clean unused parameter.
Why is it needed?
Reduce maintenance cost
How to test it?
As getDeepPopulate is used everywhere in the Entity manager, you can test pretty much any functionality about entities in the admin panel.
Related issue(s)/PR(s)
Let us know if this is related to any issue/pull request