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

fix(medusa): Clean response data usage for admin and store fields/expand #3323

Merged
merged 9 commits into from
Feb 28, 2023

Conversation

adrien2p
Copy link
Member

@adrien2p adrien2p commented Feb 23, 2023

What

The clean response data utils was not properly or easy to use in the context of the admin domain. Cleanup and update the req API to include both storeAllowedProperties and adminAllowedProperties to be used in the appropriate end point handler along side the cleanResponseData. As of now, the totals fields of any entities will remain present until the todo gets resolved. Otherwise it means that the user need to pass the total fields manually which in the end will trigger the legacy total computation instead of the performant one

RESOLVES CORE-1162

@changeset-bot
Copy link

changeset-bot bot commented Feb 23, 2023

🦋 Changeset detected

Latest commit: 101076d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@medusajs/medusa Patch
@medusajs/inventory Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@adrien2p adrien2p marked this pull request as ready for review February 23, 2023 14:54
@adrien2p adrien2p requested a review from a team as a code owner February 23, 2023 14:54
Copy link
Contributor

@olivermrbl olivermrbl left a comment

Choose a reason for hiding this comment

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

Great work! Only a minuscule todo :)

@olivermrbl olivermrbl added the status: needs docs Needs internal documentation (as a minimum) label Feb 28, 2023
@olivermrbl
Copy link
Contributor

@adrien2p Don't mind the label here. Added it to later find the PRs that need internal documentation :)

@olivermrbl
Copy link
Contributor

@fPolic @riqwan, one of you want to give this another review before we merge?

Copy link
Contributor

@fPolic fPolic left a comment

Choose a reason for hiding this comment

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

LGTM 💪

@olivermrbl olivermrbl merged commit cbbf3ca into develop Feb 28, 2023
@olivermrbl olivermrbl deleted the fix/clean-response-data branch February 28, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs docs Needs internal documentation (as a minimum) version: minor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants