Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings: Set default free trial days for basic plan to 30 days.

Aman Agrawalf96d58cf0266
diff --git a/zproject/default_settings.py b/zproject/default_settings.py
index 91d0ef9c59a..97fc06cdcd6 100644
--- a/zproject/default_settings.py
+++ b/zproject/default_settings.py
@@ -548,7 +548,7 @@ ARCHIVED_DATA_VACUUMING_DELAY_DAYS = 30
BILLING_ENABLED = False
CLOUD_FREE_TRIAL_DAYS: Optional[int] = int(get_secret("cloud_free_trial_days", "0"))
-SELF_HOSTING_FREE_TRIAL_DAYS: Optional[int] = int(get_secret("self_hosting_free_trial_days", "0"))
+SELF_HOSTING_FREE_TRIAL_DAYS: Optional[int] = int(get_secret("self_hosting_free_trial_days", "30"))
# Custom message (supports HTML) to be shown in the navbar of landing pages. Used mainly for
# making announcements.
diff --git a/zproject/test_extra_settings.py b/zproject/test_extra_settings.py
index 950308b72a3..31fb7838030 100644
--- a/zproject/test_extra_settings.py
+++ b/zproject/test_extra_settings.py
@@ -259,6 +259,7 @@ RATE_LIMITING_RULES: Dict[str, List[Tuple[int, int]]] = {
}
CLOUD_FREE_TRIAL_DAYS: Optional[int] = None
+SELF_HOSTING_FREE_TRIAL_DAYS: Optional[int] = None
SCIM_CONFIG: Dict[str, SCIMConfigDict] = {
"zulip": {