mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
fix(ingest): looker - extract usage for dashboards allowed by pattern (#5424)
This commit is contained in:
parent
238fca5191
commit
65a308a4ed
@ -1025,11 +1025,17 @@ class LookerDashboardSource(Source):
|
||||
self, dashboard_ids: List[str]
|
||||
) -> Iterable[MetadataChangeProposalWrapper]:
|
||||
|
||||
dashboard_ids_allowed = [
|
||||
dashboard_id
|
||||
for dashboard_id in dashboard_ids
|
||||
if self.source_config.dashboard_pattern.allowed(dashboard_id)
|
||||
]
|
||||
|
||||
# key tuple (dashboard_id, date)
|
||||
dashboard_usages: Dict[tuple, DashboardUsageStatisticsClass] = dict()
|
||||
|
||||
common_filters = {
|
||||
"history.dashboard_id": ",".join(dashboard_ids),
|
||||
"history.dashboard_id": ",".join(dashboard_ids_allowed),
|
||||
"history.created_date": self.source_config.extract_usage_history_for_interval,
|
||||
}
|
||||
for query in usage_queries.values():
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user