Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ingest): set DataProcessInstance created ts to start time #6566

Merged
merged 1 commit into from
Nov 29, 2022

Conversation

hsheth2
Copy link
Collaborator

@hsheth2 hsheth2 commented Nov 29, 2022

In the dataJob runs tab (which shows dataProcessInstances), the "Time" column displays the dataProcessInstanceProperties.created timestamp. This change makes the emitter actually show the start times when provided.

Slack ref: https://datahubspace.slack.com/archives/CUMUWQU66/p1669108847712609?thread_ts=1669020230.808929&cid=CUMUWQU66

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

In the dataJob runs tab (which shows dataProcessInstances), the "Time" column displays the `dataProcessInstanceProperties.created` timestamp.
This change makes the emitter actually show the real start times when provided.
@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label Nov 29, 2022
@github-actions
Copy link

Unit Test Results (metadata ingestion)

       8 files  ±0         8 suites  ±0   1h 4m 21s ⏱️ + 2m 12s
   765 tests ±0     762 ✔️ ±0  2 💤 ±0  1 ±0 
1 532 runs  ±0  1 526 ✔️ ±0  5 💤 ±0  1 ±0 

For more details on these failures, see this check.

Results for commit e234dbf. ± Comparison against base commit 536218c.

@github-actions
Copy link

Unit Test Results (build & test)

621 tests  ±0   617 ✔️ ±0   15m 38s ⏱️ -2s
157 suites ±0       4 💤 ±0 
157 files   ±0       0 ±0 

Results for commit e234dbf. ± Comparison against base commit 536218c.

@@ -164,7 +164,7 @@ def emit_process_start(
for mcp in template_object.generate_mcp():
self._emit_mcp(mcp, emitter, callback)

for mcp in self.generate_mcp():
for mcp in self.generate_mcp(created_ts_millis=start_timestamp_millis):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been there in the first place! Nice change.

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. No tests to update?

@jjoyce0510 jjoyce0510 merged commit 7f93ee5 into datahub-project:master Nov 29, 2022
@hsheth2 hsheth2 deleted the data-process-ms branch November 29, 2022 05:52
@hsheth2
Copy link
Collaborator Author

hsheth2 commented Nov 29, 2022

Our tests ignore the timestamps so they remain unchanged. At some point we will need to add proper tests for this stuff though

cccs-Dustin pushed a commit to CybercentreCanada/datahub that referenced this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants