-
Notifications
You must be signed in to change notification settings - Fork 3k
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
feat(models): Adding 'created', 'lastModified' timestamp to Dataset, Container, Dashboard, Chart #6527
feat(models): Adding 'created', 'lastModified' timestamp to Dataset, Container, Dashboard, Chart #6527
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
why no modifiedAt field?
How would we record the actor who created the resource? Maybe create a variant of AuditStamp which loosens the restriction on actor being required but keeps the other goodies (like impersonator) and use it for the createdAt field? |
Actor I didn't want to require. If we can actually get a correct actor (one which lines up with other urns) we'd need to add those fields later on. As for lastModified, it's a good question. We typically used Operation.pdl for this but I think it makes sense to reserve that for more rich details around the operations, and have a separate lastModified stamp here. Let me do this - I'll create a new TimeStamp.pdl that will basically allow the Actor field to be not provided, so the UI knows when we do not have one. |
c973e22
to
55e1f25
Compare
…Container, Dashboard, Chart (datahub-project#6527)
Summary
Adding a 'createdAt' timestamp to Datasets, Containers, DataJobs, DataFlows. This is useful for reporting the native platform created time for data assets when ingesting into DataHub.
We are not using an AuditStamp here because the Actor field inside is required. We do not always know that the actor will be resolvable to an URN for created actions, so we are choosing to omit for now.
Status
Ready for review.
Checklist