castor-extractor 0.20.5__py3-none-any.whl → 0.20.6__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 castor-extractor might be problematic. Click here for more details.
- CHANGELOG.md +4 -0
- Dockerfile +1 -1
- castor_extractor/visualization/tableau_revamp/client/client.py +13 -1
- castor_extractor/visualization/tableau_revamp/constants.py +2 -0
- {castor_extractor-0.20.5.dist-info → castor_extractor-0.20.6.dist-info}/METADATA +5 -1
- {castor_extractor-0.20.5.dist-info → castor_extractor-0.20.6.dist-info}/RECORD +9 -9
- {castor_extractor-0.20.5.dist-info → castor_extractor-0.20.6.dist-info}/LICENCE +0 -0
- {castor_extractor-0.20.5.dist-info → castor_extractor-0.20.6.dist-info}/WHEEL +0 -0
- {castor_extractor-0.20.5.dist-info → castor_extractor-0.20.6.dist-info}/entry_points.txt +0 -0
CHANGELOG.md
CHANGED
Dockerfile
CHANGED
|
@@ -4,7 +4,7 @@ import tableauserverclient as TSC # type: ignore
|
|
|
4
4
|
|
|
5
5
|
from ....utils import SerializedAsset
|
|
6
6
|
from ..assets import TABLEAU_PULSE_ASSETS, TableauRevampAsset
|
|
7
|
-
from ..constants import DEFAULT_TIMEOUT_SECONDS
|
|
7
|
+
from ..constants import CREDENTIALS_SITE_ID_KEY, DEFAULT_TIMEOUT_SECONDS
|
|
8
8
|
from .client_metadata_api import TableauClientMetadataApi
|
|
9
9
|
from .client_rest_api import TableauClientRestApi
|
|
10
10
|
from .client_tsc import TableauClientTSC
|
|
@@ -33,6 +33,15 @@ _REST_API_ASSETS = (
|
|
|
33
33
|
logging.getLogger("tableau.endpoint").setLevel(logging.WARNING)
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
def _add_site_id(workbooks: SerializedAsset, site_id: str) -> SerializedAsset:
|
|
37
|
+
"""
|
|
38
|
+
Add site_id from credentials: it's necessary to compute workbook's url
|
|
39
|
+
"""
|
|
40
|
+
for workbook in workbooks:
|
|
41
|
+
workbook[CREDENTIALS_SITE_ID_KEY] = site_id
|
|
42
|
+
return workbooks
|
|
43
|
+
|
|
44
|
+
|
|
36
45
|
def _merge_datasources(
|
|
37
46
|
datasources: SerializedAsset,
|
|
38
47
|
tsc_datasources: SerializedAsset,
|
|
@@ -182,7 +191,10 @@ class TableauRevampClient:
|
|
|
182
191
|
def _fetch_workbooks(self) -> SerializedAsset:
|
|
183
192
|
asset = TableauRevampAsset.WORKBOOK
|
|
184
193
|
|
|
194
|
+
site_id = self._credentials.site_id
|
|
185
195
|
workbooks = self._client_metadata.fetch(asset)
|
|
196
|
+
workbooks = _add_site_id(workbooks, site_id)
|
|
197
|
+
|
|
186
198
|
workbook_projects = self._client_tsc.fetch(asset)
|
|
187
199
|
|
|
188
200
|
return _merge_workbooks(workbooks, workbook_projects)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: castor-extractor
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.6
|
|
4
4
|
Summary: Extract your metadata assets.
|
|
5
5
|
Home-page: https://www.castordoc.com/
|
|
6
6
|
License: EULA
|
|
@@ -208,6 +208,10 @@ For any questions or bug report, contact us at [support@castordoc.com](mailto:su
|
|
|
208
208
|
|
|
209
209
|
# Changelog
|
|
210
210
|
|
|
211
|
+
## 0.20.6 - 2024-10-15
|
|
212
|
+
|
|
213
|
+
* Tableau: include `site_id` in **workbooks** to build url
|
|
214
|
+
|
|
211
215
|
## 0.20.5 - 2024-10-09
|
|
212
216
|
|
|
213
217
|
* Redshift: enable extraction from a Redshift Serverless instance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
CHANGELOG.md,sha256=
|
|
2
|
-
Dockerfile,sha256=
|
|
1
|
+
CHANGELOG.md,sha256=Q6RN08q5JpWqwJjuR6cSm2k9vyeHbaNuufiVlS07vDo,14080
|
|
2
|
+
Dockerfile,sha256=xQ05-CFfGShT3oUqaiumaldwA288dj9Yb_pxofQpufg,301
|
|
3
3
|
DockerfileUsage.md,sha256=2hkJQF-5JuuzfPZ7IOxgM6QgIQW7l-9oRMFVwyXC4gE,998
|
|
4
4
|
LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
5
5
|
README.md,sha256=uF6PXm9ocPITlKVSh9afTakHmpLx3TvawLf-CbMP3wM,3578
|
|
@@ -274,7 +274,7 @@ castor_extractor/visualization/tableau/usage.py,sha256=LlFwlbEr-EnYUJjKZha99CRCR
|
|
|
274
274
|
castor_extractor/visualization/tableau_revamp/__init__.py,sha256=a3DGjQhaz17gBqW-E84TAgupKbqLC40y5Ajo1yn-ot4,156
|
|
275
275
|
castor_extractor/visualization/tableau_revamp/assets.py,sha256=8sJsK6Qixao6xVmVaO1usvs16SjNub9sIx7o-adYV14,659
|
|
276
276
|
castor_extractor/visualization/tableau_revamp/client/__init__.py,sha256=wmS9uLtUiqNYVloi0-DgD8d2qzu3RVZEAtWiaDp6G_M,90
|
|
277
|
-
castor_extractor/visualization/tableau_revamp/client/client.py,sha256=
|
|
277
|
+
castor_extractor/visualization/tableau_revamp/client/client.py,sha256=oaxvPsCccAcTWooXmDQNcJ6RFUVsCUzl6HxaHIwh5kU,7564
|
|
278
278
|
castor_extractor/visualization/tableau_revamp/client/client_metadata_api.py,sha256=yNnGR3Tk32TUmaDejaz5fkw2p9DtmMeCv5rsZNOHUfY,3047
|
|
279
279
|
castor_extractor/visualization/tableau_revamp/client/client_rest_api.py,sha256=0g8AddrhzirRCUWR2jrudPR02mk4Of5YilWth7zJO-g,4016
|
|
280
280
|
castor_extractor/visualization/tableau_revamp/client/client_tsc.py,sha256=BBwIOqK2zU66udFRmLGmB_3J1ILGhVOY5Hq4nmsonF0,1853
|
|
@@ -282,7 +282,7 @@ castor_extractor/visualization/tableau_revamp/client/credentials.py,sha256=qA-Ea
|
|
|
282
282
|
castor_extractor/visualization/tableau_revamp/client/errors.py,sha256=dTe1shqmWmAXpDpCz-E24m8dGYjt6rvIGV9qQb4jnvI,150
|
|
283
283
|
castor_extractor/visualization/tableau_revamp/client/gql_queries.py,sha256=-V3ToD5Gi7nmfVB2OxTOZw8dcOiF7_ciSWjjW2UdvvI,2270
|
|
284
284
|
castor_extractor/visualization/tableau_revamp/client/rest_fields.py,sha256=gx39X1zMfRVpjmFbgvbgbvtlE0QwxOtk8rZFsIqeGRI,978
|
|
285
|
-
castor_extractor/visualization/tableau_revamp/constants.py,sha256=
|
|
285
|
+
castor_extractor/visualization/tableau_revamp/constants.py,sha256=lHGB50FgVNO2nXeIhkvQKivD8ZFBIjDrflgD5cTXKJw,104
|
|
286
286
|
castor_extractor/visualization/tableau_revamp/extract.py,sha256=BPy38rFjGG6Nh1eDFeCckE4RHaO-bWW2uhXh7wm8mKk,1368
|
|
287
287
|
castor_extractor/visualization/thoughtspot/__init__.py,sha256=NhTGUk5Kdt54oCjHYoAt0cLBmVLys5lFYiRANL6wCmI,150
|
|
288
288
|
castor_extractor/visualization/thoughtspot/assets.py,sha256=lPRvXk0PKybgLv1AcDVxg-ssf4XLTs0biRqLrqC2TzU,196
|
|
@@ -415,8 +415,8 @@ castor_extractor/warehouse/sqlserver/queries/table.sql,sha256=kbBQP-TdG5px1IVgyx
|
|
|
415
415
|
castor_extractor/warehouse/sqlserver/queries/user.sql,sha256=gOrZsMVypusR2dc4vwVs4E1a-CliRsr_UjnD2EbXs-A,94
|
|
416
416
|
castor_extractor/warehouse/sqlserver/query.py,sha256=j_d5-HMnzBouwGfywVZMRSSwbXzPvzDWlFCZmvxcoGQ,539
|
|
417
417
|
castor_extractor/warehouse/synapse/queries/column.sql,sha256=lNcFoIW3Y0PFOqoOzJEXmPvZvfAsY0AP63Mu2LuPzPo,1351
|
|
418
|
-
castor_extractor-0.20.
|
|
419
|
-
castor_extractor-0.20.
|
|
420
|
-
castor_extractor-0.20.
|
|
421
|
-
castor_extractor-0.20.
|
|
422
|
-
castor_extractor-0.20.
|
|
418
|
+
castor_extractor-0.20.6.dist-info/LICENCE,sha256=sL-IGa4hweyya1HgzMskrRdybbIa2cktzxb5qmUgDg8,8254
|
|
419
|
+
castor_extractor-0.20.6.dist-info/METADATA,sha256=Vgkknt_--nGtd3FcSAsG5JxA6zvBVlc-lwSOqlXoeTE,21298
|
|
420
|
+
castor_extractor-0.20.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
421
|
+
castor_extractor-0.20.6.dist-info/entry_points.txt,sha256=IVGy_oM8VjzADMAxzmiNJTYYidTCsI98MpO_mkXjkqE,1573
|
|
422
|
+
castor_extractor-0.20.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|