From 17d63d42229c73ece88f28e06acc014882ed12b7 Mon Sep 17 00:00:00 2001 From: Maxime Armstrong Date: Tue, 19 Nov 2024 19:25:49 -0500 Subject: [PATCH] Mark Fivetran ops as deprecated --- .../dagster-fivetran/dagster_fivetran/ops.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/python_modules/libraries/dagster-fivetran/dagster_fivetran/ops.py b/python_modules/libraries/dagster-fivetran/dagster_fivetran/ops.py index 09c0be97622bf..439c51bf70d4c 100644 --- a/python_modules/libraries/dagster-fivetran/dagster_fivetran/ops.py +++ b/python_modules/libraries/dagster-fivetran/dagster_fivetran/ops.py @@ -1,6 +1,7 @@ from typing import Any, Dict, List, Optional from dagster import AssetKey, Config, In, Nothing, Out, Output, op +from dagster._annotations import deprecated from dagster._core.storage.tags import COMPUTE_KIND_TAG from pydantic import Field @@ -43,6 +44,12 @@ class SyncConfig(Config): ) +@deprecated( + breaking_version="2.0", + additional_warn_text=( + "Fivetran ops will be deprecated. Use `FivetranWorkspace` resource and `@fivetran_asset` decorator instead" + ), +) @op( ins={"start_after": In(Nothing)}, out=Out( @@ -112,6 +119,12 @@ class FivetranResyncConfig(SyncConfig): ) +@deprecated( + breaking_version="2.0", + additional_warn_text=( + "Fivetran ops will be deprecated. Use `FivetranWorkspace` resource and `@fivetran_asset` decorator instead" + ), +) @op( ins={"start_after": In(Nothing)}, out=Out(