Skip to content

Delete account #2978

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

Merged
merged 4 commits into from
Feb 19, 2018
Merged

Delete account #2978

merged 4 commits into from
Feb 19, 2018

Conversation

di
Copy link
Member

@di di commented Feb 19, 2018

Fixes #2832.

@nlhkabu This just needs a quick glance.

With projects solely owned by the user:

screen shot 2018-02-18 at 6 16 50 pm

Without any projects solely owned by the user:
screen shot 2018-02-18 at 6 17 19 pm

Corresponding modal:
screen shot 2018-02-18 at 6 19 38 pm

@nlhkabu
Copy link
Contributor

nlhkabu commented Feb 19, 2018

Updated and ready on my side @di :)

Many projects

screenshot from 2018-02-19 07-30-49

One project

screenshot from 2018-02-19 07-29-51

No projects

screenshot from 2018-02-19 07-28-40

@nlhkabu
Copy link
Contributor

nlhkabu commented Feb 19, 2018

Also, not sure if this is just my local install... I'm getting a sqlalchemy error on /account/register/ on this branch:

screenshot from 2018-02-19 07-37-51

sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) relation "warehouse_admin_flag" does not exist
LINE 2: FROM warehouse_admin_flag 
             ^
 [SQL: 'SELECT warehouse_admin_flag.id AS warehouse_admin_flag_id, warehouse_admin_flag.description AS warehouse_admin_flag_description, warehouse_admin_flag.enabled AS warehouse_admin_flag_enabled \nFROM warehouse_admin_flag \nWHERE warehouse_admin_flag.id = %(id_1)s \n LIMIT %(param_1)s'] [parameters: {'id_1': 'disallow-new-user-registration', 'param_1': 1}] (Background on this error at: http://sqlalche.me/e/f405)

@nlhkabu
Copy link
Contributor

nlhkabu commented Feb 19, 2018

Another thing @di - I noticed that there is no confirmation message when a user deletes their account. Is this normal?

@di
Copy link
Member Author

di commented Feb 19, 2018

@nlhkabu Looks great! The error is because there was a migration in #2967, you'll need to do a docker-compose run web python -m warehouse db upgrade head.

I'm not entirely sure what you mean by confirmation message, but I think you mean something like a green "Account successfully deleted" flash or something similar. We can't flash a message here because once the user is deleted, they are logged out and their session is destroyed.

We do have the modal, and there is an email sent to the primary email address with a notification that the account was deleted, so I think that should suffice.

@di di merged commit bc74cd2 into master Feb 19, 2018
@di di deleted the delete-account branch February 19, 2018 16:54
@nlhkabu
Copy link
Contributor

nlhkabu commented Feb 19, 2018

ok, thanks @di. I was thinking of a "Account successfully deleted" flash, but if we have no session, that makes sense :D

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.

2 participants