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

Followup to Bugfix: PropType error in AddSectionDialog #17224

Merged
merged 2 commits into from Aug 23, 2017

Conversation

islemaster
Copy link
Contributor

@ewjordan reported a PropType error when adding a new section from the teacher homepage:

screen shot 2017-08-22 at 4 41 10 pm

I introduced this regression while doing cleanup after we enabled the section-flow-2017 experiment. Click event arguments were accidentally being passed through to the beginEditingNewSection function, which has optional arguments but in this case should have been called with none.

I've fixed the problem in OwnedSections, updated a workaround for the same issue in SetUpSections to follow the same pattern, and written unit tests in both places to prevent this from regressing in the future.

@islemaster
Copy link
Contributor Author

Update: The regression in this PR is worse than I thought (it's impossible to create a new section with this button) so we're prepping a hotfix with just the first commit from this PR (#17233) and this will end up being just the cleanup in the remaining two commits.

@Bjvanminnen
Copy link
Contributor

LGTM. I've hit this sort of issue before too :(

@islemaster islemaster changed the title Bugfix: PropType error in AddSectionDialog Followup to Bugfix: PropType error in AddSectionDialog Aug 23, 2017
@islemaster islemaster merged commit c5752f4 into staging Aug 23, 2017
@islemaster islemaster deleted the fix-proptype-error branch August 23, 2017 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants