Skip to content

Commit

Permalink
emit app
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-acryl committed Oct 15, 2024
1 parent 7593a77 commit e7855f7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions metadata-ingestion/src/datahub/ingestion/source/powerbi/powerbi.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#
#########################################################
import logging
from datetime import datetime
from typing import Iterable, List, Optional, Tuple, Union

import datahub.emitter.mce_builder as builder
Expand Down Expand Up @@ -52,7 +53,7 @@
from datahub.ingestion.source.state.stateful_ingestion_base import (
StatefulIngestionSourceBase,
)
from datahub.metadata._schema_classes import EdgeClass
from datahub.metadata._schema_classes import AuditStampClass, EdgeClass
from datahub.metadata.com.linkedin.pegasus2avro.common import ChangeAuditStamps
from datahub.metadata.com.linkedin.pegasus2avro.dataset import (
FineGrainedLineage,
Expand Down Expand Up @@ -1348,7 +1349,18 @@ def emit_app(
if workspace.app.description
else workspace.app.name,
# lastModified=workspace.app.last_update,
lastModified=ChangeAuditStamps(),
lastModified=ChangeAuditStamps(
lastModified=AuditStampClass(
actor=str(),
time=int(
datetime.strptime(
workspace.app.last_update, "%Y-%m-%dT%H:%M:%S.%fZ"
).timestamp()
),
)
if workspace.app.last_update
else None
),
dashboards=edges,
)

Expand Down

0 comments on commit e7855f7

Please sign in to comment.