Skip to content

Commit

Permalink
fix: added missing scope for TemplateAcl (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino authored Nov 15, 2023
1 parent 32f3a89 commit d5286ae
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 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.0.2] - 2023-11-15
### Fixed
- Missing Scope `DataSet` for `TemplateGroupAcl` and `TemplateInstancesAcl`.

## [7.0.1] - 2023-11-14
### Fixed
- Data modeling APIs now work in WASM-like environments missing the threading module.
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.0.1"
__version__ = "7.0.2"
__api_subversion__ = "V20220125"
2 changes: 2 additions & 0 deletions cognite/client/data_classes/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,7 @@ class Action(Capability.Action):

class Scope:
All = AllScope
DataSet = DataSetScope


@dataclass
Expand All @@ -967,6 +968,7 @@ class Action(Capability.Action):

class Scope:
All = AllScope
DataSet = DataSetScope


@dataclass
Expand Down
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.0.1"
version = "7.0.2"
description = "Cognite Python SDK"
readme = "README.md"
documentation = "https://cognite-sdk-python.readthedocs-hosted.com"
Expand Down
2 changes: 2 additions & 0 deletions tests/tests_unit/test_data_classes/test_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def all_acls():
{"sequencesAcl": {"actions": ["WRITE"], "scope": {"datasetScope": {"ids": ["2332579", "372"]}}}},
{"sessionsAcl": {"actions": ["LIST", "CREATE", "DELETE"], "scope": {"all": {}}}},
{"templateGroupsAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
{"templateGroupsAcl": {"actions": ["READ", "WRITE"], "scope": {"datasetScope": {"ids": ["1", "42"]}}}},
{"templateInstancesAcl": {"actions": ["READ", "WRITE"], "scope": {"datasetScope": {"ids": ["4", "365"]}}}},
{"templateInstancesAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
{"threedAcl": {"actions": ["READ", "CREATE", "UPDATE", "DELETE"], "scope": {"all": {}}}},
{"timeSeriesAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
Expand Down

0 comments on commit d5286ae

Please sign in to comment.