Skip to content

Commit

Permalink
billing: Rename self-managed to free.
Browse files Browse the repository at this point in the history
  • Loading branch information
amanagr authored and timabbott committed Feb 13, 2024
1 parent bdc89cd commit 7b33d66
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion corporate/lib/stripe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2882,7 +2882,7 @@ def get_sponsorship_request_context(self) -> Optional[Dict[str, Any]]:

plan_name = "Zulip Cloud Free"
if is_remotely_hosted:
plan_name = "Self-managed"
plan_name = "Free"

context: Dict[str, Any] = {
"billing_base_url": self.billing_base_url,
Expand Down
2 changes: 1 addition & 1 deletion corporate/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ def name_from_tier(tier: int) -> str:
CustomerPlan.TIER_CLOUD_STANDARD: "Zulip Cloud Standard",
CustomerPlan.TIER_CLOUD_PLUS: "Zulip Cloud Plus",
CustomerPlan.TIER_CLOUD_ENTERPRISE: "Zulip Enterprise",
CustomerPlan.TIER_SELF_HOSTED_LEGACY: "Self-managed (legacy plan)",
CustomerPlan.TIER_SELF_HOSTED_LEGACY: "Free (legacy plan)",
CustomerPlan.TIER_SELF_HOSTED_BASIC: "Zulip Basic",
CustomerPlan.TIER_SELF_HOSTED_BUSINESS: "Zulip Business",
CustomerPlan.TIER_SELF_HOSTED_COMMUNITY: "Community",
Expand Down
6 changes: 3 additions & 3 deletions corporate/tests/test_support_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def assert_server_details_in_response(
"<b>Date created</b>:",
"<b>UUID</b>:",
"<b>Zulip version</b>:",
"<b>Plan type</b>: Self-managed<br />",
"<b>Plan type</b>: Free<br />",
"<b>Non-guest user count</b>: 0<br />",
"<b>Guest user count</b>: 0<br />",
],
Expand Down Expand Up @@ -242,7 +242,7 @@ def check_legacy_plan_with_upgrade(result: "TestHttpResponse") -> None:
self.assert_in_success_response(
[
"<h4>📅 Current plan information:</h4>",
"<b>Plan name</b>: Self-managed (legacy plan)<br />",
"<b>Plan name</b>: Free (legacy plan)<br />",
"<b>Status</b>: New plan scheduled<br />",
"<b>End date</b>: 01 February 2050<br />",
"<h4>⏱️ Next plan information:</h4>",
Expand All @@ -261,7 +261,7 @@ def check_legacy_plan_without_upgrade(result: "TestHttpResponse") -> None:
self.assert_in_success_response(
[
"<h4>📅 Current plan information:</h4>",
"<b>Plan name</b>: Self-managed (legacy plan)<br />",
"<b>Plan name</b>: Free (legacy plan)<br />",
"<b>Status</b>: Active<br />",
"<b>End date</b>: 01 February 2050<br />",
],
Expand Down
2 changes: 1 addition & 1 deletion corporate/views/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def get_plan_type_string(plan_type: int) -> str:
Realm.PLAN_TYPE_STANDARD: "Standard",
Realm.PLAN_TYPE_STANDARD_FREE: "Standard free",
Realm.PLAN_TYPE_PLUS: "Plus",
RemoteZulipServer.PLAN_TYPE_SELF_MANAGED: "Self-managed",
RemoteZulipServer.PLAN_TYPE_SELF_MANAGED: "Free",
RemoteZulipServer.PLAN_TYPE_SELF_MANAGED_LEGACY: CustomerPlan.name_from_tier(
CustomerPlan.TIER_SELF_HOSTED_LEGACY
),
Expand Down

0 comments on commit 7b33d66

Please sign in to comment.