Skip to content

Ensure session counts on events do not include future events #201

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

Merged
merged 1 commit into from
Jul 29, 2020

Conversation

kattrali
Copy link
Contributor

Fixes a potential issue where sessions which have not yet been counted and dispatched have incorrect counts because the nested events objects were shared across events in the same context. The issue becomes clear by running the new session middleware tests against current master.
This changeset replaces the session with a deepcopy() of it so there is no shared state between session objects. The copy itself should not have large overhead as the session objects remain small.

[PLAT-4402]

…uture events

Time travel is against regulations

[PLAT-4402]
@kattrali kattrali changed the base branch from master to next July 29, 2020 08:16
@kattrali kattrali requested a review from imjoehaines July 29, 2020 08:16
@kattrali kattrali merged commit b1963a7 into next Jul 29, 2020
@kattrali kattrali deleted the kattrali/fix-session-persistence branch July 29, 2020 08:50
@kattrali kattrali mentioned this pull request Jul 30, 2020
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

Successfully merging this pull request may close these issues.

2 participants