Skip to content
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

Merged
merged 7 commits into from
Jun 14, 2023
Merged

Fix 10689: Added Powerbi Datamodels #11923

merged 7 commits into from
Jun 14, 2023

Conversation

OnkarVO7
Copy link
Contributor

@OnkarVO7 OnkarVO7 commented Jun 7, 2023

Describe your changes:

Fixes #10689

Type of change:

  • Bug fix
  • Improvement
  • New feature
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

@OnkarVO7 OnkarVO7 requested a review from a team as a code owner June 7, 2023 15:35
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 15:35 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 15:35 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 15:35 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 15:35 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 15:35 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 15:35 — with GitHub Actions Inactive
@github-actions github-actions bot added backend documentation Improvements or additions to documentation Ingestion safe to test Add this label to run secure Github workflows on PRs labels Jun 7, 2023
@cypress
Copy link

cypress bot commented Jun 7, 2023

Passing run #24004 ↗︎

0 258 54 0 Flakiness 0

Details:

Review comments addressed
Project: openmetadata Commit: 685da49964
Status: Passed Duration: 28:23 💡
Started: Jun 14, 2023 7:16 AM Ended: Jun 14, 2023 7:44 AM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 18:06 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 18:06 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 18:06 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 18:06 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 18:06 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 7, 2023 18:06 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 13, 2023 06:46 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 13, 2023 06:46 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 13, 2023 06:46 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 13, 2023 06:46 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 13, 2023 06:46 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 13, 2023 06:46 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 13, 2023 06:46 — with GitHub Actions Inactive
class LineageEnum(Enum):
TABLE = "table"
DASHBOARD = "dashboard"
DASHBOARDDATAMODEL = "dashboardDataModel"
Copy link
Collaborator

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,
Copy link
Collaborator

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?

Copy link
Contributor Author

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

@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 temporarily deployed to test June 14, 2023 06:54 — with GitHub Actions Inactive
@OnkarVO7 OnkarVO7 requested a review from pmbrull June 14, 2023 06:57
@sonarqubecloud
Copy link

[open-metadata-ingestion] SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.5% 0.5% Coverage
0.0% 0.0% Duplication

@sonarqubecloud
Copy link

[OpenMetadata-Platform] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@ulixius9 ulixius9 merged commit d409c33 into main Jun 14, 2023
@ulixius9 ulixius9 deleted the powerbi_datamodels branch June 14, 2023 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend documentation Improvements or additions to documentation Ingestion safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Ingestion] Power BI Datasets and SSAS / AAS
3 participants