-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 10689: Added Powerbi Datamodels #11923
Conversation
Passing run #24004 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
class LineageEnum(Enum): | ||
TABLE = "table" | ||
DASHBOARD = "dashboard" | ||
DASHBOARDDATAMODEL = "dashboardDataModel" |
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.
nit - I'd rename it to something a bit more readable: DASHBOARD_DATAMODEL
type="table" | ||
if isinstance(from_entity, Table) | ||
else "dashboardDataModel", | ||
type=LineageEnum[from_entity.__class__.__name__.upper()].value, |
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 think this looks like a bit strange use of an Enum. If what we want is to use to get the type
from the entity class name, we could have a clearer intent if we use a dictionary, WDYT?
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.
Ok I'll use a dictionary here
ingestion/src/metadata/ingestion/source/dashboard/powerbi/metadata.py
Outdated
Show resolved
Hide resolved
[open-metadata-ingestion] SonarCloud Quality Gate failed. |
[OpenMetadata-Platform] Kudos, SonarCloud Quality Gate passed! |
Describe your changes:
Fixes #10689
Type of change:
Checklist:
Fixes <issue-number>: <short explanation>