Skip to content

Commit bcb1371

Browse files
authored
Merge pull request #471 from atlanhq/bump-to-release-4.0.0
Bump to release `4.0.0`
2 parents adbff64 + 6a7fb4f commit bcb1371

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed

HISTORY.md

+52
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
## 4.0.0 (January 7, 2025)
2+
3+
### New Features
4+
5+
- Added support for the `MongoDBCrawler` workflow package.
6+
- Added `creator()` and `updater()` methods for the `Procedure` asset.
7+
8+
### Bug Fixes
9+
10+
- Fixed `WorkflowClient.find_by_type()` method to use regular expressions.
11+
- Fixed `AttributeDef.cardinality` and `AttributeDef.type_name` handling for the new `multi_value_select` attribute option.
12+
- Fixed issues with the `AssetClient.append_terms()`, `remove_terms()`, and `replace_terms()` methods:
13+
- These methods now use `SaveSemantic.APPEND/REPLACE/REMOVE`, which is more optimized and faster than the previous approach that required full asset retrieval with relationships for updates.
14+
- Fixed `S3Object.create_with_prefix()` and `creator()` to ensure the `s3_bucket_name` field is correctly set.
15+
16+
### Breaking Changes
17+
18+
- The default behavior of `AssetClient.get_by_guid()` and `AssetClient.get_by_qualified_name()` has changed:
19+
20+
- By default, these methods now ignore relationships during asset retrieval (`ignore_relationships: bool = True`). Previously, this was set to `False`.
21+
- This change is intentional, aiming to prevent users from retrieving more information than necessary, thereby reducing the overall runtime of requests.
22+
- Users can now use the `attributes` and `related_attributes` optional parameters to specify the exact details required for each search result. This ensures precise and efficient searches. See:
23+
[Advanced Examples - Read](https://developer.atlan.com/snippets/advanced-examples/read).
24+
25+
```python
26+
# In this example, we are retrieving the "userDescription" attribute
27+
# for both the glossary and its terms (related attribute).
28+
# You can also retrieve other attributes as illustrated below:
29+
30+
glossary = client.asset.get_by_guid(
31+
guid="b4113341-251b-4adc-81fb-2420501c30e6",
32+
asset_type=AtlasGlossary,
33+
min_ext_info=False,
34+
ignore_relationships=True,
35+
attributes=[AtlasGlossary.USER_DESCRIPTION, AtlasGlossary.TERMS],
36+
related_attributes=[AtlasGlossaryTerm.USER_DESCRIPTION]
37+
)
38+
39+
glossary = client.asset.get_by_qualified_name(
40+
asset_type=AtlasGlossary,
41+
qualified_name="pXkf3RUvsIOIG8xnn0W3O",
42+
min_ext_info=False,
43+
ignore_relationships=True,
44+
attributes=[AtlasGlossary.USER_DESCRIPTION, AtlasGlossary.TERMS],
45+
related_attributes=[AtlasGlossaryTerm.USER_DESCRIPTION]
46+
)
47+
```
48+
49+
### QOL Improvements
50+
51+
- Added an [OSV](https://osv.dev) vulnerability-scan workflow job to GitHub Actions.
52+
153
## 3.1.2 (December 31, 2024)
254

355
### New features

pyatlan/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.2
1+
4.0.0

0 commit comments

Comments
 (0)