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 serialization error for returning participants #1377

Merged
merged 4 commits into from
Nov 22, 2024

Conversation

BeritJanssen
Copy link
Collaborator

@BeritJanssen BeritJanssen commented Nov 19, 2024

Close #1371: the bug was caused by an old session cookie, in which the active participant already had finished sessions. Going in from this branch will assume the participant hasn't played the experiments yet, and set times_played to 0. This means that after the for loop, serialize_phase would still return None. A bit of an edge case, but it's not unrealistic to assume that it would affect participants of active experiments after release.

This branch checks the minimum session count and then sets times_played accordingly. It also reintroduces the previous implementation with recursion: this means that the participant can resume a later phase, instead of just the first one.

@BeritJanssen BeritJanssen marked this pull request as ready for review November 19, 2024 08:58
@BeritJanssen BeritJanssen requested a review from Evert-R November 19, 2024 13:27
@BeritJanssen BeritJanssen merged commit 3c2f59a into develop Nov 22, 2024
14 checks passed
@BeritJanssen BeritJanssen deleted the fix/get-experiment branch November 22, 2024 09:13
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.

🐛 About page not showing
2 participants