From b79f4b612351c3bdfba1b1b6f34acecd29be165a Mon Sep 17 00:00:00 2001 From: Bert Verstraete Date: Tue, 17 Sep 2024 15:07:57 +0200 Subject: [PATCH] Remove data workflows triggers beta notice (#1933) Marking PySDK and API spec as GA. --- CHANGELOG.md | 4 ++++ cognite/client/_api/workflows.py | 17 ----------------- cognite/client/_version.py | 2 +- pyproject.toml | 2 +- 4 files changed, 6 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d77f218d56..40a5b6ba1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,10 @@ Changes are grouped as follows - `Fixed` for any bug fixes. - `Security` in case of vulnerabilities. +## [7.60.5] - 2024-09-17 +### Changed +Remove beta notice on the Data Workflows `WorkflowTriggerAPI` + ## [7.60.4] - 2024-09-15 ### Added Fix bug in column name remapping for `TypedInstance.to_pandas()` diff --git a/cognite/client/_api/workflows.py b/cognite/client/_api/workflows.py index 4d02d97884..715cd7a4c2 100644 --- a/cognite/client/_api/workflows.py +++ b/cognite/client/_api/workflows.py @@ -30,7 +30,6 @@ WorkflowVersionUpsert, ) from cognite.client.exceptions import CogniteAPIError -from cognite.client.utils._experimental import FeaturePreviewWarning from cognite.client.utils._identifier import ( IdentifierSequence, WorkflowVersionIdentifierSequence, @@ -57,18 +56,6 @@ def wrap_workflow_ids( class WorkflowTriggerAPI(APIClient): _RESOURCE_PATH = "/workflows/triggers" - def __init__( - self, - config: ClientConfig, - api_version: str | None, - cognite_client: CogniteClient, - ) -> None: - super().__init__(config, api_version, cognite_client) - self._api_subversion = "beta" - self._warning = FeaturePreviewWarning( - api_maturity="beta", sdk_maturity="beta", feature_name="Workflow Orchestration" - ) - def create( self, workflow_trigger: WorkflowTriggerCreate, @@ -100,7 +87,6 @@ def create( ... ) ... ) """ - self._warning.warn() nonce = create_session_and_return_nonce( self._cognite_client, api_name="Workflow API", client_credentials=client_credentials ) @@ -129,7 +115,6 @@ def delete( >>> client = CogniteClient() >>> client.workflows.triggers.delete("my_trigger") """ - self._warning.warn() self._post( url_path=self._RESOURCE_PATH + "/delete", json={"items": [{"externalId": external_id}]}, @@ -155,7 +140,6 @@ def get_triggers( >>> client = CogniteClient() >>> res = client.workflows.triggers.get_triggers() """ - self._warning.warn() return self._list( method="GET", url_path=self._RESOURCE_PATH, @@ -186,7 +170,6 @@ def get_trigger_run_history( >>> client = CogniteClient() >>> res = client.workflows.triggers.get_trigger_run_history("my_trigger") """ - self._warning.warn() return self._list( method="GET", url_path=self._RESOURCE_PATH + f"/{external_id}/history", diff --git a/cognite/client/_version.py b/cognite/client/_version.py index 4fa157e255..9e269245ee 100644 --- a/cognite/client/_version.py +++ b/cognite/client/_version.py @@ -1,4 +1,4 @@ from __future__ import annotations -__version__ = "7.60.4" +__version__ = "7.60.5" __api_subversion__ = "20230101" diff --git a/pyproject.toml b/pyproject.toml index 664f2f6a61..9a9d23974b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "cognite-sdk" -version = "7.60.4" +version = "7.60.5" description = "Cognite Python SDK" readme = "README.md" documentation = "https://cognite-sdk-python.readthedocs-hosted.com"