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

Dance party: Don't allow song to be changed while running #25932

Merged
merged 4 commits into from Nov 9, 2018

Conversation

breville
Copy link
Member

@breville breville commented Nov 8, 2018

This disables changing song while the dance party level is running.

Dance party has a kind of pre-run state in which the user has pressed Run, but it's still loading assets, and so we disable the song selection during that state too.

Fixes code-dot-org/dance-party#190.

Dance party has a kind of pre-run state in which the user has pressed Run, but it's still loading assets, and so we need to disable the song selection during that state too.
@@ -395,6 +397,7 @@ Dance.prototype.runButtonClick = async function () {
this.studioApp_.toggleRunReset('reset');
// Safe to allow normal run/reset behavior now
this.runIsStarting = false;
getStore().dispatch(setRunIsStarting(false));
Copy link
Contributor

Choose a reason for hiding this comment

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

do we still need this.runIsStarting?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I can use redux now. Good idea.

Copy link
Contributor

@Bjvanminnen Bjvanminnen left a comment

Choose a reason for hiding this comment

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

I downloaded the branch to check things out. It looks like the song dropdown is disabled the entire time the song is running, which seems reasonable but was not my understanding from the PR description?

Code changes LGTM, but should probably come with a short test.

@breville
Copy link
Member Author

breville commented Nov 8, 2018

Oh, the description is an extra detail in addition to the title. I'll update :)

@joshlory
Copy link
Contributor

joshlory commented Nov 8, 2018

+1 for adding a short regression test!

@breville
Copy link
Member Author

breville commented Nov 9, 2018

UI test coverage added.

@breville breville merged commit e543667 into staging Nov 9, 2018
@breville breville deleted the dance-party-fix-song-can-be-changed-while-running branch November 9, 2018 01:31
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