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

[FW][FIX] digest: do not write on default digest if not necessary #162434

Closed

Conversation

fw-bot
Copy link
Contributor

@fw-bot fw-bot commented Apr 18, 2024

When a portal user is created (e.g. through the auth_signup module),
an unnecessary write is done on the write_date of the default digest.
This write is unnecessary since a portal user is never subscribed to
the default digest.

In case of a high signup frequency, it can cause concurrent transaction
errors.

We avoid writing if no internal user is being created.

Forward-Port-Of: #162230

When a portal user is created (e.g. through the `auth_signup` module),
an unnecessary write is done on the `write_date` of the default digest.
This `write` is unnecessary since a portal user is never subscribed to
the default digest.

In case of a high signup frequency, it can cause concurrent transaction
errors.

We avoid writing if no internal user is being created.

X-original-commit: bbc427e
@robodoo
Copy link
Contributor

robodoo commented Apr 18, 2024

@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 18, 2024

This PR targets saas-16.4 and is part of the forward-port chain. Further PRs will be created up to master.

More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port

@robodoo robodoo added the forwardport This PR was created by @fw-bot label Apr 18, 2024
@C3POdoo C3POdoo added the RD research & development, internal work label Apr 18, 2024
@fw-bot
Copy link
Contributor Author

fw-bot commented Apr 18, 2024

@nim-odoo ci/runbot failed on this forward-port PR

@nim-odoo
Copy link
Contributor

robodoo retry

@robodoo
Copy link
Contributor

robodoo commented Apr 19, 2024

I'm sorry, @nim-odoo: retry makes no sense when the PR is not in error.

robodoo pushed a commit that referenced this pull request Apr 19, 2024
When a portal user is created (e.g. through the `auth_signup` module),
an unnecessary write is done on the `write_date` of the default digest.
This `write` is unnecessary since a portal user is never subscribed to
the default digest.

In case of a high signup frequency, it can cause concurrent transaction
errors.

We avoid writing if no internal user is being created.

closes #162434

X-original-commit: bbc427e
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
@robodoo robodoo closed this Apr 19, 2024
@fw-bot fw-bot deleted the saas-16.4-16.0-digest_user-nim-QVXe-fw branch May 3, 2024 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
forwardport This PR was created by @fw-bot RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants