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 concurrency bug breaking Website Selector #22990

Open
wants to merge 15 commits into
base: 5.x-dev
Choose a base branch
from
Open

Conversation

nathangavin
Copy link
Contributor

@nathangavin nathangavin commented Jan 28, 2025

Description:

See DEV-18780.

If a user is viewing a report which is available for the current site but is unavailable on another site, switching to the site can trigger the matomoPageChange event, which will abort Ajax calls still in progress, including the call for the SiteSelector. By preventing the SiteSelector ajax call from being added into the GlobalAjaxQueue, it is not impacted by any abort events when a report change. There shouldn't be any side effects with not aborting the SiteSelector ajax call in this situation.

Review

@nathangavin nathangavin marked this pull request as ready for review January 29, 2025 01:58
@nathangavin nathangavin requested a review from a team January 29, 2025 01:58
@nathangavin nathangavin added Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review labels Jan 29, 2025
@sgiehl sgiehl added this to the 5.3.0 milestone Jan 30, 2025
@nathangavin nathangavin requested a review from mneudert February 2, 2025 22:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. Needs Review PRs that need a code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants