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

Bug fix: valid scripts with no alternate script mapped to nil for experiment-enabled users #22687

Merged
merged 2 commits into from May 25, 2018

Conversation

maddiedierker
Copy link
Contributor

@maddiedierker maddiedierker commented May 25, 2018

This fixes a bug found in this Honeybadger error and a failing feature test on related PR #22669. For users with course experiments enabled, Script.valid_scripts returned nil for any script that did not have an alternate script.

Rather than just mapping scripts to their alternate scripts for course-experiment-enabled users, valid_scripts should check if an alternate script exists. If there is an alternate script, return the alternate; otherwise, return the original script (rather than nil).

@maddiedierker maddiedierker merged commit 0c8f8f4 into staging May 25, 2018
@maddiedierker maddiedierker deleted the fix-valid-scripts-bug branch May 25, 2018 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants