Commit a301f79 1 parent 7e9d056 commit a301f79 Copy full SHA for a301f79
File tree 2 files changed +8
-1
lines changed
metadata-ingestion/src/datahub/ingestion/source/powerbi
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -300,6 +300,12 @@ class PowerBiDashboardSourceConfig(
300
300
description = "Regex patterns to filter PowerBI workspaces in ingestion."
301
301
" Note: This field works in conjunction with 'workspace_type_filter' and both must be considered when filtering workspaces." ,
302
302
)
303
+ # PowerBi workspace name
304
+ workspace_name_pattern : AllowDenyPattern = pydantic .Field (
305
+ default = AllowDenyPattern .allow_all (),
306
+ description = "Regex patterns to filter PowerBI workspaces in ingestion."
307
+ " Note: This field works in conjunction with 'workspace_type_filter' and both must be considered when filtering workspaces." ,
308
+ )
303
309
304
310
# Dataset type mapping PowerBI support many type of data-sources. Here user needs to define what type of PowerBI
305
311
# DataSource needs to be mapped to corresponding DataHub Platform DataSource. For example, PowerBI `Snowflake` is
Original file line number Diff line number Diff line change @@ -1306,7 +1306,8 @@ def get_allowed_workspaces(self) -> List[powerbi_data_classes.Workspace]:
1306
1306
1307
1307
allowed_workspaces = []
1308
1308
for workspace in all_workspaces :
1309
- if not self .source_config .workspace_id_pattern .allowed (workspace .id ):
1309
+ if (not self .source_config .workspace_id_pattern .allowed (workspace .id )
1310
+ or not self .source_config .workspace_name_pattern .allowed (workspace .name )):
1310
1311
self .reporter .filtered_workspace_names .append (
1311
1312
f"{ workspace .id } - { workspace .name } "
1312
1313
)
You can’t perform that action at this time.
0 commit comments