-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ingestion/metabase): Fetch Dashboards through Collections #9631
fix(ingestion/metabase): Fetch Dashboards through Collections #9631
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code mostly looks good, just had a few minor comments
@@ -14,7 +14,8 @@ | |||
JSON_RESPONSE_MAP = { | |||
"http://localhost:3000/api/session": "session.json", | |||
"http://localhost:3000/api/user/current": "user.json", | |||
"http://localhost:3000/api/dashboard": "dashboard.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we delete the dashboard.json
file? or is that still used elsewhere in the tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I struggled to run these tests, actually. I did set my machine to java 8 but couldn't run the gradlew successfully.
I'll put some more thought to it soon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hsheth2 I'm using my GH Actions to test it https://github.com/7onn/datahub/actions
But I couldn't find how to run these python tests nor run the gradlew from this mac.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've actually migrated to java 17 now
Have you taken a look at these docs https://datahubproject.io/docs/next/metadata-ingestion/developing/
Let me know if you run into issues with it - we want developing on ingestion, including tests, to be a smooth experience
Co-authored-by: Harshal Sheth <[email protected]>
.github/workflows/build-and-test.yml
Outdated
@@ -3,6 +3,7 @@ on: | |||
push: | |||
branches: | |||
- master | |||
- 7onn/update-metabase-dashboard-url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 7onn/update-metabase-dashboard-url |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mainly just need to do this before merging the PR in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done by: d9022bc
@@ -14,7 +14,8 @@ | |||
JSON_RESPONSE_MAP = { | |||
"http://localhost:3000/api/session": "session.json", | |||
"http://localhost:3000/api/user/current": "user.json", | |||
"http://localhost:3000/api/dashboard": "dashboard.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've actually migrated to java 17 now
Have you taken a look at these docs https://datahubproject.io/docs/next/metadata-ingestion/developing/
Let me know if you run into issues with it - we want developing on ingestion, including tests, to be a smooth experience
"charts": [ | ||
"urn:li:chart:(metabase,1)", | ||
"urn:li:chart:(metabase,2)" | ||
"charts": [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like the relationships between dashboards and charts disappeared? Given that it's an important part of the integration, can we update the code / test data to make sure we're testing the dashboard -> chart relationship generation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…datahub into 7onn/update-metabase-dashboard-url
The endpoint /api/dashboard was removed, which caused DataHub Metabase ingestion to break. Then, Metabase re-added it to fix compatibility issues. But they still are going to remove it in the next release. This PR updates the Metabase's Ingestion to follow the Metabase's recommended method:
Related issues:
Notes
I didn't succeed on running the integration tests. Maybe the CI can run them for me if approved.
Checklist