-
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
Merged
treff7es
merged 24 commits into
datahub-project:master
from
sid-acryl:ing-732-app-ingestion
Oct 29, 2024
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
7593a77
ingest app as dashboard
sid-acryl e7855f7
emit app
sid-acryl b776d68
Merge branch 'master' into ing-732-app-ingestion
sid-acryl e26845c
Merge branch 'master' into ing-732-app-ingestion
sid-acryl 2f7f715
import fix
sid-acryl 3eff956
import fix
sid-acryl acc8b59
removed cache
sid-acryl f7328a3
updated concept mapping
sid-acryl 3774d54
corrected urn id part
sid-acryl 66960af
resolve merge conflict
sid-acryl 202df81
test case for app ingest
sid-acryl 38ea56e
Merge branch 'master' into ing-732-app-ingestion
sid-acryl 4b2b18e
Merge branch 'master' into ing-732-app-ingestion
sid-acryl 6058df7
test case for app ingest
sid-acryl 0b66899
Merge branch 'ing-732-app-ingestion' of https://github.com/sid-acryl/…
sid-acryl f6df316
update test cases & doc
sid-acryl 67f80d0
Merge branch 'master' into ing-732-app-ingestion
treff7es 14197d0
Merge branch 'master' into ing-732-app-ingestion
sid-acryl 5f49a78
Update metadata-ingestion/src/datahub/ingestion/source/powerbi/config.py
sid-acryl a011257
address review comments
sid-acryl 7a8db26
Merge branch 'master' into ing-732-app-ingestion
sid-acryl 2c3c63e
Merge branch 'master' into ing-732-app-ingestion
sid-acryl b7b2238
Merge branch 'master' into ing-732-app-ingestion
sid-acryl a1e5d7a
Merge branch 'master' into ing-732-app-ingestion
sid-acryl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 | ||||
---|---|---|---|---|---|---|
|
@@ -37,6 +37,35 @@ class DatasetKey(ContainerKey): | |||||
dataset: str | ||||||
|
||||||
|
||||||
@dataclass | ||||||
class AppDashboard: | ||||||
id: str | ||||||
original_dashboard_id: str | ||||||
|
||||||
|
||||||
@dataclass | ||||||
class AppReport: | ||||||
id: str | ||||||
original_report_id: str | ||||||
|
||||||
|
||||||
@dataclass | ||||||
class App: | ||||||
id: str | ||||||
name: str | ||||||
description: Optional[str] | ||||||
last_update: Optional[str] | ||||||
dashboards: List["AppDashboard"] | ||||||
reports: List["AppReport"] | ||||||
|
||||||
def get_urn_part(self): | ||||||
return App.get_urn_part_by_id(self.id) | ||||||
|
||||||
@staticmethod | ||||||
def get_urn_part_by_id(id_: str) -> str: | ||||||
return f"apps.{id_}" | ||||||
|
||||||
|
||||||
@dataclass | ||||||
class Workspace: | ||||||
id: str | ||||||
|
@@ -49,6 +78,7 @@ class Workspace: | |||||
dashboard_endorsements: Dict[str, List[str]] | ||||||
scan_result: dict | ||||||
independent_datasets: List["PowerBIDataset"] | ||||||
app: Optional["App"] | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. does not need to be in quotes
Suggested change
|
||||||
|
||||||
def get_urn_part(self, workspace_id_as_urn_part: Optional[bool] = False) -> str: | ||||||
# shouldn't use workspace name, as they can be the same? | ||||||
|
@@ -235,7 +265,11 @@ class Report: | |||||
tags: List[str] | ||||||
|
||||||
def get_urn_part(self): | ||||||
return f"reports.{self.id}" | ||||||
return Report.get_urn_part_by_id(self.id) | ||||||
|
||||||
@staticmethod | ||||||
def get_urn_part_by_id(id_: str) -> str: | ||||||
return f"reports.{id_}" | ||||||
|
||||||
|
||||||
@dataclass | ||||||
|
@@ -273,7 +307,11 @@ class Dashboard: | |||||
webUrl: Optional[str] | ||||||
|
||||||
def get_urn_part(self): | ||||||
return f"dashboards.{self.id}" | ||||||
return Dashboard.get_urn_part_by_id(self.id) | ||||||
|
||||||
@staticmethod | ||||||
def get_urn_part_by_id(id_: str) -> str: | ||||||
return f"dashboards.{id_}" | ||||||
|
||||||
def __members(self): | ||||||
return (self.id,) | ||||||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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