dagster-omni 0.27.10__py3-none-any.whl → 0.27.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dagster-omni might be problematic. Click here for more details.
- dagster_omni/objects.py +4 -0
- dagster_omni/translation.py +4 -0
- dagster_omni/version.py +1 -1
- dagster_omni/workspace.py +1 -1
- {dagster_omni-0.27.10.dist-info → dagster_omni-0.27.12.dist-info}/METADATA +2 -2
- dagster_omni-0.27.12.dist-info/RECORD +12 -0
- dagster_omni-0.27.10.dist-info/RECORD +0 -12
- {dagster_omni-0.27.10.dist-info → dagster_omni-0.27.12.dist-info}/WHEEL +0 -0
- {dagster_omni-0.27.10.dist-info → dagster_omni-0.27.12.dist-info}/licenses/LICENSE +0 -0
- {dagster_omni-0.27.10.dist-info → dagster_omni-0.27.12.dist-info}/top_level.txt +0 -0
dagster_omni/objects.py
CHANGED
|
@@ -58,6 +58,8 @@ class OmniDocument:
|
|
|
58
58
|
folder: Optional[OmniFolder]
|
|
59
59
|
labels: list[OmniLabel]
|
|
60
60
|
queries: list["OmniQuery"]
|
|
61
|
+
favorites: Optional[int] = None
|
|
62
|
+
views: Optional[int] = None
|
|
61
63
|
|
|
62
64
|
@classmethod
|
|
63
65
|
def from_json(cls, data: dict[str, Any], queries: list["OmniQuery"]) -> "OmniDocument":
|
|
@@ -82,6 +84,8 @@ class OmniDocument:
|
|
|
82
84
|
folder=folder,
|
|
83
85
|
labels=labels,
|
|
84
86
|
queries=queries,
|
|
87
|
+
favorites=data.get("_count", {}).get("favorites", None),
|
|
88
|
+
views=data.get("_count", {}).get("views", None),
|
|
85
89
|
)
|
|
86
90
|
|
|
87
91
|
|
dagster_omni/translation.py
CHANGED
|
@@ -30,6 +30,8 @@ class OmniDocumentMetadataSet(NamespacedMetadataSet):
|
|
|
30
30
|
document_name: str
|
|
31
31
|
document_type: str
|
|
32
32
|
updated_at: TimestampMetadataValue
|
|
33
|
+
favorites: Optional[int] = None
|
|
34
|
+
views: Optional[int] = None
|
|
33
35
|
|
|
34
36
|
@classmethod
|
|
35
37
|
def from_document(cls, workspace: OmniWorkspace, document: OmniDocument) -> Self:
|
|
@@ -43,6 +45,8 @@ class OmniDocumentMetadataSet(NamespacedMetadataSet):
|
|
|
43
45
|
dateutil.parser.parse(document.updated_at).timestamp()
|
|
44
46
|
),
|
|
45
47
|
owner_name=document.owner.name,
|
|
48
|
+
favorites=document.favorites,
|
|
49
|
+
views=document.views,
|
|
46
50
|
)
|
|
47
51
|
|
|
48
52
|
@classmethod
|
dagster_omni/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.27.
|
|
1
|
+
__version__ = "0.27.12"
|
dagster_omni/workspace.py
CHANGED
|
@@ -96,7 +96,7 @@ class OmniWorkspace(dg.Resolvable, dg.Model):
|
|
|
96
96
|
|
|
97
97
|
async def _fetch_documents(self) -> list[OmniDocument]:
|
|
98
98
|
"""Fetch all documents from the Omni API with their queries embedded."""
|
|
99
|
-
base_params = {"pageSize": "100"}
|
|
99
|
+
base_params = {"pageSize": "100", "include": "_count"}
|
|
100
100
|
documents = []
|
|
101
101
|
next_cursor = None
|
|
102
102
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dagster_omni
|
|
3
|
-
Version: 0.27.
|
|
3
|
+
Version: 0.27.12
|
|
4
4
|
Summary: Package for integrating Omni with Dagster.
|
|
5
5
|
Home-page: https://github.com/dagster-io/dagster/tree/master/python_modules/libraries/dagster-omni
|
|
6
6
|
Author: Dagster Labs
|
|
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: dagster==1.11.
|
|
17
|
+
Requires-Dist: dagster==1.11.12
|
|
18
18
|
Requires-Dist: aiohttp
|
|
19
19
|
Dynamic: author
|
|
20
20
|
Dynamic: author-email
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
dagster_omni/__init__.py,sha256=6QUEBSqA3cRAb4kSWqkdvkUiKMbk0NY1YFdJPW0JEkQ,249
|
|
2
|
+
dagster_omni/component.py,sha256=5hvC2tKkr7W-ULy7cFJ2yjZ1pjRCfTDJUHZ857DICPQ,5347
|
|
3
|
+
dagster_omni/objects.py,sha256=4cknF4xIljTYYWYCOKe8Tkaled0_Gq9u9g8Ze_mYnyQ,4960
|
|
4
|
+
dagster_omni/py.typed,sha256=mDShSrm8qg9qjacQc2F-rI8ATllqP6EdgHuEYxuCXZ0,7
|
|
5
|
+
dagster_omni/translation.py,sha256=ExEc_WU7qbnJ5fpWUdK_TSGRJQ-a2H13apqwM1LvdaY,4820
|
|
6
|
+
dagster_omni/version.py,sha256=LsrV9vLeQGPkCzZUAe_cL-EObzt7m1nJHGhyU7GcAI0,24
|
|
7
|
+
dagster_omni/workspace.py,sha256=C2fjZIw64TEKWRtpzt6rRm5MSY4RKCXJW22ANJBjY-o,5893
|
|
8
|
+
dagster_omni-0.27.12.dist-info/licenses/LICENSE,sha256=lY5yc1KHX4HoXjlWnIPGcCAsnNney2rb8M8ccT6NzRQ,11347
|
|
9
|
+
dagster_omni-0.27.12.dist-info/METADATA,sha256=6SwKF6mAykdNEbBObmwF29OKWPbtRO_Rn30zzH6BfEk,883
|
|
10
|
+
dagster_omni-0.27.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
+
dagster_omni-0.27.12.dist-info/top_level.txt,sha256=FJO_1xyIWRN_nGhCDQPirG5NrEsB-wPR7eY5puEgJes,13
|
|
12
|
+
dagster_omni-0.27.12.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
dagster_omni/__init__.py,sha256=6QUEBSqA3cRAb4kSWqkdvkUiKMbk0NY1YFdJPW0JEkQ,249
|
|
2
|
-
dagster_omni/component.py,sha256=5hvC2tKkr7W-ULy7cFJ2yjZ1pjRCfTDJUHZ857DICPQ,5347
|
|
3
|
-
dagster_omni/objects.py,sha256=VLvgKvGxYNgYjMJzMXLXnU9_Uq2Z_g7JmDczuSy5_0Q,4762
|
|
4
|
-
dagster_omni/py.typed,sha256=mDShSrm8qg9qjacQc2F-rI8ATllqP6EdgHuEYxuCXZ0,7
|
|
5
|
-
dagster_omni/translation.py,sha256=Q1YLElQZ3PTzdhh5ZvwUTGTO9CJnU2xRGLV2j7P75eI,4676
|
|
6
|
-
dagster_omni/version.py,sha256=rD44SY2JykCovkEGCFrgvbnJS6r4RHYfL0pbhlXrG1c,24
|
|
7
|
-
dagster_omni/workspace.py,sha256=m3SRQmn1PcEwo3ObSeZJBYHsaYm7xXQJPVK-NKyaSN8,5872
|
|
8
|
-
dagster_omni-0.27.10.dist-info/licenses/LICENSE,sha256=lY5yc1KHX4HoXjlWnIPGcCAsnNney2rb8M8ccT6NzRQ,11347
|
|
9
|
-
dagster_omni-0.27.10.dist-info/METADATA,sha256=6k5eYFK5xYdanN9_OneBt-xM2dQ7ol7AqzyFAyK2BVc,883
|
|
10
|
-
dagster_omni-0.27.10.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
11
|
-
dagster_omni-0.27.10.dist-info/top_level.txt,sha256=FJO_1xyIWRN_nGhCDQPirG5NrEsB-wPR7eY5puEgJes,13
|
|
12
|
-
dagster_omni-0.27.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|