: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(data-modeling): remove three fully rolled-out flag gates (#96117)
Jovan Sakovicf4cdfd37cc87
diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.tsindex cd7dbf426e45..3dc69f1f51a6 100644--- a/frontend/src/lib/api.ts+++ b/frontend/src/lib/api.ts@@ -5797,18 +5797,6 @@ const api = {async list(): Promise<PaginatedResponse<DataModelingDAG>> {return await new ApiRequest().dataModelingDags().get()},- async create(data: { name: string; description?: string; sync_frequency?: string }): Promise<DataModelingDAG> {- return await new ApiRequest().dataModelingDags().create({ data })- },- async update(- dagId: DataModelingDAG['id'],- data: Partial<Pick<DataModelingDAG, 'name' | 'description' | 'sync_frequency'>>- ): Promise<DataModelingDAG> {- return await new ApiRequest().dataModelingDag(dagId).update({ data })- },- async delete(dagId: DataModelingDAG['id']): Promise<void> {- await new ApiRequest().dataModelingDag(dagId).delete()- },},dataModelingNodes: {diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 13ae19d1f844..909044e17e67 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -214,7 +214,6 @@ export const FEATURE_FLAGS = {HEATMAPS_EVENT_FILTER: 'heatmaps-event-filter', // owner: #team-web-analyticsHEATMAPS_SCREENSHOT_PREWARM: 'heatmaps-screenshot-prewarm', // owner: #team-web-analytics, pre-renders the screenshot while entering a URL in the wizardIMPROVED_COOKIELESS_MODE: 'improved-cookieless-mode', // owner: #team-web-analytics- LINEAGE_DEPENDENCY_VIEW: 'lineage-dependency-view', // owner: #team-data-modelingMEMBERS_CAN_USE_PERSONAL_API_KEYS: 'members-can-use-personal-api-keys', // owner: @yasen-posthog #team-platform-featuresMETRIC_INSIGHT: 'metric-insight', // owner: @sampennington #team-product-analyticsPERSONLESS_EVENTS_NOT_SUPPORTED: 'personless-events-not-supported', // owner: #team-analytics-platformdiff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 5a6325a63767..bef1c9c12132 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -42,7 +42,6 @@ import type { SourceSceneTab } from '../../products/data_warehouse/frontend/scenimport { configurationRedirect, resolveSettingSlug } from '../../products/error_tracking/frontend/settingsRedirects'import type { InboxTabKey } from '../../products/signals/frontend/inbox/types'import type { WorkflowsSceneTab } from '../../products/workflows/frontend/WorkflowsScene'-import type { ModelsSceneTab } from './scenes/models/modelsSceneLogic'import type { NodeDetailSceneTab } from './scenes/models/nodeDetailSceneLogic'import {ActionType,@@ -123,7 +122,6 @@ export const productRoutes: Record<string, [string, string]> = {'/data-catalog/metrics/:name': ['DataCatalogMetric', 'dataCatalogMetric'],'/data-ops': ['DataOps', 'dataOps'],'/models': ['Models', 'models'],- '/models/dags': ['Models', 'models'],'/models/:id': ['NodeDetail', 'nodeDetail'],'/models/:id/:tab': ['NodeDetail', 'nodeDetail'],'/data-management/sources': ['Sources', 'sources'],@@ -1144,18 +1142,15 @@ export const productUrls = {sharedDashboard: (shareToken: string): string => `/shared_dashboard/${shareToken}`,dataCatalog: (tab?: string): string => `/data-catalog${tab ? `?tab=${tab}` : ''}`,dataCatalogMetric: (name: string): string => `/data-catalog/metrics/${name}`,- dataOps: (tab?: string, dagId?: string): string => {+ dataOps: (tab?: string): string => {const params = new URLSearchParams()if (tab) {params.set('tab', tab)}- if (dagId) {- params.set('dag', dagId)- }const query = params.toString()return query ? `/data-ops?${query}` : '/data-ops'},- models: (tab?: ModelsSceneTab): string => `/models${tab ? `/${tab}` : ''}`,+ models: (): string => '/models',nodeDetail: (id: string, tab?: NodeDetailSceneTab): string => `/models/${id}${tab ? `/${tab}` : ''}`,sources: (): string => '/data-management/sources',dataWarehouseSource: (id: string, tab?: SourceSceneTab): string =>diff --git a/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/QueryInfo.tsx b/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/QueryInfo.tsxindex 6f41e7a90bb1..eeccd66f853a 100644--- a/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/QueryInfo.tsx+++ b/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/QueryInfo.tsx@@ -1,7 +1,7 @@-import { useActions, useValues } from 'kea'+import { useActions, useMountedLogic, useValues } from 'kea'import { IconTarget } from '@posthog/icons'-import { LemonTable, Link, Spinner, lemonToast } from '@posthog/lemon-ui'+import { LemonBanner, LemonTable, Link, Spinner, lemonToast } from '@posthog/lemon-ui'import api from 'lib/api'import { FEATURE_FLAGS } from 'lib/constants'@@ -30,15 +30,21 @@ interface QueryInfoProps {}export function QueryInfo({ tabId, view }: QueryInfoProps): JSX.Element {- const { editingView, upstream, upstreamViewMode } = useValues(sqlEditorLogic)+ const {+ editingView,+ upstream: loadedUpstream,+ upstreamLoading,+ upstreamLoadFailed,+ upstreamViewMode,+ } = useValues(sqlEditorLogic)const targetView = view ?? editingView- const infoLogic = infoTabLogic({ tabId, viewId: targetView?.id })- const { sourceTableItems } = useValues(infoLogic)- const { saveAsView, setUpstreamViewMode, editView } = useActions(sqlEditorLogic)+ // Mounting it loads the lineage for the view being edited.+ useMountedLogic(infoTabLogic({ tabId, viewId: targetView?.id }))+ const { saveAsView, setUpstreamViewMode, editView, loadUpstream } = useActions(sqlEditorLogic)+ // The loaded lineage is shared across views, so only use it when it was loaded for this one.+ const upstream = loadedUpstream && targetView && loadedUpstream.modelId === targetView.id ? loadedUpstream : nullconst { featureFlags } = useValues(featureFlagLogic)- const isLineageDependencyViewEnabled = featureFlags[FEATURE_FLAGS.LINEAGE_DEPENDENCY_VIEW]-const currentNodeId = upstream?.nodes.find((n) => n.saved_query_id && n.saved_query_id === targetView?.id)?.idconst openInEditor = async (node: DataModelingNode): Promise<void> => {if (!node.saved_query_id) {@@ -102,78 +108,16 @@ export function QueryInfo({ tabId, view }: QueryInfoProps): JSX.Element {</LemonButton></div>)}- {!isLineageDependencyViewEnabled && (- <>- <div>- <h3>Dependencies</h3>- <p className="text-xs">Dependencies are tables that this query uses.</p>- </div>- <LemonTable- size="small"- columns={[- {- key: 'Name',- title: 'Name',- render: (_, { name }) => name,- },- {- key: 'Type',- title: 'Type',- render: (_, { type }) => type,- },- {- key: 'Status',- title: 'Status',- render: (_, { type, status, last_run_at }) => {- if (type === 'source') {- return (- <Tooltip title="This is a source table, so it doesn't have a status">- <span className="text-secondary">N/A</span>- </Tooltip>- )- }- if (!last_run_at && !status) {- return (- <Tooltip title="This is a view, so it's always available with the latest data">- <span className="text-secondary">Available</span>- </Tooltip>- )- }- return status- },- },- {- key: 'Last run at',- title: 'Last run at',- render: (_, { type, last_run_at, status }) => {- if (type === 'source') {- return (- <Tooltip title="This is a source table, so it is never run">- <span className="text-secondary">N/A</span>- </Tooltip>- )- }- if (!last_run_at) {- return status ? (- <Tooltip title="This materialized view hasn't completed a run yet">- <span className="text-secondary">Not yet run</span>- </Tooltip>- ) : (- <Tooltip title="This is a view, so it is never run">- <span className="text-secondary">N/A</span>- </Tooltip>- )- }- return humanFriendlyDetailedTime(last_run_at)- },- },- ]}- dataSource={sourceTableItems}- />- </>+ {targetView && upstreamLoading && <Spinner />}+ {targetView && upstreamLoadFailed && !upstreamLoading && (+ <LemonBanner+ type="warning"+ action={{ children: 'Retry', onClick: () => loadUpstream(targetView.id) }}+ >+ Couldn't load this view's lineage.+ </LemonBanner>)}-- {upstream && targetView && upstream.nodes.length > 0 && isLineageDependencyViewEnabled && (+ {upstream && targetView && upstream.nodes.length > 0 && (<><div><div className="flex items-center justify-between">diff --git a/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/infoTabLogic.ts b/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/infoTabLogic.tsindex 34424f7f1e6c..104c932111e9 100644--- a/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/infoTabLogic.ts+++ b/frontend/src/scenes/data-warehouse/editor/output-pane-tabs/infoTabLogic.ts@@ -1,7 +1,6 @@-import { MakeLogicType, afterMount, connect, kea, key, path, props, selectors } from 'kea'+import { MakeLogicType, afterMount, connect, kea, key, path, props } from 'kea'import { databaseTableListLogic } from 'scenes/data-management/database/databaseTableListLogic'-import { dataWarehouseViewsLogic } from 'scenes/data-warehouse/saved_queries/dataWarehouseViewsLogic'import { materializationJobsLogic } from 'scenes/data-warehouse/saved_queries/materializationJobsLogic'import type {@@ -10,17 +9,8 @@ import type {DatabaseSchemaViewTable,HogQLMetadataResponse,} from '../../../../queries/schema/schema-general'-import type { DataWarehouseSavedQuery } from '../../../../types'import { sqlEditorLogic } from '../sqlEditorLogic'-export interface InfoTableRow {- name: string- type: 'source' | 'table'- view_id?: string- status?: string- last_run_at?: string | null-}-export interface InfoTabLogicProps {tabId: stringviewId?: string@@ -28,26 +18,9 @@ export interface InfoTabLogicProps {// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface infoTabLogicValues {- dataWarehouseSavedQueryMap: Record<string, DataWarehouseSavedQuery> // dataWarehouseViewsLogicdataWarehouseTablesMap: Record<string, DatabaseSchemaDataWarehouseTable | DatabaseSchemaViewTable> // databaseTableListLogicposthogTablesMap: Record<string, DatabaseSchemaTable> // databaseTableListLogicmetadata: HogQLMetadataResponse | null // sqlEditorLogic- sourceTableItems: (- | {- last_run_at: undefined- name: string- status: undefined- type: string- view_id?: undefined- }- | {- last_run_at: string | null- name: string- status: string | undefined- type: string- view_id: string- }- )[]}// Generated by kea-typegen. Update if you're an agent, ignore if you're human.@@ -60,27 +33,6 @@ export interface infoTabLogicActions {// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface infoTabLogicMeta {key: string- __keaTypeGenInternalSelectorTypes: {- sourceTableItems: (- metadata: HogQLMetadataResponse | null,- dataWarehouseSavedQueryMap: Record<string, DataWarehouseSavedQuery>- ) => (- | {- last_run_at: undefined- name: string- status: undefined- type: string- view_id?: undefined- }- | {- last_run_at: string | null- name: string- status: string | undefined- type: string- view_id: string- }- )[]- }}export type infoTabLogicType = MakeLogicType<@@ -100,46 +52,10 @@ export const infoTabLogic = kea<infoTabLogicType>([['metadata'],databaseTableListLogic,['posthogTablesMap', 'dataWarehouseTablesMap'],- dataWarehouseViewsLogic,- ['dataWarehouseSavedQueryMap'],],actions: [sqlEditorLogic({ tabId: props.tabId }), ['loadUpstream']],logic: props.viewId ? [materializationJobsLogic({ viewId: props.viewId })] : [],})),- selectors({- sourceTableItems: [- (s) => [s.metadata, s.dataWarehouseSavedQueryMap],- (- metadata: null | import('../../../../queries/schema').HogQLMetadataResponse,- dataWarehouseSavedQueryMap: Record<string, import('../../../../types').DataWarehouseSavedQuery>- ) => {- if (!metadata) {- return []- }- return (- metadata.table_names?.map((table_name) => {- const view = dataWarehouseSavedQueryMap[table_name]- if (view) {- return {- name: table_name,- type: 'table',- view_id: view.id,- status: view.status,- last_run_at: view.last_run_at ?? null,- }- }-- return {- name: table_name,- type: 'source',- status: undefined,- last_run_at: undefined,- }- }) || []- )- },- ],- }),afterMount(({ actions, props }) => {if (props.viewId) {actions.loadUpstream(props.viewId)diff --git a/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.test.ts b/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.test.tsindex 3d4801fb9b58..e65d02447ee4 100644--- a/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.test.ts+++ b/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.test.ts@@ -3038,4 +3038,34 @@ describe('sqlEditorLogic', () => {await expectLogic(logic).toDispatchActions([logic.actionCreators.loadDatabase({ force: true })])})})++ describe('upstream lineage', () => {+ it('tags the graph with the view it was loaded for and drops it while the next load runs', async () => {+ logic = sqlEditorLogic({ tabId: TAB_ID, monaco: createMockMonaco(), editor: createMockEditor() })+ logic.mount()++ await expectLogic(logic, () => logic.actions.loadUpstream('view-a')).toDispatchActions([+ 'loadUpstreamSuccess',+ ])+ expect(logic.values.upstream?.modelId).toBe('view-a')++ logic.actions.loadUpstream('view-b')+ expect(logic.values.upstream).toBeNull()+ await expectLogic(logic).toDispatchActions(['loadUpstreamSuccess'])+ expect(logic.values.upstream?.modelId).toBe('view-b')+ expect(logic.values.upstreamLoadFailed).toBe(false)+ })++ it('clears the graph and flags the failure when the lineage request fails', async () => {+ useMocks({ get: { '/api/environments/:team_id/data_modeling_nodes/lineage/': () => [500, {}] } })+ logic = sqlEditorLogic({ tabId: TAB_ID, monaco: createMockMonaco(), editor: createMockEditor() })+ logic.mount()++ await expectLogic(logic, () => logic.actions.loadUpstream('view-a')).toDispatchActions([+ 'loadUpstreamFailure',+ ])+ expect(logic.values.upstream).toBeNull()+ expect(logic.values.upstreamLoadFailed).toBe(true)+ })+ })})diff --git a/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.tsx b/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.tsxindex 287e87a47d5f..4d2d6007ddbc 100644--- a/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.tsx+++ b/frontend/src/scenes/data-warehouse/editor/sqlEditorLogic.tsx@@ -610,8 +610,10 @@ export interface sqlEditorLogicValues {suggestionPayload: SuggestionPayload | nullupstream: {edges: DataModelingEdge[]+ modelId: stringnodes: DataModelingNode[]} | null+ upstreamLoadFailed: booleanupstreamLoading: booleanupstreamViewMode: 'graph' | 'table'viewLoading: boolean@@ -889,6 +891,7 @@ export interface sqlEditorLogicActions {loadUpstreamSuccess: (upstream: {edges: DataModelingEdge[]+ modelId: stringnodes: DataModelingNode[]},payload?: {@@ -897,6 +900,7 @@ export interface sqlEditorLogicActions {) => {upstream: {edges: DataModelingEdge[]+ modelId: stringnodes: DataModelingNode[]}payload?: {@@ -1536,15 +1540,28 @@ export const sqlEditorLogic = kea<sqlEditorLogicType>([}),loaders(() => ({upstream: [- null as { nodes: DataModelingNode[]; edges: DataModelingEdge[] } | null,+ null as { modelId: string; nodes: DataModelingNode[]; edges: DataModelingEdge[] } | null,{loadUpstream: async (payload: { modelId: string }) => {- return await api.dataModelingNodes.lineage({ savedQueryId: payload.modelId })+ const lineage = await api.dataModelingNodes.lineage({ savedQueryId: payload.modelId })+ return { modelId: payload.modelId, ...lineage }},},],})),reducers(({ props }) => ({+ upstream: {+ // The value is shared across views, so a new load must not leave the previous graph on screen.+ loadUpstream: () => null,+ },+ upstreamLoadFailed: [+ false,+ {+ loadUpstream: () => false,+ loadUpstreamSuccess: () => false,+ loadUpstreamFailure: () => true,+ },+ ],selectedQueryTablesAndColumns: [{} as Record<string, Record<string, boolean>>,{diff --git a/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.test.ts b/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.test.tsindex 847b24ad2194..93aa6d97d1ab 100644--- a/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.test.ts+++ b/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.test.ts@@ -45,7 +45,7 @@ describe('SyncFrequencySelect', () => {it('explains the range only where a per-view cadence is writable', () => {expect(buildExplanation(bounds())).toContain('Pick between 6 hours and 12 hours.')- expect(buildExplanation(bounds({ frequency_mode: 'dag_schedule' }))).toBeNull()+ expect(buildExplanation(bounds({ frequency_mode: 'managed_viewset' }))).toBeNull()expect(buildExplanation(bounds({ floor: null, ceiling: null }))).toBeNull()})@@ -184,7 +184,6 @@ describe('SyncFrequencySelect', () => {})describe('modeDisabledReason', () => {it.each([- ['dag_schedule', 'This view refreshes on a shared schedule. Its frequency is not set per view.'],['managed_viewset', 'PostHog manages this view, including how often it refreshes.'],['no_node', 'This view is not set up for scheduled refreshes yet. Save it again, then pick a cadence.'],])('locks %s, where the backend refuses the write', (mode, reason) => {diff --git a/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.tsx b/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.tsxindex 4d969c8ccbd8..49238e99d276 100644--- a/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.tsx+++ b/frontend/src/scenes/data-warehouse/saved_queries/SyncFrequencySelect.tsx@@ -50,7 +50,6 @@ const PACE_ICON_CLASS = 'text-xl text-secondary shrink-0'* cadence write, so a live control only buys a 400. The reason carries the way out instead.*/const MODE_DISABLED_REASONS: Record<string, string> = {- dag_schedule: 'This view refreshes on a shared schedule. Its frequency is not set per view.',managed_viewset: 'PostHog manages this view, including how often it refreshes.',no_node: 'This view is not set up for scheduled refreshes yet. Save it again, then pick a cadence.',}diff --git a/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.test.ts b/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.test.tsindex c55988a2155e..e2744a205307 100644--- a/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.test.ts+++ b/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.test.ts@@ -1,9 +1,5 @@-import { router } from 'kea-router'import { expectLogic } from 'kea-test-utils'-import api from 'lib/api'-import { urls } from 'scenes/urls'-import { useMocks } from '~/mocks/jest'import { initKeaTests } from '~/test/init'@@ -43,37 +39,6 @@ describe('dataModelingLogic', () => {logic?.unmount()})- // The Models scene's DagsTab links here with ?dag=<id> to open a specific DAG's graph — a- // regression here would silently send that link to the wrong (or persisted) DAG instead.- it('selects the DAG from a ?dag= URL param and filters node/edge loads by it', async () => {- const nodesSpy = jest.spyOn(api.dataModelingNodes, 'list')- const edgesSpy = jest.spyOn(api.dataModelingEdges, 'list')-- router.actions.push(urls.dataOps('modeling', 'dag-123'))- logic = dataModelingLogic()- logic.mount()-- expect(logic.values.selectedDagId).toBe('dag-123')- await expectLogic(logic).toDispatchActions(['loadDataModelingNodesSuccess', 'loadDataModelingEdgesSuccess'])-- expect(nodesSpy).toHaveBeenCalledWith('dag-123')- expect(edgesSpy).toHaveBeenCalledWith('dag-123')- })-- it('keeps the persisted DAG selection when the URL has no ?dag= param', () => {- router.actions.push(urls.dataOps('modeling', 'dag-123'))- logic = dataModelingLogic()- logic.mount()- expect(logic.values.selectedDagId).toBe('dag-123')- logic.unmount()-- router.actions.push(urls.dataOps('modeling'))- logic = dataModelingLogic()- logic.mount()-- expect(logic.values.selectedDagId).toBe('dag-123')- })-it('lays out only the nodes matched by a lineage search', async () => {logic = dataModelingLogic()logic.mount()diff --git a/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.ts b/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.tsindex 756d743f3f58..86e373cdedf3 100644--- a/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.ts+++ b/frontend/src/scenes/data-warehouse/scene/dataModelingLogic.ts@@ -11,12 +11,10 @@ import {import { deepEqual as equal } from 'fast-equals'import { MakeLogicType, actions, afterMount, beforeUnmount, kea, listeners, path, reducers, selectors } from 'kea'import { loaders } from 'kea-loaders'-import { urlToAction } from 'kea-router'import type { RefObject } from 'react'import api from 'lib/api'import { createFuse } from 'lib/utils/fuseSearch'-import { urls } from 'scenes/urls'import {DataModelingDAG,@@ -1187,13 +1185,6 @@ export const dataModelingLogic = kea<dataModelingLogicType>([actions.loadDataModelingEdges()},})),- urlToAction(({ actions, values }) => ({- [urls.dataOps()]: (_, searchParams) => {- if (typeof searchParams.dag === 'string' && searchParams.dag !== values.selectedDagId) {- actions.setSelectedDagId(searchParams.dag)- }- },- })),afterMount(({ actions }) => {actions.loadDags()actions.loadDataModelingNodes()diff --git a/frontend/src/scenes/models/DagsTab.tsx b/frontend/src/scenes/models/DagsTab.tsxdeleted file mode 100644index 56644f20ecd1..000000000000--- a/frontend/src/scenes/models/DagsTab.tsx+++ /dev/null@@ -1,184 +0,0 @@-import { useActions, useValues } from 'kea'-import { useEffect } from 'react'--import {- LemonButton,- LemonDialog,- LemonInput,- LemonSelect,- LemonTable,- LemonTableColumns,- Tooltip,-} from '@posthog/lemon-ui'--import { FEATURE_FLAGS } from 'lib/constants'-import { More } from 'lib/lemon-ui/LemonButton/More'-import { LemonField } from 'lib/lemon-ui/LemonField'-import { LemonTableLink } from 'lib/lemon-ui/LemonTable/LemonTableLink'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { pluralize } from 'lib/utils/strings'-import { urls } from 'scenes/urls'--import { DataModelingDAG, DataModelingSyncInterval } from '~/types'--import { SYNC_FREQUENCY_OPTIONS, dagsLogic } from './dagsLogic'--const DEFAULT_DAG_NAME = 'Default'--export function DagsTab(): JSX.Element {- const { dags, dagsLoading } = useValues(dagsLogic)- const { loadDags, updateDag, deleteDag } = useActions(dagsLogic)- const { featureFlags } = useValues(featureFlagLogic)- const dataOpsModelingEnabled =- !!featureFlags[FEATURE_FLAGS.DATA_MODELING_TAB] && !!featureFlags[FEATURE_FLAGS.DATA_WAREHOUSE_SCENE]-- useEffect(() => {- loadDags()- }, [loadDags])-- const columns: LemonTableColumns<DataModelingDAG> = [- {- title: 'Name',- key: 'name',- render: (_, dag) =>- dataOpsModelingEnabled ? (- <LemonTableLink- to={urls.dataOps('modeling', dag.id)}- title={dag.name}- description={dag.description || 'View this DAG in data ops'}- />- ) : (- <div className="flex flex-col">- <span className="font-semibold">{dag.name}</span>- {dag.description && <span className="text-muted text-xs">{dag.description}</span>}- </div>- ),- },- {- title: 'Models',- key: 'node_count',- render: (_, dag) => pluralize(dag.node_count, 'model', 'models'),- },- {- title: 'Sync frequency',- key: 'sync_frequency',- render: (_, dag) =>- dag.frequency_managed_by_nodes ? (- <span className="text-muted">Managed per model</span>- ) : (- <LemonSelect<DataModelingSyncInterval>- value={dag.sync_frequency ?? '24hour'}- options={SYNC_FREQUENCY_OPTIONS}- size="small"- onChange={(value) => {- if (value && value !== dag.sync_frequency) {- updateDag({ ...dag, sync_frequency: value })- }- }}- />- ),- },- {- key: 'actions',- width: 0,- render: (_, dag) => {- const isDefault = dag.name === DEFAULT_DAG_NAME- return (- <div className="flex justify-end">- <More- overlay={- <>- <LemonButton- type="tertiary"- size="xsmall"- fullWidth- onClick={() => openRenameDagDialog({ dag, onSubmit: updateDag })}- disabledReason={isDefault ? 'The default DAG cannot be renamed' : undefined}- >- Rename- </LemonButton>- <Tooltip- title={- isDefault- ? 'The default DAG cannot be deleted.'- : 'Deleting a DAG will also remove all of its model assignments.'- }- >- <LemonButton- type="tertiary"- size="xsmall"- fullWidth- status="danger"- disabledReason={isDefault ? 'The default DAG cannot be deleted' : undefined}- onClick={() => {- LemonDialog.open({- title: `Delete ${dag.name}?`,- description:- dag.node_count > 0- ? `This DAG currently has ${pluralize(dag.node_count, 'model', 'models')} assigned to it. Deleting it will remove those assignments.`- : 'This action cannot be undone.',- primaryButton: {- children: 'Delete',- status: 'danger',- onClick: () => deleteDag(dag),- },- secondaryButton: { children: 'Cancel', type: 'tertiary' },- })- }}- >- Delete- </LemonButton>- </Tooltip>- </>- }- />- </div>- )- },- },- ]-- return (- <LemonTable<DataModelingDAG>- dataSource={dags}- loading={dagsLoading}- disableTableWhileLoading={false}- columns={columns}- emptyState="No DAGs yet"- rowKey="id"- rowClassName="[&>td]:py-2"- />- )-}--function openRenameDagDialog({- dag,- onSubmit,-}: {- dag: DataModelingDAG- onSubmit: (dag: DataModelingDAG) => void-}): void {- LemonDialog.openForm({- title: `Rename ${dag.name}`,- initialValues: {- name: dag.name,- description: dag.description ?? '',- },- content: (- <>- <LemonField name="name" label="Name">- <LemonInput placeholder="Enter a DAG name" autoFocus />- </LemonField>- <LemonField name="description" label="Description" className="mt-2">- <LemonInput placeholder="Optional description" />- </LemonField>- </>- ),- errors: {- name: (name) => (name?.trim() ? undefined : 'You must enter a DAG name'),- },- onSubmit: ({ name, description }) => {- onSubmit({ ...dag, name: name.trim(), description: description?.trim() ?? '' })- },- })-}diff --git a/frontend/src/scenes/models/ModelsScene.tsx b/frontend/src/scenes/models/ModelsScene.tsxindex d68f36a4ebcf..f8a0b49f7252 100644--- a/frontend/src/scenes/models/ModelsScene.tsx+++ b/frontend/src/scenes/models/ModelsScene.tsx@@ -1,4 +1,4 @@-import { useActions, useValues } from 'kea'+import { useValues } from 'kea'import { useCallback } from 'react'import { LemonButton } from '@posthog/lemon-ui'@@ -7,7 +7,6 @@ import { AccessControlAction } from 'lib/components/AccessControlAction'import { AccessDenied } from 'lib/components/AccessDenied'import { Shortcut } from 'lib/components/Shortcuts/Shortcut'import { keyBinds } from 'lib/components/Shortcuts/shortcuts'-import { LemonTab, LemonTabs } from 'lib/lemon-ui/LemonTabs'import { userHasAccess } from 'lib/utils/accessControlUtils'import { sceneConfigurations } from 'scenes/scenes'import { Scene, SceneExport } from 'scenes/sceneTypes'@@ -19,8 +18,7 @@ import { ProductKey } from '~/queries/schema/schema-general'import { AccessControlLevel, AccessControlResourceType, DataWarehouseSavedQuery } from '~/types'import { ViewsTab } from '../data-warehouse/scene/ViewsTab'-import { DagsTab } from './DagsTab'-import { ModelsSceneTab, modelsSceneLogic } from './modelsSceneLogic'+import { modelsSceneLogic } from './modelsSceneLogic'export const scene: SceneExport = {component: ModelsScene,@@ -29,8 +27,7 @@ export const scene: SceneExport = {}export function ModelsScene(): JSX.Element {- const { savedQueryIdToNodeId, currentTab } = useValues(modelsSceneLogic)- const { setCurrentTab } = useActions(modelsSceneLogic)+ const { savedQueryIdToNodeId } = useValues(modelsSceneLogic)const getViewUrl = useCallback((view: DataWarehouseSavedQuery): string => {@@ -40,18 +37,6 @@ export function ModelsScene(): JSX.Element {[savedQueryIdToNodeId])- const tabs: LemonTab<ModelsSceneTab>[] = [- {- label: 'Views',- key: 'views',- content: <ViewsTab getViewUrl={getViewUrl} />,- },- {- label: 'DAGs',- key: 'dags',- content: <DagsTab />,- },- ]if (!userHasAccess(AccessControlResourceType.WarehouseObjects, AccessControlLevel.Viewer)) {return (<AccessDenied reason="You don't have access to Data warehouse tables & views, so this page isn't available." />@@ -67,35 +52,33 @@ export function ModelsScene(): JSX.Element {type: sceneConfigurations[Scene.Models].iconType || 'default_icon_type',}}actions={- currentTab === 'views' ? (- <div className="flex gap-2">- <Shortcut- name="NewModel"- keybind={[keyBinds.new]}- intent="New view"- interaction="click"- scope={Scene.Models}+ <div className="flex gap-2">+ <Shortcut+ name="NewModel"+ keybind={[keyBinds.new]}+ intent="New view"+ interaction="click"+ scope={Scene.Models}+ >+ <AccessControlAction+ resourceType={AccessControlResourceType.WarehouseObjects}+ minAccessLevel={AccessControlLevel.Editor}>- <AccessControlAction- resourceType={AccessControlResourceType.WarehouseObjects}- minAccessLevel={AccessControlLevel.Editor}+ <LemonButton+ type="primary"+ to={urls.sqlEditor({ source: 'view' })}+ size="small"+ tooltip="Create view"+ data-attr="new-view-button">- <LemonButton- type="primary"- to={urls.sqlEditor({ source: 'view' })}- size="small"- tooltip="Create view"- data-attr="new-view-button"- >- Create view- </LemonButton>- </AccessControlAction>- </Shortcut>- </div>- ) : undefined+ Create view+ </LemonButton>+ </AccessControlAction>+ </Shortcut>+ </div>}/>- <LemonTabs activeKey={currentTab} tabs={tabs} onChange={setCurrentTab} sceneInset />+ <ViewsTab getViewUrl={getViewUrl} /></SceneContent>)}diff --git a/frontend/src/scenes/models/dagsLogic.ts b/frontend/src/scenes/models/dagsLogic.tsdeleted file mode 100644index 912805b6616b..000000000000--- a/frontend/src/scenes/models/dagsLogic.ts+++ /dev/null@@ -1,115 +0,0 @@-import { MakeLogicType, kea, listeners, path } from 'kea'-import { loaders } from 'kea-loaders'--import { lemonToast } from '@posthog/lemon-ui'--import api from 'lib/api'--import { DataModelingDAG, DataModelingSyncInterval } from '~/types'--export const SYNC_FREQUENCY_OPTIONS: { value: DataModelingSyncInterval; label: string }[] = [- { value: '15min', label: '15 minutes' },- { value: '30min', label: '30 minutes' },- { value: '1hour', label: '1 hour' },- { value: '6hour', label: '6 hours' },- { value: '12hour', label: '12 hours' },- { value: '24hour', label: 'Daily' },- { value: '7day', label: 'Weekly' },- { value: '30day', label: 'Monthly' },-]--// Generated by kea-typegen. Update if you're an agent, ignore if you're human.-export interface dagsLogicValues {- dags: DataModelingDAG[]- dagsLoading: boolean-}--// Generated by kea-typegen. Update if you're an agent, ignore if you're human.-export interface dagsLogicActions {- deleteDag: (dag: DataModelingDAG) => DataModelingDAG- deleteDagFailure: (- error: string,- errorObject?: any- ) => {- error: string- errorObject?: any- }- deleteDagSuccess: (- dags: DataModelingDAG[],- payload?: DataModelingDAG- ) => {- dags: DataModelingDAG[]- payload?: DataModelingDAG- }- loadDags: () => any- loadDagsFailure: (- error: string,- errorObject?: any- ) => {- error: string- errorObject?: any- }- loadDagsSuccess: (- dags: DataModelingDAG[],- payload?: any- ) => {- dags: DataModelingDAG[]- payload?: any- }- updateDag: (dag: DataModelingDAG) => DataModelingDAG- updateDagFailure: (- error: string,- errorObject?: any- ) => {- error: string- errorObject?: any- }- updateDagSuccess: (- dags: DataModelingDAG[],- payload?: DataModelingDAG- ) => {- dags: DataModelingDAG[]- payload?: DataModelingDAG- }-}--export type dagsLogicType = MakeLogicType<dagsLogicValues, dagsLogicActions>--export const dagsLogic = kea<dagsLogicType>([- path(['scenes', 'models', 'dagsLogic']),- loaders(({ values }) => ({- dags: {- __default: [] as DataModelingDAG[],- loadDags: async (): Promise<DataModelingDAG[]> => {- const response = await api.dataModelingDags.list()- return response.results- },- updateDag: async (dag: DataModelingDAG): Promise<DataModelingDAG[]> => {- const updated = await api.dataModelingDags.update(dag.id, {- name: dag.name,- description: dag.description,- sync_frequency: dag.sync_frequency,- })- return values.dags.map((d) => (d.id === updated.id ? updated : d))- },- deleteDag: async (dag: DataModelingDAG): Promise<DataModelingDAG[]> => {- await api.dataModelingDags.delete(dag.id)- return values.dags.filter((d) => d.id !== dag.id)- },- },- })),- listeners(() => ({- updateDagSuccess: () => {- lemonToast.success('DAG updated')- },- updateDagFailure: ({ error }) => {- lemonToast.error(`Failed to update DAG: ${error ?? 'Unknown error'}`)- },- deleteDagSuccess: () => {- lemonToast.success('DAG deleted')- },- deleteDagFailure: ({ error }) => {- lemonToast.error(`Failed to delete DAG: ${error ?? 'Unknown error'}`)- },- })),-])diff --git a/frontend/src/scenes/models/modelsSceneLogic.ts b/frontend/src/scenes/models/modelsSceneLogic.tsindex e41e2916d7c6..1f49919d80c2 100644--- a/frontend/src/scenes/models/modelsSceneLogic.ts+++ b/frontend/src/scenes/models/modelsSceneLogic.ts@@ -1,24 +1,17 @@-import { MakeLogicType, actions, afterMount, connect, kea, path, reducers, selectors } from 'kea'+import { MakeLogicType, afterMount, connect, kea, path, selectors } from 'kea'import { loaders } from 'kea-loaders'-import { actionToUrl, urlToAction } from 'kea-router'import api from 'lib/api'import { dataWarehouseViewsLogic } from 'scenes/data-warehouse/saved_queries/dataWarehouseViewsLogic'-import { urls } from 'scenes/urls'import { DataModelingNode } from '~/types'import type { DataWarehouseSavedQuery } from '../../types'-export const MODELS_SCENE_TABS = ['views', 'dags'] as const-export type ModelsSceneTab = (typeof MODELS_SCENE_TABS)[number]-export const DEFAULT_MODELS_SCENE_TAB: ModelsSceneTab = 'views'-// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface modelsSceneLogicValues {dataWarehouseSavedQueries: DataWarehouseSavedQuery[] // dataWarehouseViewsLogicdataWarehouseSavedQueriesLoading: boolean // dataWarehouseViewsLogic- currentTab: ModelsSceneTabnodes: DataModelingNode[]nodesLoading: booleansavedQueryIdToNodeId: Record<string, string>@@ -27,9 +20,6 @@ export interface modelsSceneLogicValues {// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface modelsSceneLogicActions {loadDataWarehouseSavedQueries: () => any // dataWarehouseViewsLogic- _setCurrentTab: (tab: ModelsSceneTab) => {- tab: 'dags' | 'views'- }loadNodes: () => anyloadNodesFailure: (error: string,@@ -45,9 +35,6 @@ export interface modelsSceneLogicActions {nodes: DataModelingNode[]payload?: any}- setCurrentTab: (tab: ModelsSceneTab) => {- tab: 'dags' | 'views'- }}// Generated by kea-typegen. Update if you're an agent, ignore if you're human.@@ -70,19 +57,6 @@ export const modelsSceneLogic = kea<modelsSceneLogicType>([values: [dataWarehouseViewsLogic, ['dataWarehouseSavedQueries', 'dataWarehouseSavedQueriesLoading']],actions: [dataWarehouseViewsLogic, ['loadDataWarehouseSavedQueries']],})),- actions({- setCurrentTab: (tab: ModelsSceneTab) => ({ tab }),- _setCurrentTab: (tab: ModelsSceneTab) => ({ tab }),- }),- reducers({- currentTab: [- DEFAULT_MODELS_SCENE_TAB as ModelsSceneTab,- {- setCurrentTab: (_, { tab }) => tab,- _setCurrentTab: (_, { tab }) => tab,- },- ],- }),loaders({nodes: {__default: [] as DataModelingNode[],@@ -106,21 +80,6 @@ export const modelsSceneLogic = kea<modelsSceneLogicType>([},],}),- actionToUrl(() => ({- setCurrentTab: ({ tab }) => urls.models(tab === DEFAULT_MODELS_SCENE_TAB ? undefined : tab),- })),- urlToAction(({ actions, values }) => ({- [urls.models()]: () => {- if (values.currentTab !== DEFAULT_MODELS_SCENE_TAB) {- actions._setCurrentTab(DEFAULT_MODELS_SCENE_TAB)- }- },- [urls.models('dags')]: () => {- if (values.currentTab !== 'dags') {- actions._setCurrentTab('dags')- }- },- })),afterMount(({ actions }) => {actions.loadDataWarehouseSavedQueries()actions.loadNodes()diff --git a/frontend/src/scenes/urls.ts b/frontend/src/scenes/urls.tsindex c9549ac5936e..eb2e7d80b4ee 100644--- a/frontend/src/scenes/urls.ts+++ b/frontend/src/scenes/urls.ts@@ -18,7 +18,6 @@ import type { BillingSectionId } from './billing/types'import { DataPipelinesNewSceneKind } from './data-pipelines/DataPipelinesNewScene'import { OutputTab } from './data-warehouse/editor/outputPaneLogic'import type { HogFunctionSceneTab } from './hog-functions/HogFunctionScene'-import type { ModelsSceneTab } from './models/modelsSceneLogic'import type { SettingId, SettingLevelId, SettingSectionId } from './settings/types'/**@@ -56,7 +55,7 @@ export const urls = {webScripts: (): string => '/web-scripts',webScriptsNew: (): string => '/web-scripts/new',destinations: (): string => '/data-management/destinations',- models: (tab?: ModelsSceneTab): string => `/models${tab ? `/${tab}` : ''}`,+ models: (): string => '/models',transformations: (): string => '/data-management/transformations',eventFiltering: (): string => '/data-management/event-filtering',activity: (tab: ActivityTab | ':tab' = ActivityTab.ExploreEvents): string => `/activity/${tab}`,diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex b5b6631950c1..42f3921168db 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -6305,8 +6305,6 @@ export interface DataModelingDAG {name: stringdescription: stringsync_frequency: DataModelingSyncInterval | null- /** True when per-model freshness targets drive scheduling, making the DAG-level frequency read-only */- frequency_managed_by_nodes?: booleannode_count: numbercreated_at: stringupdated_at: string@@ -6321,8 +6319,6 @@ export interface DataWarehouseSavedQuery {columns: DatabaseSchemaField[]last_run_at?: stringsync_frequency?: string- /** True when the DAG's single schedule owns the cadence, so `sync_frequency` is not editable per view */- sync_frequency_managed_by_dag?: boolean/** Which cadences this view's lineage allows, and what withholds the rest. Single fetches only */sync_frequency_bounds?: SyncFrequencyBoundsApistatus?: stringdiff --git a/posthog/hogql/modifiers.py b/posthog/hogql/modifiers.pyindex 9a3f5291f6f0..36a579c68075 100644--- a/posthog/hogql/modifiers.py+++ b/posthog/hogql/modifiers.py@@ -1,7 +1,5 @@from typing import TYPE_CHECKING, Optional, overload-import posthoganalytics-from posthog.cloud_utils import is_cloudfrom posthog.schema_enums import (BounceRatePageViewMode,@@ -45,16 +43,6 @@ def create_default_modifiers_for_user(else:modifiers = modifiers.model_copy()- modifiers.useMaterializedViews = posthoganalytics.feature_enabled(- "data-modeling",- str(user.distinct_id),- person_properties={- "email": user.email,- },- only_evaluate_locally=True,- send_feature_flag_events=False,- )-return create_default_modifiers_for_team(team, modifiers)diff --git a/products/data_modeling/backend/facade/api.py b/products/data_modeling/backend/facade/api.pyindex a0ec3cac600e..254f64291454 100644--- a/products/data_modeling/backend/facade/api.py+++ b/products/data_modeling/backend/facade/api.py@@ -40,7 +40,6 @@ _LAZY = {"apply_saved_query_frequency_anchor": "logic.schedule_reconcile","apply_saved_query_frequency_target": "logic.schedule_reconcile","check_saved_query_frequency_target": "logic.schedule_reconcile",- "tiered_schedules_enabled": "logic.schedule_reconcile","declared_targets_by_saved_query": "logic.node_frequency","get_declared_target": "logic.node_frequency","set_declared_target": "logic.node_frequency",diff --git a/products/data_modeling/backend/logic/schedule_reconcile.py b/products/data_modeling/backend/logic/schedule_reconcile.pyindex b711e90dc00f..63c05cbc4ae8 100644--- a/products/data_modeling/backend/logic/schedule_reconcile.py+++ b/products/data_modeling/backend/logic/schedule_reconcile.py@@ -35,7 +35,6 @@ from temporalio.common import RetryPolicyfrom temporalio.service import RPCError, RPCStatusCodefrom posthog.exceptions_capture import capture_exception-from posthog.ph_client import feature_enabled_or_falsefrom posthog.temporal.common.client import async_connect, sync_connectfrom posthog.temporal.common.schedule import a_create_schedule, a_delete_schedule, a_update_schedule, delete_schedulefrom posthog.temporal.common.search_attributes import POSTHOG_DAG_ID_KEY@@ -78,28 +77,10 @@ from products.data_modeling.backend.schedule import ()if TYPE_CHECKING:- from posthog.models.team import Team-from products.data_modeling.backend.models.datawarehouse_saved_query import DataWarehouseSavedQuerylogger = structlog.get_logger(__name__)-TIERED_SCHEDULES_FLAG = "data-modeling-tiered-schedules"---def tiered_schedules_enabled(team: "Team") -> bool:- """Whether per-node cadence tiers may drive this team's DAG schedules."""- return feature_enabled_or_false(- TIERED_SCHEDULES_FLAG,- str(team.uuid),- groups={"organization": str(team.organization_id), "project": str(team.id)},- group_properties={- "organization": {"id": str(team.organization_id)},- "project": {"id": str(team.id)},- },- send_feature_flag_events=False,- )-def maybe_reconcile_dag(dag: DAG) -> None:"""Trigger hook for graph/target mutations: reconcile an already-tiered DAG, best-effort.diff --git a/products/data_modeling/backend/management/commands/batch_reconcile_teams.py b/products/data_modeling/backend/management/commands/batch_reconcile_teams.pyindex e1e427b4bafb..85085b059997 100644--- a/products/data_modeling/backend/management/commands/batch_reconcile_teams.py+++ b/products/data_modeling/backend/management/commands/batch_reconcile_teams.py@@ -21,7 +21,6 @@ from products.data_modeling.backend.logic.schedule_reconcile import (delete_v1_saved_query_schedules,null_saved_query_intervals,preview_dag_schedules,- tiered_schedules_enabled,)from products.data_modeling.backend.models.dag import DAG@@ -140,8 +139,6 @@ class Command(BaseCommand):if team is None:raise Anomaly("team does not exist")record["organization_id"] = str(team.organization_id)- if apply and not tiered_schedules_enabled(team):- raise Anomaly("team's org is not on the tiered-schedules flag")dag_list = list(DAG.objects.filter(team_id=team_id))if not dag_list:diff --git a/products/data_modeling/backend/management/commands/reconcile_freshness_schedules.py b/products/data_modeling/backend/management/commands/reconcile_freshness_schedules.pyindex eaa553749672..d8aa063b66ac 100644--- a/products/data_modeling/backend/management/commands/reconcile_freshness_schedules.py+++ b/products/data_modeling/backend/management/commands/reconcile_freshness_schedules.py@@ -13,7 +13,6 @@ from products.data_modeling.backend.logic.schedule_reconcile import (convert_dag_to_tiers,delete_v1_saved_query_schedules,null_saved_query_intervals,- tiered_schedules_enabled,)from products.data_modeling.backend.models.dag import DAG@@ -65,12 +64,6 @@ class Command(BaseCommand):call_command("preview_freshness_schedules", *preview_args, stdout=self.stdout)return- if not tiered_schedules_enabled(team):- raise CommandError(- f"Team {team.pk} is not on the tiered-schedules flag; converting it would create "- "tiers that no mutation trigger maintains"- )-dags = DAG.objects.filter(team_id=team.pk)if options["dag_id"]:try:diff --git a/products/data_modeling/backend/management/commands/set_schedule_anchor.py b/products/data_modeling/backend/management/commands/set_schedule_anchor.pyindex 6a16f5870c5d..94a8696862d1 100644--- a/products/data_modeling/backend/management/commands/set_schedule_anchor.py+++ b/products/data_modeling/backend/management/commands/set_schedule_anchor.py@@ -21,7 +21,7 @@ from products.data_modeling.backend.logic.node_frequency import (schedulable_nodes,set_declared_anchor,)-from products.data_modeling.backend.logic.schedule_reconcile import reconcile_dag_schedules, tiered_schedules_enabled+from products.data_modeling.backend.logic.schedule_reconcile import reconcile_dag_schedulesfrom products.data_modeling.backend.models.dag import DAGfrom products.data_modeling.backend.models.datawarehouse_saved_query import DataWarehouseSavedQueryfrom products.data_modeling.backend.models.node import Node@@ -82,10 +82,6 @@ class Command(BaseCommand):raise CommandError("Pass exactly one of --at or --clear")if options["clear"] and options["on"]:raise CommandError("--on has no effect with --clear")- if not tiered_schedules_enabled(team):- raise CommandError(- f"Team {team.pk} is not on the tiered-schedules flag; anchors only apply to cadence-tier schedules"- )anchor = None if options["clear"] else self._parse_anchor(options["at"], options["on"])nodes_by_dag = self._resolve_target_nodes(team, options)diff --git a/products/data_modeling/backend/presentation/views/dag.py b/products/data_modeling/backend/presentation/views/dag.pyindex 6e4eb86513b9..66074eec1827 100644--- a/products/data_modeling/backend/presentation/views/dag.py+++ b/products/data_modeling/backend/presentation/views/dag.py@@ -1,15 +1,14 @@import re-from typing import Any, cast+from typing import castfrom django.db.models import Count-from drf_spectacular.utils import extend_schema_fieldfrom rest_framework import serializers, status, viewsetsfrom rest_framework.exceptions import APIException, ValidationErrorfrom posthog.api.routing import TeamAndOrgViewSetMixin-from products.data_modeling.backend.facade.api import delete_dag_schedules, tiered_schedules_enabled+from products.data_modeling.backend.facade.api import delete_dag_schedulesfrom products.data_modeling.backend.facade.models import DAG, RESERVED_DAG_NAMESfrom products.warehouse_sources.backend.facade.models import (sync_frequency_interval_to_sync_frequency,@@ -30,14 +29,9 @@ class DAGSerializer(serializers.ModelSerializer):sync_frequency = serializers.CharField(required=False,allow_null=True,- help_text="Sync frequency string (e.g. '24hour', '7day')",- )- frequency_managed_by_nodes = serializers.SerializerMethodField(- read_only=True,help_text=(- "True when this team's DAG schedules are driven by per-model freshness targets, so "- "`sync_frequency` no longer controls scheduling and writes to it are rejected. False "- "when the DAG-level frequency still applies."+ "Legacy DAG-level cadence string (e.g. '24hour', '7day'). Scheduling is driven by each "+ "model's own sync frequency, so a PATCH that changes this value is rejected."),)@@ -48,14 +42,12 @@ class DAGSerializer(serializers.ModelSerializer):"name","description","sync_frequency",- "frequency_managed_by_nodes","node_count","created_at","updated_at",]read_only_fields = ["id",- "frequency_managed_by_nodes","node_count","created_at","updated_at",@@ -65,12 +57,6 @@ class DAGSerializer(serializers.ModelSerializer):"description": {"help_text": "Optional description of the DAG's purpose"},}- @extend_schema_field(serializers.BooleanField())- def get_frequency_managed_by_nodes(self, dag: DAG) -> bool:- # Resolved once per request in DAGViewSet.get_serializer_context — it is team-scoped,- # so evaluating the flag per DAG row would be redundant.- return bool(self.context.get("frequency_managed_by_nodes", False))-def to_representation(self, instance: DAG) -> dict:data = super().to_representation(instance)data["sync_frequency"] = sync_frequency_interval_to_sync_frequency(instance.sync_frequency_interval)@@ -114,16 +100,13 @@ class DAGSerializer(serializers.ModelSerializer):raise serializers.ValidationError("System-managed DAGs cannot be edited.")sync_frequency = validated_data.pop("sync_frequency", None)if sync_frequency is not None:- if self.context.get("frequency_managed_by_nodes", False):- # The frontend spreads the whole DAG into every PATCH, so an unchanged- # echo of the current frequency must pass; only a real change is rejected.- current = sync_frequency_interval_to_sync_frequency(instance.sync_frequency_interval)- if sync_frequency != current:- raise serializers.ValidationError(- "Sync frequency is managed per model on this team. Edit each model's sync frequency instead."- )- else:- validated_data["sync_frequency_interval"] = sync_frequency_to_sync_frequency_interval(sync_frequency)+ # The frontend spreads the whole DAG into every PATCH, so an unchanged+ # echo of the current frequency must pass; only a real change is rejected.+ current = sync_frequency_interval_to_sync_frequency(instance.sync_frequency_interval)+ if sync_frequency != current:+ raise serializers.ValidationError(+ "Sync frequency is managed per model on this team. Edit each model's sync frequency instead."+ )return super().update(instance, validated_data)@@ -136,11 +119,6 @@ class DAGViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):def safely_get_queryset(self, queryset):return queryset.filter(team_id=self.team_id).annotate(node_count=Count("node")).order_by("name")- def get_serializer_context(self) -> dict[str, Any]:- context = super().get_serializer_context()- context["frequency_managed_by_nodes"] = tiered_schedules_enabled(self.team)- return context-def perform_destroy(self, instance: DAG) -> None:if instance.is_default:raise ValidationError("The default DAG cannot be deleted.")diff --git a/products/data_modeling/backend/test/test_batch_reconcile_teams.py b/products/data_modeling/backend/test/test_batch_reconcile_teams.pyindex bdfed70c636f..6522ca7ff678 100644--- a/products/data_modeling/backend/test/test_batch_reconcile_teams.py+++ b/products/data_modeling/backend/test/test_batch_reconcile_teams.py@@ -42,7 +42,6 @@ class TestBatchReconcileTeams(BaseTest):def _run(self, team_ids: str, *extra_args, existing=(), verify_listing=None):out = StringIO()with (- mock.patch(f"{BATCH}.tiered_schedules_enabled", return_value=True),mock.patch(f"{RECONCILE}.sync_connect"),mock.patch(f"{RECONCILE}.delete_schedule"),mock.patch(@@ -147,7 +146,6 @@ class TestBatchReconcileTeams(BaseTest):out = StringIO()with (- mock.patch(f"{BATCH}.tiered_schedules_enabled", return_value=True),mock.patch(f"{BATCH}.time.sleep") as sleep,mock.patch(f"{RECONCILE}.sync_connect"),mock.patch(f"{RECONCILE}.delete_schedule"),diff --git a/products/data_modeling/backend/test/test_reconcile_freshness_schedules.py b/products/data_modeling/backend/test/test_reconcile_freshness_schedules.pyindex fadb0fe2fb9d..75482daa92c7 100644--- a/products/data_modeling/backend/test/test_reconcile_freshness_schedules.py+++ b/products/data_modeling/backend/test/test_reconcile_freshness_schedules.py@@ -39,7 +39,6 @@ class TestReconcileFreshnessSchedules(BaseTest):legacy_id = str(dag.id)with (- mock.patch(f"{COMMAND}.tiered_schedules_enabled", return_value=True),mock.patch(f"{RECONCILE}.sync_connect"),mock.patch(f"{RECONCILE}.delete_schedule"),mock.patch(f"{RECONCILE}.async_connect", new=mock.AsyncMock(return_value=_temporal_listing([legacy_id]))),@@ -57,19 +56,12 @@ class TestReconcileFreshnessSchedules(BaseTest):self.assertEqual(create.call_args.kwargs["id"], tier_schedule_id(legacy_id, H6))delete.assert_called_once_with(mock.ANY, schedule_id=legacy_id)- def test_refuses_unflagged_team(self):- self._legacy_dag()- with mock.patch(f"{COMMAND}.tiered_schedules_enabled", return_value=False):- with self.assertRaisesRegex(CommandError, "tiered-schedules flag"):- call_command("reconcile_freshness_schedules", "--team-id", str(self.team.pk), stdout=StringIO())-def test_sweeps_live_v1_schedules(self):dag, node = self._legacy_dag()assert node.saved_query is not Nonev1_id = str(node.saved_query.id)with (- mock.patch(f"{COMMAND}.tiered_schedules_enabled", return_value=True),mock.patch(f"{RECONCILE}.sync_connect"),mock.patch(f"{RECONCILE}.delete_schedule") as delete_v1,mock.patch(f"{RECONCILE}.async_connect", new=mock.AsyncMock(return_value=_temporal_listing([]))),@@ -109,7 +101,6 @@ class TestReconcileFreshnessSchedules(BaseTest):node_b = Node.objects.create(team=self.team, dag=dag_b, saved_query=saved_query, type=NodeType.VIEW)with (- mock.patch(f"{COMMAND}.tiered_schedules_enabled", return_value=True),mock.patch(f"{RECONCILE}.sync_connect"),mock.patch(f"{RECONCILE}.delete_schedule"),mock.patch(f"{RECONCILE}.async_connect", new=mock.AsyncMock(return_value=_temporal_listing([]))),diff --git a/products/data_modeling/backend/test/test_schedule_materialization.py b/products/data_modeling/backend/test/test_schedule_materialization.pyindex df304b50f7b9..26173e07e80c 100644--- a/products/data_modeling/backend/test/test_schedule_materialization.py+++ b/products/data_modeling/backend/test/test_schedule_materialization.py@@ -164,11 +164,10 @@ class TestScheduleMaterializationV2Guard(BaseTest):node.refresh_from_db()assert get_declared_target(node) is None- def test_tiered_flag_writes_target_through_and_nulls_interval(self):+ def test_writes_target_through_and_nulls_interval(self):node = Node.objects.get(saved_query=self.sq)with (mock.patch(GET_V2_DAG_IDS, return_value={str(self.dag.id)}),- mock.patch(f"{RECONCILE}.tiered_schedules_enabled", return_value=True),mock.patch(f"{RECONCILE}.maybe_reconcile_dag") as reconcile,):self.sq.schedule_materialization()@@ -187,7 +186,6 @@ class TestScheduleMaterializationV2Guard(BaseTest):self.sq.save(update_fields=["sync_frequency_interval"])with (mock.patch(GET_V2_DAG_IDS, return_value={str(self.dag.id)}),- mock.patch(f"{RECONCILE}.tiered_schedules_enabled", return_value=True),mock.patch(f"{RECONCILE}.maybe_reconcile_dag"),):self.sq.schedule_materialization()@@ -199,14 +197,13 @@ class TestScheduleMaterializationV2Guard(BaseTest):node = Node.objects.get(saved_query=self.sq)set_declared_target(node, timedelta(hours=12))with (- mock.patch(f"{RECONCILE}.tiered_schedules_enabled", return_value=True),mock.patch(f"{RECONCILE}.maybe_reconcile_dag"),):self.sq.revert_materialization()node.refresh_from_db()assert get_declared_target(node) is None- def test_tiered_flag_surfaces_invalid_frequency_without_disabling(self):+ def test_surfaces_invalid_frequency_without_disabling(self):# an invalid frequency is a request problem: it must reach the caller as a validation# error, not silently flip is_materialized like infrastructure failures doself.sq.is_materialized = True@@ -214,7 +211,6 @@ class TestScheduleMaterializationV2Guard(BaseTest):self.sq.save(update_fields=["is_materialized", "sync_frequency_interval"])with (mock.patch(GET_V2_DAG_IDS, return_value={str(self.dag.id)}),- mock.patch(f"{RECONCILE}.tiered_schedules_enabled", return_value=True),):try:self.sq.schedule_materialization()diff --git a/products/data_modeling/backend/test/test_set_schedule_anchor.py b/products/data_modeling/backend/test/test_set_schedule_anchor.pyindex 2d0d59d6c321..0195aa5d10a2 100644--- a/products/data_modeling/backend/test/test_set_schedule_anchor.py+++ b/products/data_modeling/backend/test/test_set_schedule_anchor.py@@ -41,7 +41,6 @@ class TestSetScheduleAnchor(BaseTest):def _run(self, *args, reconcile_applied=True):out = StringIO()with (- mock.patch(f"{COMMAND}.tiered_schedules_enabled", return_value=True),mock.patch(f"{COMMAND}.reconcile_dag_schedules", return_value=reconcile_applied) as reconcile,):call_command("set_schedule_anchor", "--team-id", str(self.team.pk), *args, stdout=out)@@ -144,13 +143,6 @@ class TestSetScheduleAnchor(BaseTest):self.assertEqual(get_declared_anchor(self.matview), 0)self.assertEqual(get_declared_anchor(downstream), 0)- def test_refuses_team_off_the_tiered_flag(self):- with mock.patch(f"{COMMAND}.tiered_schedules_enabled", return_value=False):- with self.assertRaisesRegex(CommandError, "tiered-schedules flag"):- call_command(- "set_schedule_anchor", "--team-id", str(self.team.pk), "--dag-id", str(self.dag.id), "--at", "00:00"- )-def test_rejects_malformed_arguments(self):for args, message in [(["--dag-id", str(self.dag.id), "--saved-query-names", "mv", "--at", "00:00"], "exactly one of --dag-id"),diff --git a/products/data_modeling/backend/tests/api/test_dag_api.py b/products/data_modeling/backend/tests/api/test_dag_api.pyindex f6375766edf8..ac602090f091 100644--- a/products/data_modeling/backend/tests/api/test_dag_api.py+++ b/products/data_modeling/backend/tests/api/test_dag_api.py@@ -197,53 +197,29 @@ class TestDAGViewSet(APIBaseTest):dag.refresh_from_db()self.assertEqual(dag.name, "my_dag")- @parameterized.expand([("tiered", True), ("not_tiered", False)])- def test_frequency_managed_by_nodes_tracks_tiered_schedules_flag(self, _name, enabled):- DAG.objects.create(team=self.team, name="my_dag")- DAG.objects.create(team=self.team, name="another_dag")-- with mock.patch(- "products.data_modeling.backend.presentation.views.dag.tiered_schedules_enabled",- return_value=enabled,- ) as mock_flag:- response = self.client.get(f"/api/environments/{self.team.id}/data_modeling_dags/")-- self.assertEqual(response.status_code, status.HTTP_200_OK)- self.assertEqual([d["frequency_managed_by_nodes"] for d in response.json()["results"]], [enabled, enabled])- # The flag is team-scoped, so it must be resolved once per request, not per DAG row.- mock_flag.assert_called_once()-- def test_cannot_set_sync_frequency_on_tiered_team(self):+ def test_cannot_set_sync_frequency(self):dag = DAG.objects.create(team=self.team, name="my_dag")interval_before = dag.sync_frequency_interval- with mock.patch(- "products.data_modeling.backend.presentation.views.dag.tiered_schedules_enabled",- return_value=True,- ):- response = self.client.patch(- f"/api/environments/{self.team.id}/data_modeling_dags/{dag.id}/",- {"sync_frequency": "15min"},- )+ response = self.client.patch(+ f"/api/environments/{self.team.id}/data_modeling_dags/{dag.id}/",+ {"sync_frequency": "15min"},+ )self.assertEqual(response.status_code, status.HTTP_400_BAD_REQUEST)self.assertIn("managed per model", response.json()["detail"])dag.refresh_from_db()self.assertEqual(dag.sync_frequency_interval, interval_before)- def test_can_still_rename_dag_on_tiered_team(self):+ def test_can_still_rename_dag(self):dag = DAG.objects.create(team=self.team, name="my_dag")- with mock.patch(- "products.data_modeling.backend.presentation.views.dag.tiered_schedules_enabled",- return_value=True,- ):- # The frontend spreads the whole DAG into the PATCH, echoing the current- # sync_frequency back unchanged — that echo must not trip the tiered rejection.- response = self.client.patch(- f"/api/environments/{self.team.id}/data_modeling_dags/{dag.id}/",- {"name": "renamed", "description": "still editable", "sync_frequency": "24hour"},- )+ # The frontend spreads the whole DAG into the PATCH, echoing the current+ # sync_frequency back unchanged. That echo must not trip the rejection.+ response = self.client.patch(+ f"/api/environments/{self.team.id}/data_modeling_dags/{dag.id}/",+ {"name": "renamed", "description": "still editable", "sync_frequency": "24hour"},+ )self.assertEqual(response.status_code, status.HTTP_200_OK)dag.refresh_from_db()@@ -251,23 +227,6 @@ class TestDAGViewSet(APIBaseTest):self.assertEqual(dag.description, "still editable")self.assertEqual(dag.sync_frequency_interval, timedelta(days=1))- def test_can_set_sync_frequency_on_non_tiered_team(self):- dag = DAG.objects.create(team=self.team, name="my_dag")-- with mock.patch(- "products.data_modeling.backend.presentation.views.dag.tiered_schedules_enabled",- return_value=False,- ):- response = self.client.patch(- f"/api/environments/{self.team.id}/data_modeling_dags/{dag.id}/",- {"sync_frequency": "15min"},- )-- self.assertEqual(response.status_code, status.HTTP_200_OK)- self.assertEqual(response.json()["sync_frequency"], "15min")- dag.refresh_from_db()- self.assertIsNotNone(dag.sync_frequency_interval)-def test_node_count_reflects_nodes(self):dag = DAG.objects.create(team=self.team, name="my_dag")Node.objects.create(team=self.team, dag=dag, name="events", type=NodeType.TABLE)diff --git a/products/data_modeling/backend/tests/test_managed_viewset_providers.py b/products/data_modeling/backend/tests/test_managed_viewset_providers.pyindex 06cf31f03270..6e3f402e3a57 100644--- a/products/data_modeling/backend/tests/test_managed_viewset_providers.py+++ b/products/data_modeling/backend/tests/test_managed_viewset_providers.py@@ -122,7 +122,6 @@ class TestManagedViewSetProviders(BaseTest):with (patch.dict(_expected_views_providers, clear=True),patch(GET_V2_DAG_IDS, return_value=set()),- patch(f"{RECONCILE}.feature_enabled_or_false", return_value=True),patch(f"{RECONCILE}.sync_connect"),patch(f"{RECONCILE}.async_connect", new=AsyncMock(return_value=_no_schedules())),patch(f"{RECONCILE}.a_create_schedule", new=AsyncMock()) as create,diff --git a/products/data_modeling/frontend/generated/api.schemas.ts b/products/data_modeling/frontend/generated/api.schemas.tsindex 51245206c251..4d5998c33ee7 100644--- a/products/data_modeling/frontend/generated/api.schemas.ts+++ b/products/data_modeling/frontend/generated/api.schemas.ts@@ -17,12 +17,10 @@ export interface DagApi {/** Optional description of the DAG's purpose */description?: string/**- * Sync frequency string (e.g. '24hour', '7day')+ * Legacy DAG-level cadence string (e.g. '24hour', '7day'). Scheduling is driven by each model's own sync frequency, so a PATCH that changes this value is rejected.* @nullable*/sync_frequency?: string | null- /** True when this team's DAG schedules are driven by per-model freshness targets, so `sync_frequency` no longer controls scheduling and writes to it are rejected. False when the DAG-level frequency still applies. */- readonly frequency_managed_by_nodes: booleanreadonly node_count: numberreadonly created_at: string/** @nullable */@@ -48,12 +46,10 @@ export interface PatchedDAGApi {/** Optional description of the DAG's purpose */description?: string/**- * Sync frequency string (e.g. '24hour', '7day')+ * Legacy DAG-level cadence string (e.g. '24hour', '7day'). Scheduling is driven by each model's own sync frequency, so a PATCH that changes this value is rejected.* @nullable*/sync_frequency?: string | null- /** True when this team's DAG schedules are driven by per-model freshness targets, so `sync_frequency` no longer controls scheduling and writes to it are rejected. False when the DAG-level frequency still applies. */- readonly frequency_managed_by_nodes?: booleanreadonly node_count?: numberreadonly created_at?: string/** @nullable */diff --git a/products/data_modeling/frontend/generated/api.zod.ts b/products/data_modeling/frontend/generated/api.zod.tsindex 28f9ca3b11d1..8f2bd088cdbc 100644--- a/products/data_modeling/frontend/generated/api.zod.ts+++ b/products/data_modeling/frontend/generated/api.zod.ts@@ -14,7 +14,12 @@ export const dataModelingDagsCreateBodyNameMax = 2048export const DataModelingDagsCreateBody = /* @__PURE__ */ zod.object({name: zod.string().max(dataModelingDagsCreateBodyNameMax).describe('Human-readable name for this DAG'),description: zod.string().optional().describe("Optional description of the DAG's purpose"),- sync_frequency: zod.string().nullish().describe("Sync frequency string (e.g. '24hour', '7day')"),+ sync_frequency: zod+ .string()+ .nullish()+ .describe(+ "Legacy DAG-level cadence string (e.g. '24hour', '7day'). Scheduling is driven by each model's own sync frequency, so a PATCH that changes this value is rejected."+ ),})export const dataModelingDagsPartialUpdateBodyNameMax = 2048@@ -26,7 +31,12 @@ export const DataModelingDagsPartialUpdateBody = /* @__PURE__ */ zod.object({.optional().describe('Human-readable name for this DAG'),description: zod.string().optional().describe("Optional description of the DAG's purpose"),- sync_frequency: zod.string().nullish().describe("Sync frequency string (e.g. '24hour', '7day')"),+ sync_frequency: zod+ .string()+ .nullish()+ .describe(+ "Legacy DAG-level cadence string (e.g. '24hour', '7day'). Scheduling is driven by each model's own sync frequency, so a PATCH that changes this value is rejected."+ ),})export const DataModelingEdgesCreateBody = /* @__PURE__ */ zod.object({diff --git a/products/data_warehouse/backend/presentation/views/saved_query.py b/products/data_warehouse/backend/presentation/views/saved_query.pyindex b75db156f63d..6e5617fe3bc1 100644--- a/products/data_warehouse/backend/presentation/views/saved_query.py+++ b/products/data_warehouse/backend/presentation/views/saved_query.py@@ -120,15 +120,6 @@ DEFAULT_MATERIALIZE_SYNC_FREQUENCY = "24hour"MATERIALIZE_SYNC_FREQUENCY_CHOICES = [choice for choice in SYNC_FREQUENCY_CHOICES if choice[0] != "never"]-SYNC_FREQUENCY_MANAGED_BY_DAG_HELP_TEXT = (- "True when this team's DAG owns the materialization cadence through a single schedule, so "- "`sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG "- "schedules are in use or the team is on the v1 backend. False does not on its own mean the "- "cadence is writable: a view belonging to a managed viewset rejects every update regardless, "- "which `managed_viewset_kind` reports."-)--class SyncFrequencyBlockerSerializer(serializers.Serializer):"""The node holding a cadence back, named so a refusal points at something a person can open."""@@ -175,16 +166,14 @@ class SyncFrequencyBoundsSerializer(serializers.Serializer):frequency_mode = serializers.ChoiceField(choices=[("tiered", "tiered"),- ("dag_schedule", "dag_schedule"),("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. 'dag_schedule' means the team's single "- "DAG schedule owns it, '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.",+ "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.",)options = SyncFrequencyOptionSerializer(many=True,@@ -502,19 +491,12 @@ class DataWarehouseSavedQuerySerializerMixin:def get_is_incremental(self, view: DataWarehouseSavedQuery) -> bool:return get_incremental_config(view) is not None- @extend_schema_field(serializers.BooleanField())- def get_sync_frequency_managed_by_dag(self, view: DataWarehouseSavedQuery) -> bool:- return bool(self.context.get("sync_frequency_managed_by_dag", False)) # type: ignore[attr-defined]-@extend_schema_field(SyncFrequencyBoundsSerializer())def get_sync_frequency_bounds(self, view: DataWarehouseSavedQuery) -> dict[str, Any]:from products.data_modeling.backend.facade.api import saved_query_target_bounds- team_mode = self.context.get("team_frequency_mode", "legacy") # type: ignore[attr-defined]if view.managed_viewset is not None:return _unbounded_frequency_payload("managed_viewset")- if team_mode != "tiered":- return _unbounded_frequency_payload(team_mode)resolved = saved_query_target_bounds(view.team_id, view.pk)if resolved is None:@@ -568,9 +550,6 @@ class DataWarehouseSavedQueryMinimalSerializer(columns = serializers.SerializerMethodField(read_only=True)description = ViewDescriptionField(read_only=True, help_text=VIEW_DESCRIPTION_HELP_TEXT)sync_frequency = serializers.SerializerMethodField()- sync_frequency_managed_by_dag = serializers.SerializerMethodField(- read_only=True, help_text=SYNC_FREQUENCY_MANAGED_BY_DAG_HELP_TEXT- )last_run_at = serializers.SerializerMethodField(read_only=True)status = serializers.SerializerMethodField(read_only=True)latest_error = serializers.SerializerMethodField(read_only=True)@@ -593,7 +572,6 @@ class DataWarehouseSavedQueryMinimalSerializer("created_at","description","sync_frequency",- "sync_frequency_managed_by_dag","columns","status","last_run_at",@@ -710,13 +688,9 @@ class DataWarehouseSavedQuerySerializer("How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', ""'24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest ""cadence available. Null means no scheduled materialization. Read back after a write, this "- "reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed "- "per-node, that is the view's DAG node rather than the view itself."+ "reflects the cadence stored on the view's DAG node."),)- sync_frequency_managed_by_dag = serializers.SerializerMethodField(- read_only=True, help_text=SYNC_FREQUENCY_MANAGED_BY_DAG_HELP_TEXT- )sync_frequency_bounds = serializers.SerializerMethodField(read_only=True, help_text=SYNC_FREQUENCY_BOUNDS_HELP_TEXT)latest_history_id = serializers.SerializerMethodField(read_only=True)last_run_at = serializers.SerializerMethodField(read_only=True)@@ -782,7 +756,6 @@ class DataWarehouseSavedQuerySerializer("created_at","description","sync_frequency",- "sync_frequency_managed_by_dag","sync_frequency_bounds","columns","status",@@ -811,7 +784,6 @@ class DataWarehouseSavedQuerySerializer("status","last_run_at","managed_viewset_kind",- "sync_frequency_managed_by_dag","sync_frequency_bounds","folder_name","latest_error",@@ -992,16 +964,8 @@ class DataWarehouseSavedQuerySerializer(database=self.context.get("database"),)- dag_managed_frequency = False- if sync_frequency:- from products.data_modeling.backend.facade.api import tiered_schedules_enabled-- # On tiered schedules the frequency writes through to the DAG node's freshness target;- # on a single DAG schedule that one schedule owns cadence and per-query frequency edits- # are rejected.- if not tiered_schedules_enabled(instance.team):- raise serializers.ValidationError("Schedule is managed by the DAG. Edit the DAG schedule instead.")- dag_managed_frequency = True+ # The frequency writes through to the DAG node's freshness target.+ frequency_changed = bool(sync_frequency)soft_update = validated_data.pop("soft_update", False)@@ -1027,7 +991,7 @@ class DataWarehouseSavedQuerySerializer(if str(edited_history_id) != str(latest_activity_id):raise serializers.ValidationError("The query was modified by someone else.")- if dag_managed_frequency:+ if frequency_changed:# The node target is the only store of frequency intent. The interval column# stays NULL so a stale v1 schedule can never be revived from it.locked_instance.sync_frequency_interval = None@@ -1035,7 +999,7 @@ class DataWarehouseSavedQuerySerializer(view: DataWarehouseSavedQuery = super().update(locked_instance, validated_data)- if dag_managed_frequency:+ if frequency_changed:from products.data_modeling.backend.facade.api import (UnsatisfiableFrequencyError,UnsupportedFrequencyTargetError,@@ -1120,7 +1084,7 @@ class DataWarehouseSavedQuerySerializer()for change in changes]- if dag_managed_frequency and previous_target != target:+ if frequency_changed and previous_target != target:# The cadence lives on the DAG node, so changes_between() sees nothing and# log_activity would discard the whole updated entry as a no-op.changes.append(@@ -1548,22 +1512,8 @@ class DataWarehouseSavedQueryViewSet(TeamAndOrgViewSetMixin, AccessControlViewSeif should_include_database:context["database"] = Database.create_for(team_id=self.team_id, user=cast(User, self.request.user))- context["team_frequency_mode"] = self._team_frequency_mode()- context["sync_frequency_managed_by_dag"] = context["team_frequency_mode"] == "dag_schedule"return context- def _team_frequency_mode(self) -> str:- """Which scheduler owns materialization cadence for this team.-- Mirrors the branch `update()` takes on a `sync_frequency` write: `tiered` writes the DAG node's- freshness target and is the only mode with bounds, and `dag_schedule` rejects the write because- the team's one DAG schedule owns cadence. Team-scoped, so the per-view rejections (managed- viewsets, views with no node) are not reflected here.- """- from products.data_modeling.backend.facade.api import tiered_schedules_enabled-- return "tiered" if tiered_schedules_enabled(self.team) else "dag_schedule"-def get_serializer_class(self):if self.action == "list":return DataWarehouseSavedQueryMinimalSerializer@@ -1857,7 +1807,7 @@ class DataWarehouseSavedQueryViewSet(TeamAndOrgViewSetMixin, AccessControlViewSesaved_query_target_bounds,)- if sync_frequency_interval is not None and self._team_frequency_mode() == "tiered":+ if sync_frequency_interval is not None:# Ask before writing, so the ordinary refusal never has to be undone below. Names only# what this caller may read, matching the bounds payload — otherwise one rejected# materialize reads back a node they were never shown.diff --git a/products/data_warehouse/backend/tests/api/test_saved_query.py b/products/data_warehouse/backend/tests/api/test_saved_query.pyindex fdec4f5e07db..2d202649dac3 100644--- a/products/data_warehouse/backend/tests/api/test_saved_query.py+++ b/products/data_warehouse/backend/tests/api/test_saved_query.py@@ -730,7 +730,7 @@ class TestSavedQuery(APIBaseTest):("5min", "15min", timedelta(minutes=15)),])- def test_update_sync_frequency_on_tiered_v2_writes_target_through(+ def test_update_sync_frequency_writes_target_through(self, sync_frequency: str, expected_frequency: str | None, expected_target: timedelta | None):from products.data_modeling.backend.facade.api import get_declared_target, set_declared_target@@ -742,7 +742,6 @@ class TestSavedQuery(APIBaseTest):reconcile_module = "products.data_modeling.backend.logic.schedule_reconcile"with (- patch(f"{reconcile_module}.tiered_schedules_enabled", return_value=True),patch(f"{reconcile_module}.maybe_reconcile_dag") as reconcile,):response = self.client.patch(@@ -782,7 +781,6 @@ class TestSavedQuery(APIBaseTest):reconcile_module = "products.data_modeling.backend.logic.schedule_reconcile"with (- patch(f"{reconcile_module}.tiered_schedules_enabled", return_value=True),patch(f"{reconcile_module}.maybe_reconcile_dag"),):response = self.client.patch(@@ -798,7 +796,7 @@ class TestSavedQuery(APIBaseTest):self.assertEqual(frequency_changes[0]["before"], expected_before)self.assertEqual(frequency_changes[0]["after"], expected_after)- def test_update_sync_frequency_on_tiered_v2_without_node_is_rejected(self):+ def test_update_sync_frequency_without_node_is_rejected(self):from products.data_modeling.backend.facade.models import Nodesaved_query = self._create_saved_query_for_frequency_tests()@@ -806,7 +804,6 @@ class TestSavedQuery(APIBaseTest):reconcile_module = "products.data_modeling.backend.logic.schedule_reconcile"with (- patch(f"{reconcile_module}.tiered_schedules_enabled", return_value=True),patch(f"{reconcile_module}.maybe_reconcile_dag"),):response = self.client.patch(@@ -819,14 +816,13 @@ class TestSavedQuery(APIBaseTest):updated = DataWarehouseSavedQuery.objects.get(id=saved_query["id"])self.assertIsNone(updated.sync_frequency_interval)- def test_update_sync_frequency_on_tiered_v2_rolls_back_invalid_target(self):+ def test_update_sync_frequency_rolls_back_invalid_target(self):from products.data_modeling.backend.facade.api import UnsatisfiableFrequencyErrorsaved_query = self._create_saved_query_for_frequency_tests()reconcile_module = "products.data_modeling.backend.logic.schedule_reconcile"with (- patch(f"{reconcile_module}.tiered_schedules_enabled", return_value=True),patch(f"{reconcile_module}.apply_saved_query_frequency_target",side_effect=UnsatisfiableFrequencyError("target is fresher than its sources deliver"),@@ -842,23 +838,6 @@ class TestSavedQuery(APIBaseTest):updated = DataWarehouseSavedQuery.objects.get(id=saved_query["id"])self.assertIsNone(updated.sync_frequency_interval)- def test_update_sync_frequency_on_untiered_v2_stays_blocked(self):- saved_query = self._create_saved_query_for_frequency_tests()-- with (- patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=False,- ),- ):- response = self.client.patch(- f"/api/environments/{self.team.id}/warehouse_saved_queries/{saved_query['id']}",- {"sync_frequency": "24hour"},- )-- self.assertEqual(response.status_code, 400)- self.assertIn("managed by the DAG", response.json()["detail"])-def _read_sync_frequency(self, saved_query_id: str, action: str) -> str | None:if action == "retrieve":response = self.client.get(@@ -919,30 +898,6 @@ class TestSavedQuery(APIBaseTest):node_queries = [q for q in queries.captured_queries if Node._meta.db_table in q["sql"]]self.assertEqual(len(node_queries), 1, node_queries)- @parameterized.expand(- [- ("single_schedule", False, True),- ("tiered", True, False),- ]- )- def test_sync_frequency_managed_by_dag_tracks_the_write_path(self, _name: str, tiered: bool, expected: bool):- # The frontend hides the cadence control on this flag. It must mean exactly what the- # write path rejects, or the control disappears from teams that can in fact edit.- saved_query = self._create_saved_query_for_frequency_tests()-- with (- patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=tiered,- ),- ):- response = self.client.get(- f"/api/environments/{self.team.id}/warehouse_saved_queries/{saved_query['id']}",- )-- self.assertEqual(response.status_code, 200, response.json())- self.assertEqual(response.json()["sync_frequency_managed_by_dag"], expected)-def test_sync_frequency_is_a_writable_field(self):# Regression: sync_frequency used to be a read-only SerializerMethodField, so it was# marked readOnly in the generated OpenAPI/MCP schemas and silently dropped from writes.@@ -969,35 +924,21 @@ class TestSavedQuery(APIBaseTest):set_declared_target(Node.objects.get(saved_query_id=consumer.json()["id"]), consumer_target)return upstream- def _read_frequency_bounds(self, saved_query_id: str, *, tiered: bool = True) -> dict:- with patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=tiered,- ):- response = self.client.get(- f"/api/environments/{self.team.id}/warehouse_saved_queries/{saved_query_id}",- )+ def _read_frequency_bounds(self, saved_query_id: str) -> dict:+ response = self.client.get(+ f"/api/environments/{self.team.id}/warehouse_saved_queries/{saved_query_id}",+ )self.assertEqual(response.status_code, 200, response.json())return response.json()["sync_frequency_bounds"]- @parameterized.expand(- [- ("single_schedule", False, "dag_schedule"),- ("tiered", True, "tiered"),- ]- )- def test_bounds_are_offered_only_where_a_per_view_cadence_is_writable(- self, _name: str, tiered: bool, expected_mode: str- ):- # The picker renders from this payload. Offering options to a team whose writes the DAG- # owns puts a control on screen that can only 400, which is the bug this field exists- # to close; serving none to a tiered team hides a control that does work.+ def test_bounds_offer_the_per_view_cadence_options(self):+ # The picker renders from this payload. Serving no options hides a control that works.saved_query = self._create_saved_query_for_frequency_tests()- bounds = self._read_frequency_bounds(saved_query["id"], tiered=tiered)+ bounds = self._read_frequency_bounds(saved_query["id"])- self.assertEqual(bounds["frequency_mode"], expected_mode)- self.assertEqual(bool(bounds["options"]), expected_mode == "tiered")+ self.assertEqual(bounds["frequency_mode"], "tiered")+ self.assertTrue(bounds["options"])def test_every_offered_cadence_is_accepted_and_every_withheld_one_is_refused(self):# The whole point of serving bounds is that the picker and the write path cannot@@ -1008,13 +949,7 @@ class TestSavedQuery(APIBaseTest):self.assertTrue(any(not option["allowed"] for option in options))for option in options:- with (- patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=True,- ),- patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"),- ):+ with patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"):response = self.client.patch(f"/api/environments/{self.team.id}/warehouse_saved_queries/{upstream['id']}",{"sync_frequency": option["cadence"]},@@ -1040,13 +975,7 @@ class TestSavedQuery(APIBaseTest):# writes anyway must be told the same thing the picker would have shown.upstream = self._create_view_with_a_consumer(consumer_target=timedelta(hours=6))- with (- patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=True,- ),- patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"),- ):+ with patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"):response = self.client.patch(f"/api/environments/{self.team.id}/warehouse_saved_queries/{upstream['id']}",{"sync_frequency": "24hour"},diff --git a/products/data_warehouse/backend/tests/api/test_saved_query_access_control.py b/products/data_warehouse/backend/tests/api/test_saved_query_access_control.pyindex 372daf4628ed..968be1904043 100644--- a/products/data_warehouse/backend/tests/api/test_saved_query_access_control.py+++ b/products/data_warehouse/backend/tests/api/test_saved_query_access_control.py@@ -457,15 +457,8 @@ class TestSyncFrequencyBoundsAccessControl(WarehouseAccessControlTestMixin):Edge.objects.create(team=self.team, dag=dag, source=self.upstream_node, target=self.consumer_node)set_declared_target(self.consumer_node, timedelta(hours=6))- def _tiered(self):- return patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=True,- )-def _read_upstream(self) -> tuple[dict, str]:- with self._tiered():- response = self.client.get(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.upstream.id}/")+ response = self.client.get(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.upstream.id}/")self.assertEqual(response.status_code, status.HTTP_200_OK, response.content)return response.json()["sync_frequency_bounds"], response.content.decode()@@ -506,7 +499,7 @@ class TestSyncFrequencyBoundsAccessControl(WarehouseAccessControlTestMixin):self._deny_the_consumer(self.editor_user)self.client.force_login(self.editor_user)- with self._tiered(), patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"):+ with patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"):response = self.client.patch(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.upstream.id}/",{"sync_frequency": "24hour"},@@ -521,7 +514,7 @@ class TestSyncFrequencyBoundsAccessControl(WarehouseAccessControlTestMixin):self._create_access_control(self.editor_user, access_level="editor")self.client.force_login(self.editor_user)- with self._tiered(), patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"):+ with patch("products.data_modeling.backend.logic.schedule_reconcile.maybe_reconcile_dag"):response = self.client.patch(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.upstream.id}/",{"sync_frequency": "24hour"},@@ -598,13 +591,7 @@ class TestSyncFrequencyTableBlockerAccessControl(WarehouseAccessControlTestMixinEdge.objects.create(team=self.team, dag=dag, source=source_node, target=self.view_node)def _read_view(self) -> tuple[dict, str]:- with (- patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=True,- ),- ):- response = self.client.get(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.view.id}/")+ response = self.client.get(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.view.id}/")self.assertEqual(response.status_code, status.HTTP_200_OK, response.content)return response.json()["sync_frequency_bounds"], response.content.decode()@@ -690,13 +677,7 @@ class TestSyncFrequencyDuplicateResourceAcrossDags(WarehouseAccessControlTestMixEdge.objects.create(team=self.team, dag=dag, source=source_node, target=view_node)def _read_view(self) -> dict:- with (- patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=True,- ),- ):- response = self.client.get(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.view.id}/")+ response = self.client.get(f"/api/environments/{self.team.pk}/warehouse_saved_queries/{self.view.id}/")self.assertEqual(response.status_code, status.HTTP_200_OK, response.content)return response.json()["sync_frequency_bounds"]diff --git a/products/data_warehouse/frontend/generated/api.schemas.ts b/products/data_warehouse/frontend/generated/api.schemas.tsindex 95118828fda2..256d542849e3 100644--- a/products/data_warehouse/frontend/generated/api.schemas.ts+++ b/products/data_warehouse/frontend/generated/api.schemas.ts@@ -1156,8 +1156,6 @@ export interface DataWarehouseSavedQueryMinimalApi {readonly description: string/** @nullable */readonly sync_frequency: string | null- /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */- readonly sync_frequency_managed_by_dag: booleanreadonly columns: readonly DataWarehouseSavedQueryMinimalApiColumnsItem[]readonly status: DataWarehouseSavedQueryStatusEnumApi | null/** @nullable */@@ -1317,7 +1315,6 @@ export const SavedQuerySyncFrequencyEnumApi = {/*** * `tiered` - tiered- * * `dag_schedule` - dag_schedule* * `managed_viewset` - managed_viewset* * `legacy` - legacy* * `no_node` - no_node@@ -1326,7 +1323,6 @@ export type FrequencyModeEnumApi = (typeof FrequencyModeEnumApi)[keyof typeof Frexport const FrequencyModeEnumApi = {Tiered: 'tiered',- DagSchedule: 'dag_schedule',ManagedViewset: 'managed_viewset',Legacy: 'legacy',NoNode: 'no_node',@@ -1409,10 +1405,9 @@ 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. 'dag_schedule' means the team's single DAG schedule owns it, '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, '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.** * `tiered` - tiered- * * `dag_schedule` - dag_schedule* * `managed_viewset` - managed_viewset* * `legacy` - legacy* * `no_node` - no_node */@@ -1456,7 +1451,7 @@ export interface DataWarehouseSavedQueryApi {* @nullable*/description?: string | null- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.** * `never` - never* * `15min` - 15min@@ -1468,8 +1463,6 @@ export interface DataWarehouseSavedQueryApi {* * `7day` - 7day* * `30day` - 30day */sync_frequency?: SavedQuerySyncFrequencyEnumApi | null- /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */- readonly sync_frequency_managed_by_dag: boolean/** Which cadences this view can actually be set to, and what withholds the rest. Computed from the view's data modeling lineage: upstream source sync frequencies set a floor, downstream cadences set a ceiling. Read-only, and present on retrieve, create and update responses only. */readonly sync_frequency_bounds: SyncFrequencyBoundsApireadonly columns: readonly DataWarehouseSavedQueryApiColumnsItem[]@@ -1580,7 +1573,7 @@ export interface PatchedDataWarehouseSavedQueryApi {* @nullable*/description?: string | null- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.** * `never` - never* * `15min` - 15min@@ -1592,8 +1585,6 @@ export interface PatchedDataWarehouseSavedQueryApi {* * `7day` - 7day* * `30day` - 30day */sync_frequency?: SavedQuerySyncFrequencyEnumApi | null- /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */- readonly sync_frequency_managed_by_dag?: boolean/** Which cadences this view can actually be set to, and what withholds the rest. Computed from the view's data modeling lineage: upstream source sync frequencies set a floor, downstream cadences set a ceiling. Read-only, and present on retrieve, create and update responses only. */readonly sync_frequency_bounds?: SyncFrequencyBoundsApireadonly columns?: readonly PatchedDataWarehouseSavedQueryApiColumnsItem[]diff --git a/products/data_warehouse/frontend/generated/api.zod.ts b/products/data_warehouse/frontend/generated/api.zod.tsindex 2f698b486979..1582617345ab 100644--- a/products/data_warehouse/frontend/generated/api.zod.ts+++ b/products/data_warehouse/frontend/generated/api.zod.ts@@ -513,7 +513,7 @@ export const WarehouseSavedQueriesCreateBody = /* @__PURE__ */ zod]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.uuid()@@ -613,7 +613,7 @@ export const WarehouseSavedQueriesUpdateBody = /* @__PURE__ */ zod]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.uuid()@@ -715,7 +715,7 @@ export const WarehouseSavedQueriesPartialUpdateBody = /* @__PURE__ */ zod]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.uuid()@@ -832,7 +832,7 @@ export const WarehouseSavedQueriesCancelCreateBody = /* @__PURE__ */ zod]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.uuid()@@ -973,7 +973,7 @@ export const WarehouseSavedQueriesRevertMaterializationCreateBody = /* @__PURE__]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.uuid()diff --git a/products/data_warehouse/manifest.tsx b/products/data_warehouse/manifest.tsxindex 101c9fbb056e..c154947540ac 100644--- a/products/data_warehouse/manifest.tsx+++ b/products/data_warehouse/manifest.tsx@@ -4,7 +4,6 @@ import { urls } from 'scenes/urls'import { ProductItemCategory, ProductKey } from '~/queries/schema/schema-general'import { ActivityScope, ProductManifest } from '~/types'-import type { ModelsSceneTab } from '../../frontend/src/scenes/models/modelsSceneLogic'import type { NodeDetailSceneTab } from '../../frontend/src/scenes/models/nodeDetailSceneLogic'import type { SchemaConfigurationSection, SchemaSceneTab } from './frontend/scenes/SchemaScene/SchemaScene'import type { SourceSceneTab } from './frontend/scenes/SourceScene/SourceScene'@@ -74,7 +73,6 @@ export const manifest: ProductManifest = {routes: {'/data-ops': ['DataOps', 'dataOps'],'/models': ['Models', 'models'],- '/models/dags': ['Models', 'models'],'/models/:id': ['NodeDetail', 'nodeDetail'],'/models/:id/:tab': ['NodeDetail', 'nodeDetail'],'/data-management/sources': ['Sources', 'sources'],@@ -106,18 +104,15 @@ export const manifest: ProductManifest = {'/data-warehouse/sources/:id/:tab': ({ id, tab }) => urls.dataWarehouseSource(id, tab as SourceSceneTab),},urls: {- dataOps: (tab?: string, dagId?: string): string => {+ dataOps: (tab?: string): string => {const params = new URLSearchParams()if (tab) {params.set('tab', tab)}- if (dagId) {- params.set('dag', dagId)- }const query = params.toString()return query ? `/data-ops?${query}` : '/data-ops'},- models: (tab?: ModelsSceneTab): string => `/models${tab ? `/${tab}` : ''}`,+ models: (): string => '/models',nodeDetail: (id: string, tab?: NodeDetailSceneTab): string => `/models/${id}${tab ? `/${tab}` : ''}`,sources: (): string => '/data-management/sources',dataWarehouseSource: (id: string, tab?: SourceSceneTab): string =>diff --git a/products/data_warehouse/mcp/tools.yaml b/products/data_warehouse/mcp/tools.yamlindex 32986b80dcd7..13a95763dabb 100644--- a/products/data_warehouse/mcp/tools.yaml+++ b/products/data_warehouse/mcp/tools.yaml@@ -288,7 +288,6 @@ tools:- columns- last_run_at- managed_viewset_kind- - sync_frequency_managed_by_dag- latest_history_idparam_overrides:name:@@ -441,7 +440,6 @@ tools:- columns- last_run_at- managed_viewset_kind- - sync_frequency_managed_by_dag- latest_history_idparam_overrides:name:diff --git a/products/endpoints/backend/tests/test_endpoint_materialization.py b/products/endpoints/backend/tests/test_endpoint_materialization.pyindex b6744d86186d..fa19dd0e714d 100644--- a/products/endpoints/backend/tests/test_endpoint_materialization.py+++ b/products/endpoints/backend/tests/test_endpoint_materialization.py@@ -56,16 +56,10 @@ class TestEndpointMaterialization(ClickhouseTestMixin, APIBaseTest):"products.data_modeling.backend.schedule.get_v2_scheduled_dag_ids",side_effect=lambda candidate_dag_ids=None: set(candidate_dag_ids or []),)- self.tiered_schedules_patcher = mock.patch(- "products.data_modeling.backend.logic.schedule_reconcile.tiered_schedules_enabled",- return_value=True,- )self.mock_v2_dag_ids = self.v2_dag_ids_patcher.start()- self.tiered_schedules_patcher.start()def tearDown(self):self.v2_dag_ids_patcher.stop()- self.tiered_schedules_patcher.stop()super().tearDown()def test_enable_materialization_creates_saved_query(self):diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 5df790e41d13..35bdedd67ce4 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -21150,12 +21150,10 @@ export namespace Schemas {/** Optional description of the DAG's purpose */description?: string;/**- * Sync frequency string (e.g. '24hour', '7day')+ * Legacy DAG-level cadence string (e.g. '24hour', '7day'). Scheduling is driven by each model's own sync frequency, so a PATCH that changes this value is rejected.* @nullable*/sync_frequency?: string | null;- /** True when this team's DAG schedules are driven by per-model freshness targets, so `sync_frequency` no longer controls scheduling and writes to it are rejected. False when the DAG-level frequency still applies. */- readonly frequency_managed_by_nodes: boolean;readonly node_count: number;readonly created_at: string;/** @nullable */@@ -22720,7 +22718,6 @@ export namespace Schemas {/*** * `tiered` - tiered- * * `dag_schedule` - dag_schedule* * `managed_viewset` - managed_viewset* * `legacy` - legacy* * `no_node` - no_node@@ -22730,7 +22727,6 @@ export namespace Schemas {export const FrequencyModeEnum = {Tiered: 'tiered',- DagSchedule: 'dag_schedule',ManagedViewset: 'managed_viewset',Legacy: 'legacy',NoNode: 'no_node',@@ -22813,10 +22809,9 @@ 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. 'dag_schedule' means the team's single DAG schedule owns it, '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, '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.** * `tiered` - tiered- * * `dag_schedule` - dag_schedule* * `managed_viewset` - managed_viewset* * `legacy` - legacy* * `no_node` - no_node */@@ -22894,7 +22889,7 @@ export namespace Schemas {* @nullable*/description?: string | null;- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.** * `never` - never* * `15min` - 15min@@ -22906,8 +22901,6 @@ export namespace Schemas {* * `7day` - 7day* * `30day` - 30day */sync_frequency?: SavedQuerySyncFrequencyEnum | null;- /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */- readonly sync_frequency_managed_by_dag: boolean;/** Which cadences this view can actually be set to, and what withholds the rest. Computed from the view's data modeling lineage: upstream source sync frequencies set a floor, downstream cadences set a ceiling. Read-only, and present on retrieve, create and update responses only. */readonly sync_frequency_bounds: SyncFrequencyBounds;readonly columns: readonly DataWarehouseSavedQueryColumnsItem[];@@ -23069,8 +23062,6 @@ export namespace Schemas {readonly description: string;/** @nullable */readonly sync_frequency: string | null;- /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */- readonly sync_frequency_managed_by_dag: boolean;readonly columns: readonly DataWarehouseSavedQueryMinimalColumnsItem[];readonly status: DataWarehouseSavedQueryStatusEnum | null;/** @nullable */@@ -62238,12 +62229,10 @@ export namespace Schemas {/** Optional description of the DAG's purpose */description?: string;/**- * Sync frequency string (e.g. '24hour', '7day')+ * Legacy DAG-level cadence string (e.g. '24hour', '7day'). Scheduling is driven by each model's own sync frequency, so a PATCH that changes this value is rejected.* @nullable*/sync_frequency?: string | null;- /** True when this team's DAG schedules are driven by per-model freshness targets, so `sync_frequency` no longer controls scheduling and writes to it are rejected. False when the DAG-level frequency still applies. */- readonly frequency_managed_by_nodes?: boolean;readonly node_count?: number;readonly created_at?: string;/** @nullable */@@ -62612,7 +62601,7 @@ export namespace Schemas {* @nullable*/description?: string | null;- /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.+ /** How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.** * `never` - never* * `15min` - 15min@@ -62624,8 +62613,6 @@ export namespace Schemas {* * `7day` - 7day* * `30day` - 30day */sync_frequency?: SavedQuerySyncFrequencyEnum | null;- /** True when this team's DAG owns the materialization cadence through a single schedule, so `sync_frequency` cannot be set per view and writes to it are rejected. False when per-node DAG schedules are in use or the team is on the v1 backend. False does not on its own mean the cadence is writable: a view belonging to a managed viewset rejects every update regardless, which `managed_viewset_kind` reports. */- readonly sync_frequency_managed_by_dag?: boolean;/** Which cadences this view can actually be set to, and what withholds the rest. Computed from the view's data modeling lineage: upstream source sync frequencies set a floor, downstream cadences set a ceiling. Read-only, and present on retrieve, create and update responses only. */readonly sync_frequency_bounds?: SyncFrequencyBounds;readonly columns?: readonly PatchedDataWarehouseSavedQueryColumnsItem[];diff --git a/services/mcp/src/generated/data_warehouse/api.ts b/services/mcp/src/generated/data_warehouse/api.tsindex 01227b319812..13b8e4e01bb7 100644--- a/services/mcp/src/generated/data_warehouse/api.ts+++ b/services/mcp/src/generated/data_warehouse/api.ts@@ -388,7 +388,7 @@ export const WarehouseSavedQueriesCreateBody = () => zod]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.string()@@ -502,7 +502,7 @@ export const WarehouseSavedQueriesPartialUpdateBody = () => zod]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.string()@@ -652,7 +652,7 @@ export const WarehouseSavedQueriesRevertMaterializationCreateBody = () => zod]).optional().describe(- "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"+ "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n\* `never` - never\n\* `15min` - 15min\n\* `30min` - 30min\n\* `1hour` - 1hour\n\* `6hour` - 6hour\n\* `12hour` - 12hour\n\* `24hour` - 24hour\n\* `7day` - 7day\n\* `30day` - 30day"),folder_id: zod.string()diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.jsonindex 066619120477..9e154cb46bdd 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-create.json@@ -107,7 +107,7 @@"type": "null"}],- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"}},"required": ["name", "query"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.jsonindex bdad3f0b9b7a..baca9aae75f3 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-unmaterialize.json@@ -143,7 +143,7 @@"type": "null"}],- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"}},"required": ["id", "name", "query"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.jsonindex 13bac750fc2a..b81d41e4617b 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/view-update.json@@ -122,7 +122,7 @@"type": "null"}],- "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the stored cadence wherever it lives. On teams whose DAG schedules are managed per-node, that is the view's DAG node rather than the view itself.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"+ "description": "How often to materialize this view. One of '15min', '30min', '1hour', '6hour', '12hour', '24hour', '7day', '30day', or 'never' to pause scheduled materialization. 15min is the fastest cadence available. Null means no scheduled materialization. Read back after a write, this reflects the cadence stored on the view's DAG node.\n\n* `never` - never\n* `15min` - 15min\n* `30min` - 30min\n* `1hour` - 1hour\n* `6hour` - 6hour\n* `12hour` - 12hour\n* `24hour` - 24hour\n* `7day` - 7day\n* `30day` - 30day"}},"required": ["id"],