Skip to content

Warn about projects to be deleted whe an account is deleted #6414

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

Closed
wants to merge 12 commits into from

Conversation

stsewd
Copy link
Member

@stsewd stsewd commented Nov 27, 2019

Screenshot_2019-11-27 Delete Account Read the Docs

@stsewd stsewd requested a review from a team November 27, 2019 18:43
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

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

I think this is good. I've done some suggestions regarding the UI, but probably @agjohnson is a better reviewer on this.

<p>
<p>
<strong>All projects where you are the only owner will be deleted.</strong>
If you want to keep a project, add another owner or transfer ownership.
Copy link
Member

Choose a reason for hiding this comment

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

I think we could add a subtitle here. What about something like this?


Delete Account

All projects where you are the only owner will be deleted.
If you want to keep a project, add another owner or transfer ownership.

Projects to be delete

The following projects and all their documentation will be deleted:

  • Project A
  • Project B

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 on the heading, we can skip the paragraph below the heading which is redundant.

Co-Authored-By: Manuel Kaufmann <[email protected]>
@stsewd stsewd requested a review from agjohnson December 4, 2019 22:52
@stale
Copy link

stale bot commented Jan 19, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: stale Issue will be considered inactive soon label Jan 19, 2020
@stsewd stsewd removed the Status: stale Issue will be considered inactive soon label Jan 20, 2020
@ericholscher
Copy link
Member

@agjohnson would be good to get this reviewed.

@@ -25,3 +25,9 @@ def sort_version_aware(versions):
def is_project_user(user, project):
"""Return if user is a member of project.users."""
return user in project.users.all()


@register.filter
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there a reason why this is a filter rather than just data set on the context in AccountDelete? It seems a somewhat awkward filter.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry for the late reply. After reading the code again and the one on .com, I think it was because we need to override this on .com, but I'll see if I can use the SetttingsObjectOverride pattern here

Copy link
Member Author

Choose a reason for hiding this comment

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

Managed to get it working with SettingsOverride :)

@stsewd stsewd requested a review from davidfischer February 12, 2020 23:29
@stale
Copy link

stale bot commented Mar 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: stale Issue will be considered inactive soon label Mar 29, 2020
@stsewd stsewd added Accepted Accepted issue on our roadmap and removed Status: stale Issue will be considered inactive soon labels Mar 30, 2020
@stsewd stsewd requested a review from a team April 6, 2020 17:54
Copy link
Contributor

@agjohnson agjohnson left a comment

Choose a reason for hiding this comment

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

It's not clear what this will look like to users on commercial that delete their account. Have you tested this?


{% block delete-warning %}
<p>
<p>
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't believe nested <p> is valid, and shouldn't be required either way.

{% block delete-warning %}
<p>
<p>
<strong>All projects where you are the only owner will be deleted.</strong>
Copy link
Contributor

Choose a reason for hiding this comment

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

Untranslated string here. Also is this the messaging we'll give to commercial users?

<p>
<p>
<strong>All projects where you are the only owner will be deleted.</strong>
If you want to keep a project, add another owner or transfer ownership.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 on the heading, we can skip the paragraph below the heading which is redundant.

@stsewd
Copy link
Member Author

stsewd commented May 11, 2020

It's not clear what this will look like to users on commercial that delete their account. Have you tested this?

There is a PR to override this in .com (744)

@stsewd
Copy link
Member Author

stsewd commented May 4, 2022

Replaced with #9164

@stsewd stsewd closed this May 4, 2022
@stsewd stsewd deleted the warn-projects-to-be-deleted branch May 4, 2022 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants