zulip/corporate/views
Lauryn Menard 673a01ea0c realm-deactivation: Send email to owners as part of deactivation.
Creates a new "realm_deactivated" email that can be sent to realm
owners as part of `do_deactivate_realm`, via a boolean flag,
`email_owners`.

This flag is set to `False` when `do_deactivate_realm` is used for
realm exports or changing a realm's subdomain, so that the active
organization owners are not emailed in those cases.

This flag is optional for the `deactivate_realm` management command,
but as there is no active user passed in that case, then the email
is sent without referencing who deactivated the realm.

It is passed as `True` for the support analytics view, but the email
that is generated does not include information about the support
admin user who completed the request for organization deactivation.

When an active organization owner deactivates the organization, then
the flag is `True` and an email is sent to them as well as any other
active organization owners, with a slight variation in the email text
for those two cases.

Adds specific tests for when `email_owners` is passed as `True`. All
existing tests for other functionality of `do_deactivate_user` pass
the flag as `False`.

Adds `localize` from django.util.formats as a jinja env filter so
that the dates in these emails are internationlized for the owner's
default language setting in the "realm_deactivated" email templates.

Fixes #24685.
2024-06-26 16:48:18 -07:00
..
__init__.py
billing_page.py stripe: Redirect to /plans if plans downgraded on /billing page visit. 2024-03-19 09:25:07 -07:00
event_status.py stripe: Fix $0 invoices being generated on upgrade. 2024-02-12 15:15:56 -08:00
installation_activity.py coporate: Convert to typed_endpoint. 2024-06-25 11:07:03 -07:00
portico.py models: Replace realm.uri with realm.url. 2024-05-08 11:12:43 -07:00
realm_activity.py python: Mark regexes as raw strings. 2024-04-26 12:30:31 -07:00
remote_activity.py remote-activity: Fix broken support links. 2024-02-16 14:49:34 -08:00
remote_billing_page.py portico_error_pages: Collect zerver error pages into a folder. 2024-06-05 09:06:44 -07:00
session.py corporate: Remove '#nocoverage' comments. 2023-12-19 10:59:38 -08:00
sponsorship.py templates: Move billing templates to /templates/corporate/billing. 2024-01-30 10:06:48 -08:00
support.py realm-deactivation: Send email to owners as part of deactivation. 2024-06-26 16:48:18 -07:00
upgrade.py upgrade: Allow payment by invoice. 2024-03-14 16:43:52 -07:00
user_activity.py remote-support: Add server data for last audit log update time. 2024-02-06 18:09:45 -08:00
webhook.py stripe: Fix $0 invoices being generated on upgrade. 2024-02-12 15:15:56 -08:00