Skip to content

Commit 7463d13

Browse files
authored
Merge pull request #36 from atlanhq/fix_dsl
Corrected issue with from, size and track_total_hits in DSL object no…
2 parents 17c5b63 + 34c5fab commit 7463d13

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

pyatlan/HISTORY.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.0.20 (Apr 5, 2023)
2+
3+
* Corrected issue with from, size and track_total_hits in DSL object not being sent to server if the defaults weren't changed
4+
15
## 0.0.19 (Mar 30, 2023)
26

37
* Renamed environment variable used to specify the Atlan URL from ATLAN_HOST to ATLAN_BASE_URL

pyatlan/model/search.py

+4
Original file line numberDiff line numberDiff line change
@@ -1735,6 +1735,10 @@ class DSL(AtlanObject):
17351735
class Config:
17361736
json_encoders = {Query: lambda v: v.to_dict(), SortItem: lambda v: v.to_dict()}
17371737

1738+
def __init__(__pydantic_self__, **data: Any) -> None:
1739+
super().__init__(**data)
1740+
__pydantic_self__.__fields_set__.update(["from_", "size", "track_total_hits"])
1741+
17381742
@validator("query", always=True)
17391743
def validate_query(cls, v, values):
17401744
if not v and ("post_filter" not in values or not values["post_filter"]):

pyatlan/version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.19
1+
0.0.20

0 commit comments

Comments
 (0)