From c641f07c644dc76245140395d9eba78f8cfb0250 Mon Sep 17 00:00:00 2001
From: jingrow To rectify this issue, please follow the steps mentioned in Help. To rectify this issue, please follow the steps mentioned in Help. To rectify this issue, please follow the steps mentioned in Help. {suggestion} To rectify this issue, please follow the steps mentioned in Help. To rectify this issue, please follow the steps mentioned in Help. NOTE: This will cause downtime for that duration
To rectify this issue, please follow the the steps mentioned in Help.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["no-python-dependency-file-found"] + details["assistance_url"] = PG_URLS["no-python-dependency-file-found"] details["traceback"] = None return True @@ -617,7 +617,7 @@ def update_with_invalid_pyproject_error(To rectify this issue, please follow the steps mentioned in Help.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["invalid-pyproject-file"] + details["assistance_url"] = PG_URLS["invalid-pyproject-file"] return True @@ -644,7 +644,7 @@ def update_with_invalid_app_structure(For further guidance, refer to the Help documentation.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["invalid-project-structure"] + details["assistance_url"] = PG_URLS["invalid-project-structure"] return True @@ -673,7 +673,7 @@ def update_with_invalid_package_json_error(To rectify this issue, please fix the pyproject.json file.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["debugging-app-installs-locally"] + details["assistance_url"] = PG_URLS["debugging-app-installs-locally"] return True @@ -709,7 +709,7 @@ def update_with_app_not_fetchable( """ details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["app-installation-issue"] + details["assistance_url"] = PG_URLS["app-installation-issue"] return True @@ -738,7 +738,7 @@ def update_with_incompatible_node(To rectify this issue, please follow the the steps mentioned in Help.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["incompatible-node-version"] + details["assistance_url"] = PG_URLS["incompatible-node-version"] # Traceback is not pertinent to issue details["traceback"] = None @@ -776,7 +776,7 @@ def update_with_incompatible_python( details["message"] = fmt(message) details["traceback"] = None - details["assistance_url"] = DOC_URLS["incompatible-dependency-version"] + details["assistance_url"] = PG_URLS["incompatible-dependency-version"] return True @@ -817,7 +817,7 @@ def update_with_incompatible_node_prebuild(To rectify this issue, please follow the the steps mentioned in Help.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["incompatible-node-version"] + details["assistance_url"] = PG_URLS["incompatible-node-version"] # Traceback is not pertinent to issue details["traceback"] = None @@ -843,7 +843,7 @@ def update_with_incompatible_python_prebuild(To rectify this issue, please follow the the steps mentioned in Help.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["incompatible-dependency-version"] + details["assistance_url"] = PG_URLS["incompatible-dependency-version"] # Traceback is not pertinent to issue details["traceback"] = None @@ -870,7 +870,7 @@ def update_with_incompatible_app_prebuild(To fix this issue please set {dep_app} to version {expected}.
""" details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["incompatible-app-version"] + details["assistance_url"] = PG_URLS["incompatible-app-version"] # Traceback is not pertinent to issue details["traceback"] = None @@ -922,7 +922,7 @@ def update_with_required_app_not_found_prebuild( """ details["traceback"] = None details["message"] = fmt(message) - details["assistance_url"] = DOC_URLS["required-app-not-found"] + details["assistance_url"] = PG_URLS["required-app-not-found"] return True @@ -954,7 +954,7 @@ def update_with_vite_not_found( details["message"] = fmt(message) details["traceback"] = None - details["assistance_url"] = DOC_URLS["vite-not-found"] + details["assistance_url"] = PG_URLS["vite-not-found"] return True diff --git a/press/press/doctype/site/site.py b/press/press/doctype/site/site.py index 6e302292..324b41b8 100644 --- a/press/press/doctype/site/site.py +++ b/press/press/doctype/site/site.py @@ -122,7 +122,7 @@ DOCTYPE_SERVER_TYPE_MAP = { } ARCHIVE_AFTER_SUSPEND_DAYS = 21 -PRIVATE_BENCH_DOC = "https://docs.frappe.io/cloud/sites/move-site-to-private-bench" +PRIVATE_BENCH_PG = "https://docs.frappe.io/cloud/sites/move-site-to-private-bench" SERVER_SCRIPT_DISABLED_VERSION = ( 15 # version from which server scripts were disabled on public benches. No longer set in site ) @@ -505,7 +505,7 @@ class Site(Document, TagHelpers): # If site is on public bench, don't allow to disable auto updates if self.skip_auto_updates and self.is_group_public: frappe.throw( - f'Auto updates can\'t be disabled for sites on public benches! Please move to a private bench.' + f'Auto updates can\'t be disabled for sites on public benches! Please move to a private bench.' ) def validate_site_plan(self): # noqa: C901 @@ -2156,7 +2156,7 @@ class Site(Document, TagHelpers): and self.is_this_version_or_above(SERVER_SCRIPT_DISABLED_VERSION) ): frappe.throw( - f'You cannot enable server scripts on public benches. Please move to a private bench.' + f'You cannot enable server scripts on public benches. Please move to a private bench.' ) def validate_encryption_key(self, key: str, value: Any):