dbt-cube-sync 0.1.0a9__py3-none-any.whl → 0.1.0a10__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 dbt-cube-sync might be problematic. Click here for more details.

@@ -60,13 +60,19 @@ class SupersetConnector(BaseConnector):
60
60
  """Authenticate and get JWT token"""
61
61
  login_url = f"{self.base_url}/api/v1/security/login"
62
62
  payload = {
63
- "username": self.config['username'],
64
63
  "password": self.config['password'],
65
64
  "provider": "db",
66
- "refresh": True
65
+ "refresh": "true",
66
+ "username": self.config['username']
67
67
  }
68
-
68
+
69
69
  response = self.session.post(login_url, json=payload)
70
+ if response.status_code == 401:
71
+ raise Exception(
72
+ f"Superset authentication failed (401). "
73
+ f"Check username/password and ensure provider='{payload['provider']}' is correct. "
74
+ f"Response: {response.text}"
75
+ )
70
76
  response.raise_for_status()
71
77
 
72
78
  data = response.json()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbt-cube-sync
3
- Version: 0.1.0a9
3
+ Version: 0.1.0a10
4
4
  Summary: Synchronization tool for dbt models to Cube.js schemas and BI tools
5
5
  Author: Ponder
6
6
  Requires-Python: >=3.9,<4.0
@@ -4,7 +4,7 @@ dbt_cube_sync/config.py,sha256=qhGE7CxTmh0RhPizgd3x3Yj-3L2LoC00UQIDT0q9FlQ,3858
4
4
  dbt_cube_sync/connectors/__init__.py,sha256=NG6tYZ3CYD5bG_MfNLZrUM8YoBEKArG8-AOmJ8pwvQI,52
5
5
  dbt_cube_sync/connectors/base.py,sha256=JLzerxJdt34z0kWuyieL6UQhf5_dUYPGmwkiRWBuSPY,2802
6
6
  dbt_cube_sync/connectors/powerbi.py,sha256=2Y8fTfh_6Q_Myma1ymipPh1U3HsfQKcktVequXXnIXI,1275
7
- dbt_cube_sync/connectors/superset.py,sha256=5YEqadVZRPFAJkgvhqkse3JuGJkQHfyvT88jy52ow_0,21429
7
+ dbt_cube_sync/connectors/superset.py,sha256=D_pWTN0F84mUosnsm-NG_v9IlVE2dviIDh08WxHEOIA,21709
8
8
  dbt_cube_sync/connectors/tableau.py,sha256=jKve1zErzTbgPOtmPB92ZwZl4I6uEySedM51JiwlGrE,1261
9
9
  dbt_cube_sync/core/__init__.py,sha256=kgsawtU5dqEvnHz6dU8qwJbH3rtIV7QlK2MhtYVDCaY,46
10
10
  dbt_cube_sync/core/cube_generator.py,sha256=DtmaA_dtWmBVJnSWHVoQi-3KEsRc0axHZpCUEcKeYAk,11061
@@ -12,7 +12,7 @@ dbt_cube_sync/core/db_inspector.py,sha256=V_cd12FBXj-1gB2JZeYmkQluUO-UYufy_tvfYo
12
12
  dbt_cube_sync/core/dbt_parser.py,sha256=KbhDoB0ULP6JDUPZPDVbm9yCtRKrW17ptGoJvVLtueY,12763
13
13
  dbt_cube_sync/core/models.py,sha256=2s5iZ9MEBGfSzkB4HJB5vG0mZqNXNJSfAD3Byw1IVe4,3203
14
14
  dbt_cube_sync/core/state_manager.py,sha256=7uXJtlZBIWj6s6XgAhNlP6UHdfhH0y461iyQlfidqGI,7233
15
- dbt_cube_sync-0.1.0a9.dist-info/METADATA,sha256=2iYptOSRebNMXIYynxVXXiqhuL7j0D8tv1DOUpDEI7s,10680
16
- dbt_cube_sync-0.1.0a9.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
17
- dbt_cube_sync-0.1.0a9.dist-info/entry_points.txt,sha256=iEAB_nZ1AoSeFwSHPY2tr02xmTHLVFKp5CJeFh0AfCw,56
18
- dbt_cube_sync-0.1.0a9.dist-info/RECORD,,
15
+ dbt_cube_sync-0.1.0a10.dist-info/METADATA,sha256=Foy8KI7-ILdZwTvejfjukArtnGNJJg85vwIlQoMS31w,10681
16
+ dbt_cube_sync-0.1.0a10.dist-info/WHEEL,sha256=3ny-bZhpXrU6vSQ1UPG34FoxZBp3lVcvK0LkgUz6VLk,88
17
+ dbt_cube_sync-0.1.0a10.dist-info/entry_points.txt,sha256=iEAB_nZ1AoSeFwSHPY2tr02xmTHLVFKp5CJeFh0AfCw,56
18
+ dbt_cube_sync-0.1.0a10.dist-info/RECORD,,