-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add server webhooks populateRelations config variable #1430
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
docs/developer-docs/latest/setup-deployment-guides/configurations/required/server.md
Outdated
Show resolved
Hide resolved
|
LGTM minus the formatting change. Thanks, Marc! |
…ons/required/server.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
yes :), we plan on removing / setting to false by default in v5 |
docs/developer-docs/latest/setup-deployment-guides/configurations/required/server.md
Outdated
Show resolved
Hide resolved
OK, thanks. So I suggest we explicitly mention Strapi v5 :) |
…gin/dev/webhook-populated-relations"
We discussed about this and finally we agreed we will not be removing this in v5, as it can be used in other features as Audit logs. So I removed that bit of text :D |
|
I added a migration guide for people to know we encourage to disable having populated relations in the webhooks. |
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.
Thanks, @Marc-Roig.
I guess this should be merged for the v4.6 release? (we're releasing in a few minutes now)
Edit: Nevermind, I've just seen the corresponding strapi/strapi PR assigned to v4.6.1.
docs/developer-docs/latest/setup-deployment-guides/configurations/required/server.md
Outdated
Show resolved
Hide resolved
docs/developer-docs/latest/update-migration-guides/migration-guides.md
Outdated
Show resolved
Hide resolved
...er-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.5.1-to-4.6.1.md
Outdated
Show resolved
Hide resolved
...er-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.5.1-to-4.6.1.md
Outdated
Show resolved
Hide resolved
...er-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.5.1-to-4.6.1.md
Outdated
Show resolved
Hide resolved
...er-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.5.1-to-4.6.1.md
Outdated
Show resolved
Hide resolved
…ons/required/server.md Co-authored-by: Pierre Noël <petersg83@users.noreply.github.com>
…uides/v4/migration-guide-4.5.1-to-4.6.1.md Co-authored-by: Pierre Noël <petersg83@users.noreply.github.com>
…uides/v4/migration-guide-4.5.1-to-4.6.1.md Co-authored-by: Pierre Noël <petersg83@users.noreply.github.com>
…uides/v4/migration-guide-4.5.1-to-4.6.1.md Co-authored-by: Pierre Noël <petersg83@users.noreply.github.com>
* move sizeLimit one level above in upload provider * add sizeLimit deprecation warning * minor change * minor change * checkFileSize upload provider * Update docs/developer-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.3.x-to-4.4.x.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com> * Update docs/developer-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.3.x-to-4.4.x.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com> * Update docs/developer-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.3.x-to-4.4.x.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com> * Update docs/developer-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.3.x-to-4.4.x.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com> * Update docs/developer-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.3.x-to-4.4.x.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com> * Update docs/developer-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.3.x-to-4.4.x.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com> * Update docs/developer-docs/latest/update-migration-guides/migration-guides/v4/migration-guide-4.3.x-to-4.4.x.md Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com> * move migration steps to 4.5.1 to 4.6.1 --------- Co-authored-by: Pierre Wizla <pwizla@users.noreply.github.com>
Proposed changes are implemented and we release this on wednesday :)
What does it do?
We introduced a regression after the relations performance feature.
We were not populating relation fields when creating/updating/... an entity, and now the content manager handles relations fields in a separate (and paginated) way.
A side effect of that is the webhooks are not receiving populated relations, and this PR aims to provide a solution for it.
We introduced a configuration variable so, by default, webhooks receive populated relations. But for performance reasons we let users disable this configuration.
We should also recommend to disable it.
Why is it needed?
To fix the regression and let users disable this behaviour to get increased performance on the Content Manager when creating,updating,deleting entities.
Related issue(s)/PR(s)
strapi/strapi#15363