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

Notify owners about organization deletion #4116

Merged
merged 1 commit into from
Sep 16, 2016
Merged

Notify owners about organization deletion #4116

merged 1 commit into from
Sep 16, 2016

Conversation

mattrobenolt
Copy link
Contributor

@mattrobenolt mattrobenolt commented Sep 9, 2016

And prompt them to cancel and restore the organization.

@getsentry/infrastructure @getsentry/ui

Help on messaging here would be nice since what I put is likely garbage.

Web UI:
image

Email:
image

TODO:

  • Tests
  • Better copy

This change is Reviewable

@mattrobenolt mattrobenolt force-pushed the restore-org branch 3 times, most recently from c9945c7 to 6b4d0a2 Compare September 10, 2016 00:08
def get_owners(self):
from sentry.models import User
return User.objects.filter(
sentry_orgmember_set__role=roles.get_top_dog().id,
Copy link
Contributor

Choose a reason for hiding this comment

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

Favorite.

@ckj
Copy link
Member

ckj commented Sep 11, 2016

My stab at copy with one clear action that will work in both the app and email:

Organization queued for deletion

The Sentry organization has been scheduled for deletion by:

User: Matt Robenolt
IP:lolcalhost
Date: Sept. 9, 2016, 11:46 p.m.

This irreversible deletion will take place at Sept. 10, 2016, 11:46 p.m. and will permanently remove all associated data including events, projects, and team members.

If this was unintentional and you would like to cancel the deletion:

[Restore Organization]

event=AuditLogEntryEvent.ORG_RESTORE,
data=organization.get_audit_log_data(),
)
delete_logger.info('object.delete.canceled', extra={
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL it's normal to have both canceled and cancelled in English.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

YUP

@JTCunning
Copy link
Contributor

Reviewed 8 of 12 files at r1.
Review status: 8 of 12 files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@mattrobenolt mattrobenolt force-pushed the restore-org branch 5 times, most recently from 683dd8e to d2f7156 Compare September 12, 2016 22:02
@mattrobenolt mattrobenolt changed the title [WIP] Notify owners about organization deletion Notify owners about organization deletion Sep 12, 2016
@mattrobenolt
Copy link
Contributor Author

Alright, tests have been written, and removed "WIP" tag. :)

@dcramer
Copy link
Member

dcramer commented Sep 15, 2016

fix yo linters yo

And prompt them to cancel and restore the organization.
@mattrobenolt
Copy link
Contributor Author

@dcramer fixed

Copy link
Member

@dcramer dcramer left a comment

Choose a reason for hiding this comment

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

🚀

@mattrobenolt mattrobenolt merged commit d7a0621 into master Sep 16, 2016
@mattrobenolt mattrobenolt deleted the restore-org branch September 16, 2016 18:38
@github-actions github-actions bot locked and limited conversation to collaborators Dec 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants