Skip to content

Commit

Permalink
Retry context diagram endpoints (#1990)
Browse files Browse the repository at this point in the history
  • Loading branch information
doctrino authored Oct 26, 2024
1 parent b5213d4 commit 9cb61f8
Show file tree
Hide file tree
Showing 5 changed files with 12 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.63.11] - 2024-10-26
### Fixed
- The `/context/diagram/` endpoints are now retried on 5xx and 429 errors.

## [7.63.10] - 2024-10-22
### Fixed
- The Not() filter now only accepts a single filter (and no longer silently ignores the rest).
Expand Down
1 change: 1 addition & 0 deletions cognite/client/_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class APIClient:
"workflows/.*",
"hostedextractors/.*",
"postgresgateway/.*",
"context/diagram/.*",
)
)
]
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.63.10"
__version__ = "7.63.11"
__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.63.10"
version = "7.63.11"
description = "Cognite Python SDK"
readme = "README.md"
documentation = "https://cognite-sdk-python.readthedocs-hosted.com"
Expand Down
5 changes: 5 additions & 0 deletions tests/tests_unit/test_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1361,6 +1361,11 @@ def test_is_retryable_resource_api_endpoints(self, api_client_with_token, method
("POST", "https://api.cognitedata.com/api/v1/projects/bla/raw/dbs/db/tables/t", False),
("POST", "https://api.cognitedata.com/api/v1/projects/bla/raw/dbs/db/tables/t/rows", True),
("POST", "https://api.cognitedata.com/api/v1/projects/bla/raw/dbs/db/tables/t/rows/delete", True),
# Engineering diagrams
("POST", "https://api.cognitedata.com/api/v1/projects/bla/context/diagram/convert", True),
("POST", "https://api.cognitedata.com/api/v1/projects/bla/context/diagram/detect", True),
("GET", "https://api.cognitedata.com/api/v1/projects/bla/context/diagram/convert/123", True),
("GET", "https://api.cognitedata.com/api/v1/projects/bla/context/diagram/detect/456", True),
]
),
)
Expand Down

0 comments on commit 9cb61f8

Please sign in to comment.