Skip to content

Commit

Permalink
Fix missing projects acl action (#1518)
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino authored Nov 21, 2023
1 parent 30090f9 commit 4912644
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 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.3.1] - 2023-11-21
### Fixed
- Replaced action `Write` with `Create` in `ProjectsAcl`, as `Write` is not a valid action and `Create` is the correct one.

## [7.3.0] - 2023-11-20
### Added
- Added Scope `DataSet` for `TimeSeriesSubscriptionsAcl`.
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.3.0"
__version__ = "7.3.1"
__api_subversion__ = "V20220125"
2 changes: 1 addition & 1 deletion cognite/client/data_classes/capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ class ProjectsAcl(Capability):

class Action(Capability.Action):
Read = "READ"
Write = "WRITE"
Create = "CREATE"
List = "LIST"
Update = "UPDATE"

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.3.0"
version = "7.3.1"
description = "Cognite Python SDK"
readme = "README.md"
documentation = "https://cognite-sdk-python.readthedocs-hosted.com"
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_unit/test_data_classes/test_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def all_acls():
{"monitoringTasksAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
{"notificationsAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
{"pipelinesAcl": {"actions": ["READ", "WRITE"], "scope": {"all": {}}}},
{"projectsAcl": {"actions": ["UPDATE", "LIST", "READ"], "scope": {"all": {}}}},
{"projectsAcl": {"actions": ["UPDATE", "LIST", "READ", "CREATE"], "scope": {"all": {}}}},
{"rawAcl": {"actions": ["READ", "WRITE", "LIST"], "scope": {"all": {}}}},
{
"rawAcl": {
Expand Down

0 comments on commit 4912644

Please sign in to comment.