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

Should mapper respect normalization groups? #72

Open
acirulis opened this issue Nov 13, 2023 · 0 comments
Open

Should mapper respect normalization groups? #72

acirulis opened this issue Nov 13, 2023 · 0 comments

Comments

@acirulis
Copy link
Contributor

PATCH request in API Platform (Data Processor), as first step invokes Data Provider in order to get full patchable resource with original content from storage (database).
In APIP architecture, normalization groups are applied after Data Provider/Processor is called.

However, Mapper uses Normalization groups for relations, in order to increase performance (if target relation does not have normalization group from context, relation is ignored).

Upside: performance increases
Downside: if relation is not required in READ context (but required for WRITE only, for example) , and READ normalization group is not applied, it will be lost during PATCH operation.

How to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant