Skip to content

Commit e34378a

Browse files
authored
Merge pull request #593 from atlanhq/bump-to-release-6.0.2
Bump to release 6.0.2
2 parents 9c21d46 + 2ae0324 commit e34378a

File tree

5 files changed

+19
-7
lines changed

5 files changed

+19
-7
lines changed

HISTORY.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 6.0.2 (April 07, 2025)
2+
3+
### QOL Improvements
4+
5+
- Updated SDK generator templates to align with `Pyatlan v6` changes.
6+
- Added a delay after token refresh to avoid empty (`[]`) typedef responses.
7+
8+
### Bug Fixes
9+
10+
- Reset `has_retried` if the last retry wasn't a `401` to allow future token refresh attempts.
11+
112
## 6.0.1 (March 28, 2025)
213

314
### QOL Improvements

pyatlan/client/atlan.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,6 @@ def contracts(self) -> ContractClient:
354354
@property
355355
def atlan_tag_cache(self) -> AtlanTagCache:
356356
if self._atlan_tag_cache is None:
357-
print("yes... calling cache")
358357
AtlanClient.set_current_client(self)
359358
self._atlan_tag_cache = AtlanTagCache(client=self)
360359
return self._atlan_tag_cache

pyatlan/generator/templates/methods/attribute/badge.jinja2

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@
1313
["name", "cm_name", "cm_attribute", "badge_conditions"],
1414
[name, cm_name, cm_attribute, badge_conditions],
1515
)
16-
from pyatlan.cache.custom_metadata_cache import CustomMetadataCache
16+
from pyatlan.client.atlan import AtlanClient
1717

18-
cm_id = CustomMetadataCache.get_id_for_name(cm_name)
19-
cm_attr_id = CustomMetadataCache.get_attr_id_for_name(
18+
client = AtlanClient.get_current_client()
19+
cm_id = client.custom_metadata_cache.get_id_for_name(cm_name)
20+
cm_attr_id = client.custom_metadata_cache.get_attr_id_for_name(
2021
set_name=cm_name, attr_name=cm_attribute
2122
)
2223
return Badge.Attributes(

pyatlan/generator/templates/referenceable_methods.jinja2

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@
5959

6060
@property
6161
def atlan_tag_names(self) -> List[str]:
62-
from pyatlan.cache.atlan_tag_cache import AtlanTagCache
62+
from pyatlan.client.atlan import AtlanClient
6363
from pyatlan.model.constants import DELETED_
6464

6565
if self.classification_names:
6666
return [
67-
AtlanTagCache.get_name_for_id(tag_id) or DELETED_
67+
AtlanClient.get_current_client().atlan_tag_cache.get_name_for_id(tag_id)
68+
or DELETED_
6869
for tag_id in self.classification_names
6970
]
7071
return []

pyatlan/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6.0.1
1+
6.0.2

0 commit comments

Comments
 (0)