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

Account deletion request final #314

Merged
merged 10 commits into from
Apr 2, 2024

Conversation

ayobi
Copy link
Contributor

@ayobi ayobi commented Feb 9, 2024

This pushes #267 over the finish line to allow an admin to delete an account (admin is prompted to supply a reason for account deletion)

@cassidysymons
Copy link
Collaborator

@ayobi One request, and it's something I unfortunately should've considered earlier. Can you add the deletion reason field to the participant's UI as an optional field? The field should still be a part of the admin UI, either populated with the participant's reason, or blank if they opted not to provide one. Ideally, we'd like to give the user the option to enter the reason they're removing themselves from the project without us having to contact them and ask.

microsetta_interface/implementation.py Show resolved Hide resolved
microsetta_interface/implementation.py Show resolved Hide resolved
microsetta_interface/routes.yaml Outdated Show resolved Hide resolved
{% set show_breadcrumbs = False %}
{% block content %}
<script>
function verifyDeleteRequest() {
Copy link
Member

Choose a reason for hiding this comment

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

This seems nearly duplicated in the prior template, is it possible to centralize the method?

Copy link
Member

Choose a reason for hiding this comment

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

Or maybe there's something I'm misunderstanding

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah they're pretty similar, for the admin one the prompt wording is slightly different as well as the getElementById

@wasade
Copy link
Member

wasade commented Feb 22, 2024 via email

if has_error:
return put_output

return _render_with_defaults('request_account_deletion_confirm.jinja2')
Copy link
Collaborator

Choose a reason for hiding this comment

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

@ayobi I'm running into an odd issue with this on the staging server. Private API receives and successfully logs the removal request, but when the template contents are returned, they're enclosed in double quotes and the browser isn't rendering it correctly (screenshot below). Does this match what's happening in your local environment? I'm trying to determine if this is a code issue with the template/yaml file or what's going on here.

request_removal_raw

Copy link
Collaborator

@cassidysymons cassidysymons left a comment

Choose a reason for hiding this comment

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

Looks good functionally, just a few aesthetic changes to the deletion confirmation template to bring it in line with the account details page visually.

@cassidysymons cassidysymons merged commit e62840a into biocore:master Apr 2, 2024
3 checks passed
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.

3 participants