Skip to content

Commit 1a13914

Browse files
authored
Merge pull request #671 from atlanhq/bump-to-release-7.1.0
[release] Bump to release `7.1.0`
2 parents 6b9c4f0 + 98cc1b4 commit 1a13914

File tree

3 files changed

+53
-2
lines changed

3 files changed

+53
-2
lines changed

HISTORY.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
1+
## 7.1.0 (June 27, 2025)
2+
3+
### New Features
4+
5+
- Added support for managing asset-to-asset relationships that include attributes. Atlan now allows setting attributes on specific relationship types, providing richer metadata and contextual information for how assets are connected.
6+
7+
- These relationships can now carry attributes, similar to how assets themselves have attributes. The SDK has been enhanced to deserialize, access, and serialize these relationship-level attributes correctly.
8+
9+
**Supported relationship types:**
10+
11+
1. `AtlasGlossaryAntonym`
12+
2. `AtlasGlossarySynonym`
13+
3. `AtlasGlossaryReplacementTerm`
14+
4. `AtlasGlossarySemanticAssignment`
15+
5. `AtlasGlossaryPreferredTerm`
16+
6. `AtlasGlossaryRelatedTerm`
17+
7. `AtlasGlossaryTermCategorization`
18+
8. `AtlasGlossaryTranslation`
19+
9. `AtlasGlossaryValidValue`
20+
10. `AtlasGlossaryIsARelationship`
21+
11. `CustomParentEntityCustomChildEntities`
22+
12. `CustomRelatedFromEntitiesCustomRelatedToEntities`
23+
13. `UserDefRelationship`
24+
25+
26+
### Breaking Changes
27+
28+
`Referenceable.relationship_attributes` field type updated:
29+
30+
This field now supports:
31+
32+
```python
33+
Optional[Union[RelationshipAttributes, Dict[str, Any]]]
34+
```
35+
36+
- If `typeName` is present in the relationship attributes, the SDK will attempt to deserialize using the correct subclass of `RelationshipAttributes`.
37+
- If `typeName` is absent, it will fall back to a raw `Dict[str, Any]`.
38+
39+
**Before:**
40+
41+
```python
42+
Optional[Dict[str, Any]]
43+
```
44+
45+
- This change improves structure and typing for known relationship models while maintaining backward compatibility via fallback.
46+
47+
### Bug Fixes
48+
49+
- Fixed automatic `401` token refresh by using `ContextVar` for `AtlanClient._401_has_retried` (bool flag) to avoid race conditions when executing SDK code in multithreading environments.
50+
51+
152
## 7.0.1 (June 16, 2025)
253

354
### Bug Fixes

pyatlan/client/atlan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ class AtlanClient(BaseSettings):
143143
connect_timeout: float = 30.0 # 30 secs
144144
read_timeout: float = 900.0 # 15 mins
145145
retry: Retry = DEFAULT_RETRY
146-
_401_has_retried: bool = ContextVar("_401_has_retried", default=False)
146+
_401_has_retried: ContextVar[bool] = ContextVar("_401_has_retried", default=False)
147147
_session: requests.Session = PrivateAttr(default_factory=get_session)
148148
_request_params: dict = PrivateAttr()
149149
_user_id: Optional[str] = PrivateAttr(default=None)

pyatlan/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.1
1+
7.1.0

0 commit comments

Comments
 (0)