mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-24 09:14:46 +01:00
fix: Removing some self-hosted upgrade paths and references (#16711)
* Remove self-hosted references * Update messages in tests too * Update query snapshots * Update UI snapshots for `chromium` (2) --------- Co-authored-by: Michael Matloka <michal@matloka.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
8deeec47a3
commit
d1899c6005
@ -17,7 +17,7 @@ labels: performance
|
||||
## Environment
|
||||
|
||||
- [ ] PostHog Cloud
|
||||
- [ ] self-hosted PostHog, version/commit: _please provide_
|
||||
- [ ] PostHog self-hosted with Kubernetes (deprecated, see ["Sunsetting Kubernetes support"](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]
|
||||
|
||||
## Additional context
|
||||
|
||||
|
@ -1,5 +1,3 @@
|
||||
# Changelog
|
||||
|
||||
Updates to the PostHog project can be found at [https://posthog.com/blog/categories/product-updates](https://posthog.com/blog/categories/product-updates). Each release of PostHog self-hosted is accompanied by an "Array" blog post which details all relevant changes and any deprecation or warning notices.
|
||||
|
||||
Find the latest Array blog post in the [Product updates](https://posthog.com/blog/categories/product-updates) section of our blog.
|
||||
Updates to the PostHog project can be found on [https://posthog.com/changelog](our changelog).
|
@ -51,6 +51,8 @@ You can deploy a hobby instance in one line on Linux with Docker (recommended 4G
|
||||
|
||||
Open source deployments should scale to approximately 100k events per month, after which we recommend migrating to a PostHog Cloud instance. See our [docs for more info and limitations](https://posthog.com/docs/self-host/open-source/deployment).
|
||||
|
||||
PostHog has [sunset support for self-hosted K8s deployments](https://posthog.com/blog/sunsetting-helm-support-posthog).
|
||||
|
||||
## Features
|
||||
![ui-demo](https://user-images.githubusercontent.com/85295485/144591577-fe97e4a5-5631-4a60-a684-45caf421507f.gif)
|
||||
<p align="center">Want to find out more? <a href="https://posthog.com/book-a-demo">Request a demo!</a>
|
||||
|
@ -1,9 +1,6 @@
|
||||
#
|
||||
# docker-compose base file used for local development, hobby deploys, and other compose use cases.
|
||||
#
|
||||
# If you are looking at self-hosted deployment options check
|
||||
# https://posthog.com/docs/self-host
|
||||
#
|
||||
|
||||
services:
|
||||
db:
|
||||
|
@ -4,8 +4,8 @@
|
||||
# For more info, see:
|
||||
# https://posthog.com/handbook/engineering/developing-locally
|
||||
#
|
||||
# If you are looking at self-hosted deployment options check
|
||||
# https://posthog.com/docs/self-host
|
||||
# PostHog has sunset support for self-hosted K8s deployments.
|
||||
# See: https://posthog.com/blog/sunsetting-helm-support-posthog
|
||||
#
|
||||
|
||||
services:
|
||||
|
@ -3,8 +3,8 @@
|
||||
# For more info, see:
|
||||
# https://posthog.com/handbook/engineering/developing-locally
|
||||
#
|
||||
# If you are looking at self-hosted deployment options check
|
||||
# https://posthog.com/docs/self-host
|
||||
# PostHog has sunset support for self-hosted K8s deployments.
|
||||
# See: https://posthog.com/blog/sunsetting-helm-support-posthog
|
||||
#
|
||||
|
||||
services:
|
||||
|
@ -4,6 +4,9 @@
|
||||
# Please take a look at https://posthog.com/docs/self-host/deploy/hobby
|
||||
# for more info.
|
||||
#
|
||||
# PostHog has sunset support for self-hosted K8s deployments.
|
||||
# See: https://posthog.com/blog/sunsetting-helm-support-posthog
|
||||
#
|
||||
|
||||
services:
|
||||
db:
|
||||
|
@ -19,7 +19,7 @@ class LicensedTestMixin:
|
||||
|
||||
def license_required_response(
|
||||
self,
|
||||
message: str = "This feature is part of the premium PostHog offering. To use it, get a self-hosted license: https://license.posthog.com",
|
||||
message: str = "This feature is part of the premium PostHog offering. Self-hosted licenses are no longer available for purchase. Please contact sales@posthog.com to discuss options.",
|
||||
) -> Dict[str, Optional[str]]:
|
||||
return {"type": "server_error", "code": "payment_required", "detail": message, "attr": None}
|
||||
|
||||
|
@ -211,7 +211,7 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest):
|
||||
f"/api/projects/@current/event_definitions/{str(event.id)}", data={"description": "test"}
|
||||
)
|
||||
self.assertEqual(response.status_code, status.HTTP_402_PAYMENT_REQUIRED)
|
||||
self.assertIn("This feature is part of the premium PostHog offering.", response.json()["detail"])
|
||||
self.assertIn("Self-hosted licenses are no longer available for purchase.", response.json()["detail"])
|
||||
|
||||
def test_with_expired_license(self):
|
||||
super(LicenseManager, cast(LicenseManager, License.objects)).create(
|
||||
@ -222,7 +222,7 @@ class TestEventDefinitionEnterpriseAPI(APIBaseTest):
|
||||
f"/api/projects/@current/event_definitions/{str(event.id)}", data={"description": "test"}
|
||||
)
|
||||
self.assertEqual(response.status_code, status.HTTP_402_PAYMENT_REQUIRED)
|
||||
self.assertIn("This feature is part of the premium PostHog offering.", response.json()["detail"])
|
||||
self.assertIn("Self-hosted licenses are no longer available for purchase.", response.json()["detail"])
|
||||
|
||||
def test_can_get_event_verification_data(self):
|
||||
super(LicenseManager, cast(LicenseManager, License.objects)).create(
|
||||
|
@ -213,7 +213,7 @@ class TestPropertyDefinitionEnterpriseAPI(APIBaseTest):
|
||||
f"/api/projects/@current/property_definitions/{str(property.id)}/", data={"description": "test"}
|
||||
)
|
||||
self.assertEqual(response.status_code, status.HTTP_402_PAYMENT_REQUIRED)
|
||||
self.assertIn("This feature is part of the premium PostHog offering.", response.json()["detail"])
|
||||
self.assertIn("Self-hosted licenses are no longer available for purchase.", response.json()["detail"])
|
||||
|
||||
def test_update_property_tags_without_license(self):
|
||||
property = EnterprisePropertyDefinition.objects.create(team=self.team, name="enterprise property")
|
||||
@ -221,7 +221,7 @@ class TestPropertyDefinitionEnterpriseAPI(APIBaseTest):
|
||||
f"/api/projects/@current/property_definitions/{str(property.id)}/", data={"tags": ["test"]}
|
||||
)
|
||||
self.assertEqual(response.status_code, status.HTTP_402_PAYMENT_REQUIRED)
|
||||
self.assertIn("This feature is part of the premium PostHog offering.", response.json()["detail"])
|
||||
self.assertIn("Self-hosted licenses are no longer available for purchase.", response.json()["detail"])
|
||||
|
||||
def test_can_update_property_type_without_license(self):
|
||||
property = EnterprisePropertyDefinition.objects.create(team=self.team, name="enterprise property")
|
||||
@ -239,7 +239,7 @@ class TestPropertyDefinitionEnterpriseAPI(APIBaseTest):
|
||||
data={"property_type": "DateTime", "tags": ["test"]},
|
||||
)
|
||||
self.assertEqual(response.status_code, status.HTTP_402_PAYMENT_REQUIRED)
|
||||
self.assertIn("This feature is part of the premium PostHog offering.", response.json()["detail"])
|
||||
self.assertIn("Self-hosted licenses are no longer available for purchase.", response.json()["detail"])
|
||||
|
||||
def test_with_expired_license(self):
|
||||
super(LicenseManager, cast(LicenseManager, License.objects)).create(
|
||||
@ -250,7 +250,7 @@ class TestPropertyDefinitionEnterpriseAPI(APIBaseTest):
|
||||
f"/api/projects/@current/property_definitions/{str(property.id)}/", data={"description": "test"}
|
||||
)
|
||||
self.assertEqual(response.status_code, status.HTTP_402_PAYMENT_REQUIRED)
|
||||
self.assertIn("This feature is part of the premium PostHog offering.", response.json()["detail"])
|
||||
self.assertIn("Self-hosted licenses are no longer available for purchase.", response.json()["detail"])
|
||||
|
||||
def test_filter_property_definitions(self):
|
||||
super(LicenseManager, cast(LicenseManager, License.objects)).create(
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
@ -78,7 +78,7 @@ export function PreflightCheck(): JSX.Element {
|
||||
</a>{' '}
|
||||
or{' '}
|
||||
<a href="https://posthog.com/support" target="_blank">
|
||||
visit support
|
||||
visit community support
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
@ -133,7 +133,7 @@ export function PreflightCheck(): JSX.Element {
|
||||
</a>{' '}
|
||||
or our{' '}
|
||||
<a href="https://posthog.com/docs/runbook" target="_blank">
|
||||
self host runbook
|
||||
self-host runbook
|
||||
</a>
|
||||
.
|
||||
</p>
|
||||
|
@ -27,7 +27,7 @@ class EnterpriseFeatureException(APIException):
|
||||
+ (
|
||||
"To use it, subscribe to PostHog Cloud with a generous free tier: https://app.posthog.com/organization/billing"
|
||||
if is_cloud()
|
||||
else "To use it, get a self-hosted license: https://license.posthog.com"
|
||||
else "Self-hosted licenses are no longer available for purchase. Please contact sales@posthog.com to discuss options."
|
||||
)
|
||||
)
|
||||
)
|
||||
|
@ -1,6 +1,9 @@
|
||||
#
|
||||
# This Dockerfile is used for self-hosted production builds.
|
||||
#
|
||||
# PostHog has sunset support for self-hosted K8s deployments.
|
||||
# See: https://posthog.com/blog/sunsetting-helm-support-posthog
|
||||
#
|
||||
# Note: for PostHog Cloud remember to update ‘Dockerfile.cloud’ as appropriate.
|
||||
#
|
||||
# The stages are used to:
|
||||
|
Loading…
Reference in New Issue
Block a user