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

Teacher dashboard valid scripts fix #27509

Merged
merged 2 commits into from Mar 14, 2019
Merged

Teacher dashboard valid scripts fix #27509

merged 2 commits into from Mar 14, 2019

Conversation

maddiedierker
Copy link
Contributor

@maddiedierker maddiedierker commented Mar 14, 2019

pair @nkiruka

We received a report from one of our partners in Italy this morning that the following functionality was broken:

  • Set language to Italian
  • Create a new section
  • Visit the teacher dashboard for that new section
  • Result: Teacher dashboard would not load and displayed a blank screen

Reason: There were no scripts to be set in scriptSelectionRedux, which was unexpected because we always set a default script -- "Express Course." However, we were searching for "Express Course" by its English name, which is why it was breaking in other languages.

Solution: Search for the default script by script_name === 'express-2017' as script_name is not translated (whereas name is translated).

Copy link
Member

@davidsbailey davidsbailey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

Copy link
Contributor

@Hamms Hamms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Contributor

@nkiruka nkiruka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@maddiedierker maddiedierker merged commit 2e53e40 into staging Mar 14, 2019
@maddiedierker maddiedierker deleted the valid-scripts-fix branch March 14, 2019 20:16
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.

None yet

4 participants