Skip to content

Commit

Permalink
Remove data workflows triggers beta notice (#1933)
Browse files Browse the repository at this point in the history
Marking PySDK and API spec as GA.
  • Loading branch information
VerstraeteBert authored Sep 17, 2024
1 parent f169613 commit b79f4b6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down
17 changes: 0 additions & 17 deletions cognite/client/_api/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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
)
Expand Down Expand Up @@ -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}]},
Expand All @@ -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,
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion cognite/client/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from __future__ import annotations

__version__ = "7.60.4"
__version__ = "7.60.5"
__api_subversion__ = "20230101"
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit b79f4b6

Please sign in to comment.