-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Tweak email wording for grace periods (#4482)
- Loading branch information
Showing
6 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,8 +19,8 @@ | |
for overages after our first grace period of 30 days. | ||
{% else %} | ||
Please note that once 100% use has been breached, the serving of feature flags and admin access may | ||
be disabled after a 7-day grace period. Please reach out to [email protected] in order to upgrade | ||
your account. | ||
be disabled{% if grace_period %} after a 7-day grace period{% endif %}. Please reach out to | ||
[email protected] in order to upgrade your account. | ||
{% endif %} | ||
|
||
</td> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ If this is expected, no action is required. If you are expecting to go over, you | |
limits by reaching out to [email protected]. We will automatically charge for overages after our first grace period | ||
of 30 days. | ||
{% else %} | ||
Please note that once 100% use has been breached, the serving of feature flags and admin access may be disabled after a | ||
7-day grace period. Please reach out to [email protected] in order to upgrade your account. | ||
Please note that once 100% use has been breached, the serving of feature flags and admin access may be disabled{% if grace_period %} | ||
after a 7-day grace period{% endif %}. Please reach out to [email protected] in order to upgrade your account. | ||
{% endif %} | ||
|
||
Thank you! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ | |
more information. You can reach out to [email protected] if you’d like to take advantage of better | ||
contracted rates. | ||
{% else %} | ||
Please note that the serving of feature flags and admin access will be disabled after a 7 day grace | ||
period until the next subscription period. If you’d like to continue service you can upgrade your | ||
Please note that the serving of feature flags and admin access will be disabled{% if grace_period %} after a 7 day grace | ||
period{% endif %} until the next subscription period. If you’d like to continue service you can upgrade your | ||
organisation’s account (see pricing page). | ||
{% endif %} | ||
</td> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,9 +7,9 @@ has reached {{ matched_threshold }}% of your API usage within the current subscr | |
We will charge for overages after our first grace period of 30 days. Please see the pricing page for more information. | ||
You can reach out to [email protected] if you’d like to take advantage of better contracted rates. | ||
{% else %} | ||
Please note that the serving of feature flags and admin access will be disabled after a 7 day grace period until the | ||
next subscription period. If you’d like to continue service you can upgrade your organisation’s account (see pricing | ||
page). | ||
Please note that the serving of feature flags and admin access will be disabled{% if grace_period %} after a 7 day | ||
grace period{% endif %} until the next subscription period. If you’d like to continue service you can upgrade your | ||
organisation’s account (see pricing page). | ||
{% endif %} | ||
|
||
Thank you! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -664,7 +664,11 @@ def test_handle_api_usage_notifications_for_free_accounts( | |
assert email.subject == "Flagsmith API use has reached 100%" | ||
assert email.body == render_to_string( | ||
"organisations/api_usage_notification_limit.txt", | ||
context={"organisation": organisation, "matched_threshold": 100}, | ||
context={ | ||
"organisation": organisation, | ||
"matched_threshold": 100, | ||
"grace_period": True, | ||
}, | ||
) | ||
|
||
assert len(email.alternatives) == 1 | ||
|
@@ -673,7 +677,11 @@ def test_handle_api_usage_notifications_for_free_accounts( | |
|
||
assert email.alternatives[0][0] == render_to_string( | ||
"organisations/api_usage_notification_limit.html", | ||
context={"organisation": organisation, "matched_threshold": 100}, | ||
context={ | ||
"organisation": organisation, | ||
"matched_threshold": 100, | ||
"grace_period": True, | ||
}, | ||
) | ||
|
||
assert email.from_email == "[email protected]" | ||
|