billing: Rename self-managed to free.

This commit is contained in:
Aman Agrawal 2024-02-13 04:58:20 +00:00 committed by Tim Abbott
parent bdc89cd925
commit 7b33d660eb
4 changed files with 6 additions and 6 deletions

View File

@ -2882,7 +2882,7 @@ class BillingSession(ABC):
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,

View File

@ -416,7 +416,7 @@ class CustomerPlan(AbstractCustomerPlan):
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",

View File

@ -170,7 +170,7 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):
"<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 />",
],
@ -242,7 +242,7 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):
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>",
@ -261,7 +261,7 @@ class TestRemoteServerSupportEndpoint(ZulipTestCase):
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 />",
],

View File

@ -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
),