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

Fix bug where migrated students in rostered sections with passwords get delete… #24420

Merged
merged 1 commit into from Aug 22, 2018

Conversation

maddiedierker
Copy link
Contributor

@maddiedierker maddiedierker commented Aug 22, 2018

…d with teacher

Students that met the following requirements were incorrectly being deleted with teacher accounts:

  • is migrated
  • has 1 AuthenticationOption
  • is in 1+ rostered (Google Classroom or Clever at this point in time) sections

If a student meets the above requirements but they also have a password, they should not be deleted. This PR fixes the condition where students were being deleted whether or not they had a password.

This isn't a huge deal at this point because it only applies to migrated students, and no users have been migrated yet. (Although it could have been!)

This was a misunderstanding in the requirements on my part, as I explicitly was not checking encrypted_password for migrated students.

Copy link
Contributor

@islemaster islemaster left a comment

Choose a reason for hiding this comment

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

Great! Love how that logic actually got simpler.

@maddiedierker maddiedierker merged commit 4608ada into staging Aug 22, 2018
@maddiedierker maddiedierker deleted the rostered-student-delete-bug branch August 22, 2018 20:49
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

2 participants