Skip to content

Commit

Permalink
fix(ingest): mode - dashboards without creator info fails to process (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shirshanka authored May 24, 2022
1 parent 3aa841c commit 7dd1a6f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions metadata-ingestion/src/datahub/ingestion/source/mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,9 @@ def construct_dashboard(
aspects=[],
)

title = report_info.get("name", "") or ""
description = report_info.get("description", "") or ""

last_modified = ChangeAuditStamps()
creator = self._get_creator(
report_info.get("_links", {}).get("creator", {}).get("href", "")
Expand All @@ -213,8 +216,6 @@ def construct_dashboard(
created_ts = int(
dp.parse(f"{report_info.get('created_at', 'now')}").timestamp() * 1000
)
title = report_info.get("name", "") or ""
description = report_info.get("description", "") or ""
last_modified = ChangeAuditStamps(
created=AuditStamp(time=created_ts, actor=modified_actor),
lastModified=AuditStamp(time=modified_ts, actor=modified_actor),
Expand Down

0 comments on commit 7dd1a6f

Please sign in to comment.