Skip to content

[ADD] website_visitor_defensive: defensive visitor tracking for concurrent traffic - #3651

Open
dreispt wants to merge 1 commit into
OCA:19.0from
dreispt:19.0-add-website-visitor-defensive
Open

dreispt wants to merge 1 commit into
OCA:19.0from
dreispt:19.0-add-website-visitor-defensive

Conversation

@dreispt

@dreispt dreispt commented Sep 1, 2026

Copy link
Copy Markdown
Member

Add a new module that prevents website.visitor upserts from causing
HTTP 500 and long response times under concurrent public traffic.
The implementation wraps _get_visitor_from_request in a savepoint,
recovers from PostgreSQL SerializationFailure, and skips tracking
for high-traffic paths such as assets and translations.

Assisted-by: Devin:SWE-1.7 Medium

@OCA-git-bot OCA-git-bot added series:19.0 mod:website_visitor_defensive Module website_visitor_defensive labels Sep 1, 2026
@dreispt
dreispt force-pushed the 19.0-add-website-visitor-defensive branch from a9abb00 to 32ceb6d Compare September 1, 2026 15:51
@dreispt
dreispt marked this pull request as draft September 1, 2026 15:58
@dreispt
dreispt force-pushed the 19.0-add-website-visitor-defensive branch from 32ceb6d to 59d4cf4 Compare September 1, 2026 16:04
…rrent traffic

Add a new module that prevents website.visitor upserts from causing
HTTP 500 and long response times under concurrent public traffic.
The implementation wraps _get_visitor_from_request in a savepoint,
recovers from PostgreSQL SerializationFailure, and skips tracking
for high-traffic paths such as assets and translations.

Assisted-by: Devin:SWE-1.7 Medium
@dreispt
dreispt force-pushed the 19.0-add-website-visitor-defensive branch from 59d4cf4 to b6746a7 Compare September 1, 2026 16:18
@dreispt
dreispt marked this pull request as ready for review September 1, 2026 16:26

@tarteo tarteo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't this be in repostory OCA/website?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:website_visitor_defensive Module website_visitor_defensive series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants