-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Power BI report dashboard owner editor metadata (#602)
* Add owner editor metadata for PBI dashboard * bump version * Improve test coverage * Bump version * Bump versions * Address reviewer comments * Address reviewer comments
- Loading branch information
Showing
7 changed files
with
110 additions
and
25 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "metaphor-connectors" | ||
version = "0.12.50" | ||
version = "0.12.51" | ||
license = "Apache-2.0" | ||
description = "A collection of Python-based 'connectors' that extract metadata from various sources to ingest into the Metaphor app." | ||
authors = ["Metaphor <[email protected]>"] | ||
|
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 |
---|---|---|
|
@@ -264,7 +264,15 @@ | |
"workspace": { | ||
"id": "workspace-1", | ||
"name": "Workspace" | ||
} | ||
}, | ||
"createdBy": "[email protected]", | ||
"createdDateTime": "2022-04-06T04:25:06.777000+00:00", | ||
"endorsement": { | ||
"certifiedBy": "[email protected]", | ||
"endorsement": "Promoted" | ||
}, | ||
"modifiedBy": "[email protected]", | ||
"modifiedDateTime": "2022-04-06T04:25:06.777000+00:00" | ||
}, | ||
"title": "Foo Report" | ||
}, | ||
|
@@ -369,7 +377,11 @@ | |
} | ||
] | ||
} | ||
] | ||
], | ||
"createdBy": "[email protected]", | ||
"createdDateTime": "2022-04-06T04:25:06.777000+00:00", | ||
"modifiedBy": "[email protected]", | ||
"modifiedDateTime": "2022-04-06T04:25:06.777000+00:00" | ||
}, | ||
"title": "Dashboard A" | ||
}, | ||
|
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
from metaphor.power_bi.config import PowerBIRunConfig | ||
from metaphor.power_bi.extractor import PowerBIExtractor | ||
from metaphor.power_bi.power_bi_client import ( | ||
EndorsementDetails, | ||
PowerBIApp, | ||
PowerBIDashboard, | ||
PowerBIDataset, | ||
|
@@ -187,6 +188,13 @@ async def test_extractor(mock_client: MagicMock, test_root_dir: str): | |
name=report1.name, | ||
datasetId=report1.datasetId, | ||
description="This is a report about foo", | ||
createdBy="[email protected]", | ||
createdDateTime="2022-04-06T04:25:06.777", | ||
modifiedBy="[email protected]", | ||
modifiedDateTime="2022-04-06T04:25:06.777", | ||
endorsementDetails=EndorsementDetails( | ||
endorsement="Promoted", certifiedBy="[email protected]" | ||
), | ||
), | ||
WorkspaceInfoReport( | ||
id=report1_app.id, | ||
|
@@ -200,6 +208,9 @@ async def test_extractor(mock_client: MagicMock, test_root_dir: str): | |
name=report2.name, | ||
datasetId=report2.datasetId, | ||
description="This is a report about bar", | ||
endorsementDetails=EndorsementDetails( | ||
endorsement="Invalid", certifiedBy="[email protected]" | ||
), | ||
), | ||
], | ||
datasets=[ | ||
|
@@ -301,6 +312,10 @@ async def test_extractor(mock_client: MagicMock, test_root_dir: str): | |
WorkspaceInfoDashboard( | ||
displayName="Dashboard A", | ||
id=dashboard1_id, | ||
createdBy="[email protected]", | ||
createdDateTime="2022-04-06T04:25:06.777", | ||
modifiedBy="[email protected]", | ||
modifiedDateTime="2022-04-06T04:25:06.777", | ||
), | ||
WorkspaceInfoDashboard( | ||
displayName="Dashboard A", | ||
|