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

refactor(entity-manager): getDeepPopulate #14977

Merged
merged 3 commits into from Dec 8, 2022

Conversation

nathan-pichon
Copy link
Member

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

@nathan-pichon nathan-pichon self-assigned this Nov 23, 2022
@nathan-pichon nathan-pichon added source: core:content-manager Source is core/content-manager package pr: enhancement This PR adds or updates some part of the codebase or features labels Nov 23, 2022
@codecov
Copy link

codecov bot commented Nov 23, 2022

Codecov Report

Base: 59.68% // Head: 64.26% // Increases project coverage by +4.58% 🎉

Coverage data is based on head (fd99bfe) compared to base (94cd474).
Patch has no changes to coverable lines.

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     
Flag Coverage Δ
back ?
front 64.26% <ø> (+0.03%) ⬆️
unit_back ?
unit_front 64.26% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...in/src/content-manager/pages/EditView/selectors.js 33.33% <0.00%> (-6.67%) ⬇️
...es/core/upload/admin/src/pages/App/MediaLibrary.js 78.72% <0.00%> (-5.13%) ⬇️
...ckages/core/upload/admin/src/hooks/useEditAsset.js 41.66% <0.00%> (-1.20%) ⬇️
.../admin/src/content-manager/pages/EditView/index.js 44.00% <0.00%> (-1.08%) ⬇️
...pe-builder/admin/src/components/FormModal/index.js 0.00% <0.00%> (ø)
.../src/content-manager/pages/EditView/utils/index.js 100.00% <0.00%> (ø)
...src/components/EditAssetDialog/PreviewBox/index.js 67.54% <0.00%> (ø)
...rc/components/EditAssetDialog/RemoveAssetDialog.js 100.00% <0.00%> (ø)
.../admin/src/components/FormModalEndActions/index.js 0.00% <0.00%> (ø)
.../content-manager/server/services/entity-manager.js
... and 297 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.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nathan-pichon nathan-pichon force-pushed the refactor/deep-populate-entity-manager branch from ff702a6 to 773adcc Compare November 24, 2022 09:16
@nathan-pichon nathan-pichon marked this pull request as ready for review November 25, 2022 08:27
Copy link
Contributor

@petersg83 petersg83 left a comment

Choose a reason for hiding this comment

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

Nice split :)

Copy link
Contributor

@petersg83 petersg83 left a comment

Choose a reason for hiding this comment

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

LGTM! Well done :)

@nathan-pichon nathan-pichon merged commit ed5c21e into main Dec 8, 2022
@nathan-pichon nathan-pichon deleted the refactor/deep-populate-entity-manager branch December 8, 2022 09:00
@nathan-pichon nathan-pichon added this to the 4.5.5 milestone Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: enhancement This PR adds or updates some part of the codebase or features source: core:content-manager Source is core/content-manager package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants