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

Move random choice logic to the backend and test #18

Open
goldpbear opened this issue Feb 15, 2020 · 0 comments
Open

Move random choice logic to the backend and test #18

goldpbear opened this issue Feb 15, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@goldpbear
Copy link
Collaborator

Currently, both the random selection of a respondent and the random selection of the question presented to the user on the question2 stage of the experiment are determined client-side, in the JS code.

Instead, I think we should make the random determinations in the backend. That way, we can write tests that check we are getting the expected statistical distributions of random questions over many runs of the experiment.

@goldpbear goldpbear added the enhancement New feature or request label Feb 15, 2020
@goldpbear goldpbear self-assigned this Feb 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant