Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(data-warehouse): drop the unreachable legacy frequency mode from the schema (#101266)

Jovan Sakovic20ada85122f4
diff --git a/products/data_warehouse/backend/presentation/views/saved_query/sync_cadence.py b/products/data_warehouse/backend/presentation/views/saved_query/sync_cadence.py
index 501562d81577..5defaa4bce28 100644
--- a/products/data_warehouse/backend/presentation/views/saved_query/sync_cadence.py
+++ b/products/data_warehouse/backend/presentation/views/saved_query/sync_cadence.py
@@ -91,13 +91,11 @@ class SyncFrequencyBoundsSerializer(serializers.Serializer):
choices=[
("tiered", "tiered"),
("managed_viewset", "managed_viewset"),
- ("legacy", "legacy"),
("no_node", "no_node"),
],
help_text="What governs this view's cadence. 'tiered' is the only mode where `options` is "
"meaningful and `sync_frequency` is writable per view. 'managed_viewset' means PostHog owns "
- "the view, 'legacy' means the v1 backend, where any cadence is accepted and no bounds apply, "
- "and 'no_node' means the view has no data modeling node to store a cadence on.",
+ "the view, and 'no_node' means the view has no data modeling node to store a cadence on.",
)
options = SyncFrequencyOptionSerializer(
many=True,
diff --git a/products/data_warehouse/frontend/generated/api.schemas.ts b/products/data_warehouse/frontend/generated/api.schemas.ts
index 2537d9a3bcb0..f318b35c22f3 100644
--- a/products/data_warehouse/frontend/generated/api.schemas.ts
+++ b/products/data_warehouse/frontend/generated/api.schemas.ts
@@ -1321,7 +1321,6 @@ export const SavedQuerySyncFrequencyEnumApi = {
/**
* * `tiered` - tiered
* * `managed_viewset` - managed_viewset
- * * `legacy` - legacy
* * `no_node` - no_node
*/
export type FrequencyModeEnumApi = (typeof FrequencyModeEnumApi)[keyof typeof FrequencyModeEnumApi]
@@ -1329,7 +1328,6 @@ export type FrequencyModeEnumApi = (typeof FrequencyModeEnumApi)[keyof typeof Fr
export const FrequencyModeEnumApi = {
Tiered: 'tiered',
ManagedViewset: 'managed_viewset',
- Legacy: 'legacy',
NoNode: 'no_node',
} as const
@@ -1410,11 +1408,10 @@ export interface SyncFrequencyBoundApi {
}
export interface SyncFrequencyBoundsApi {
- /** What governs this view's cadence. 'tiered' is the only mode where `options` is meaningful and `sync_frequency` is writable per view. 'managed_viewset' means PostHog owns the view, 'legacy' means the v1 backend, where any cadence is accepted and no bounds apply, and 'no_node' means the view has no data modeling node to store a cadence on.
+ /** What governs this view's cadence. 'tiered' is the only mode where `options` is meaningful and `sync_frequency` is writable per view. 'managed_viewset' means PostHog owns the view, and 'no_node' means the view has no data modeling node to store a cadence on.
*
* * `tiered` - tiered
* * `managed_viewset` - managed_viewset
- * * `legacy` - legacy
* * `no_node` - no_node */
frequency_mode: FrequencyModeEnumApi
/** Every cadence a picker may show, coarsest-last, each marked allowed or blocked with its cause. Empty outside 'tiered' mode. */
diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.ts
index f24aeaf104fc..522fb9c4db4a 100644
--- a/services/mcp/src/api/generated.ts
+++ b/services/mcp/src/api/generated.ts
@@ -23766,7 +23766,6 @@ export namespace Schemas {
/**
* * `tiered` - tiered
* * `managed_viewset` - managed_viewset
- * * `legacy` - legacy
* * `no_node` - no_node
*/
export type FrequencyModeEnum = typeof FrequencyModeEnum[keyof typeof FrequencyModeEnum];
@@ -23775,7 +23774,6 @@ export namespace Schemas {
export const FrequencyModeEnum = {
Tiered: 'tiered',
ManagedViewset: 'managed_viewset',
- Legacy: 'legacy',
NoNode: 'no_node',
} as const;
@@ -23856,11 +23854,10 @@ export namespace Schemas {
}
export interface SyncFrequencyBounds {
- /** What governs this view's cadence. 'tiered' is the only mode where `options` is meaningful and `sync_frequency` is writable per view. 'managed_viewset' means PostHog owns the view, 'legacy' means the v1 backend, where any cadence is accepted and no bounds apply, and 'no_node' means the view has no data modeling node to store a cadence on.
+ /** What governs this view's cadence. 'tiered' is the only mode where `options` is meaningful and `sync_frequency` is writable per view. 'managed_viewset' means PostHog owns the view, and 'no_node' means the view has no data modeling node to store a cadence on.
*
* * `tiered` - tiered
* * `managed_viewset` - managed_viewset
- * * `legacy` - legacy
* * `no_node` - no_node */
frequency_mode: FrequencyModeEnum;
/** Every cadence a picker may show, coarsest-last, each marked allowed or blocked with its cause. Empty outside 'tiered' mode. */