-
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
feat(ingestion/powerbi): ingest powerbi app #11629
feat(ingestion/powerbi): ingest powerbi app #11629
Conversation
Strange error not strictly linked to my PR, I suppose: |
metadata-ingestion/src/datahub/ingestion/source/powerbi/rest_api_wrapper/data_resolver.py
Outdated
Show resolved
Hide resolved
It will be fixed now |
…datahub-fork into ing-732-app-ingestion
metadata-ingestion/src/datahub/ingestion/source/powerbi/config.py
Outdated
Show resolved
Hide resolved
title="App Ingestion Is Disabled", | ||
message="You are missing workspace app metadata. Please set flag `extract_app` to `true` in recipe to ingest workspace app.", | ||
context=f"workspace-name={workspace.name}, app-name = {workspace.app.name}", | ||
) |
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.
do we need a return here? when would .app
be populated if app ingestion is disabled?
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.
Added return. .app will be populated on next run after setting extract_app
to true
metadata-ingestion/src/datahub/ingestion/source/powerbi/powerbi.py
Outdated
Show resolved
Hide resolved
] | ||
) | ||
|
||
if edges: |
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 make these variable names more clear - edges = dashboards within the app?
also dashboard_urn being the app's urn is super confusing - let's make this more clear
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
metadata-ingestion/src/datahub/ingestion/source/powerbi/powerbi.py
Outdated
Show resolved
Hide resolved
app_id: str, | ||
) -> Optional[Dict]: | ||
# [Date: 2024/10/18] As per API doc, the service principal approach is not supported for regular API | ||
# https://learn.microsoft.com/en-us/rest/api/power-bi/apps/get-app |
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.
let's add this to the doc on limitations
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.
It is not going to impact user experience, as we are getting app from AdminApiResolver and I have updated the assets list in doc MD file.
metadata-ingestion/src/datahub/ingestion/source/powerbi/rest_api_wrapper/powerbi_api.py
Outdated
Show resolved
Hide resolved
metadata-ingestion/src/datahub/ingestion/source/powerbi/rest_api_wrapper/powerbi_api.py
Outdated
Show resolved
Hide resolved
return | ||
|
||
# Map to find out which dashboards belongs to the App | ||
dashboard_map: Dict[str, Dict] = { |
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.
improve variable naming here
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
@@ -221,6 +229,7 @@ def get_dashboards(self, workspace: Workspace) -> List[Dashboard]: | |||
tiles=[], | |||
users=[], | |||
tags=[], | |||
app_reference=None, # It is getting set later from scan_result |
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.
what do we use app_reference for?
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.
Removed it, not in used
respond |
No description provided.