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

Refactor dependent user destroy #24178

Merged
merged 4 commits into from Aug 9, 2018
Merged

Conversation

maddiedierker
Copy link
Contributor

@maddiedierker maddiedierker commented Aug 8, 2018

Depends on #24168.

I was originally thinking that we would make an AJAX request to GET /users/to_destroy in order to expose those users to the teacher in the new account deletion flow, and now I'm realizing that that's not necessary.

Now, there is a dependent_students method on user that is available in the script data in registrations/edit.html.haml for our React components (DeleteAccount.jsx and children) to consume. This will also replace dependedUponForLogin.

Follow-up Work

Once this change has been deployed and is available for front-end consumption (wanted to make a parallel change since front-ends get deployed slightly after back-ends), I will render the contents of dependentStudents when a teacher is deleting their account.

@maddiedierker maddiedierker changed the base branch from add-usernames-to-destroy to staging August 8, 2018 22:02
@maddiedierker maddiedierker merged commit 1f764fb into staging Aug 9, 2018
@maddiedierker maddiedierker deleted the refactor-dependent-user-destroy branch August 9, 2018 21:32
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