-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ingestion/metabase): Fetch Dashboards through Collections (#9631)
Co-authored-by: Harshal Sheth <[email protected]>
- Loading branch information
Showing
9 changed files
with
901 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,20 +191,73 @@ | |
"description": "", | ||
"charts": [ | ||
"urn:li:chart:(metabase,1)", | ||
"urn:li:chart:(metabase,2)" | ||
"urn:li:chart:(metabase,2)", | ||
"urn:li:chart:(metabase,3)" | ||
], | ||
"datasets": [], | ||
"lastModified": { | ||
"created": { | ||
"time": 1639417721742, | ||
"time": 1705398694904, | ||
"actor": "urn:li:corpuser:[email protected]" | ||
}, | ||
"lastModified": { | ||
"time": 1639417721742, | ||
"time": 1705398694904, | ||
"actor": "urn:li:corpuser:[email protected]" | ||
} | ||
}, | ||
"dashboardUrl": "http://localhost:3000/dashboard/1" | ||
"dashboardUrl": "http://localhost:3000/dashboard/10" | ||
} | ||
}, | ||
{ | ||
"com.linkedin.pegasus2avro.common.Ownership": { | ||
"owners": [ | ||
{ | ||
"owner": "urn:li:corpuser:[email protected]", | ||
"type": "DATAOWNER" | ||
} | ||
], | ||
"lastModified": { | ||
"time": 0, | ||
"actor": "urn:li:corpuser:unknown" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"systemMetadata": { | ||
"lastObserved": 1636614000000, | ||
"runId": "metabase-test", | ||
"lastRunId": "no-run-id-provided" | ||
} | ||
}, | ||
{ | ||
"proposedSnapshot": { | ||
"com.linkedin.pegasus2avro.metadata.snapshot.DashboardSnapshot": { | ||
"urn": "urn:li:dashboard:(metabase,1)", | ||
"aspects": [ | ||
{ | ||
"com.linkedin.pegasus2avro.dashboard.DashboardInfo": { | ||
"customProperties": {}, | ||
"title": "Dashboard 1", | ||
"description": "", | ||
"charts": [ | ||
"urn:li:chart:(metabase,1)", | ||
"urn:li:chart:(metabase,2)", | ||
"urn:li:chart:(metabase,3)" | ||
], | ||
"datasets": [], | ||
"lastModified": { | ||
"created": { | ||
"time": 1705398694904, | ||
"actor": "urn:li:corpuser:[email protected]" | ||
}, | ||
"lastModified": { | ||
"time": 1705398694904, | ||
"actor": "urn:li:corpuser:[email protected]" | ||
} | ||
}, | ||
"dashboardUrl": "http://localhost:3000/dashboard/10" | ||
} | ||
}, | ||
{ | ||
|
1 change: 1 addition & 0 deletions
1
metadata-ingestion/tests/integration/metabase/setup/collection_dashboards.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"total": 1, "data": [{"description": null, "collection_position": null, "database_id": null, "name": "This is a test", "id": 10, "entity_id": "Q4gEaOmoBkfQX3_gXiH9g", "last-edit-info": {"id": 14, "last_name": "Doe", "first_name": "John", "email": "[email protected]", "timestamp": "2024-01-12T14:55:38.43304Z"}, "model": "dashboard"}], "models": ["dashboard"], "limit": null, "offset": null} |
1 change: 1 addition & 0 deletions
1
metadata-ingestion/tests/integration/metabase/setup/collections.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[{"authority_level": null, "can_write": true, "name": "Our analytics", "effective_ancestors": [], "effective_location": null, "parent_id": null, "id": "root", "is_personal": false}, {"authority_level": null, "description": null, "archived": false, "slug": "john_doe_personal_collection", "can_write": true, "name": "John Doe", "personal_owner_id": 14, "type": null, "id": 150, "entity_id": "kdLA_-CQy4F5lL15k8-TU", "location": "/", "namespace": null, "is_personal": true, "created_at": "2024-01-12T11:51:24.394309Z"}] |
40 changes: 0 additions & 40 deletions
40
metadata-ingestion/tests/integration/metabase/setup/dashboard.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.