Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Set created and lastUpdated #414

Merged
merged 1 commit into from
Apr 27, 2018
Merged

Set created and lastUpdated #414

merged 1 commit into from
Apr 27, 2018

Conversation

jcoyne
Copy link
Contributor

@jcoyne jcoyne commented Apr 16, 2018

Fixes #408

@jcoyne jcoyne added the review label Apr 16, 2018
@jcoyne jcoyne force-pushed the timestamps branch 2 times, most recently from 5d27205 to dba9727 Compare April 25, 2018 15:01
Copy link
Contributor

@cmharlow cmharlow left a comment

Choose a reason for hiding this comment

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

conditionally approved waiting for @eefahy on question in comment

@@ -58,6 +59,7 @@ func (d *depositResource) Handle(params operations.DepositResourceParams, agent
WithID(uuid).
WithExternalIdentifier(externalID).
WithVersion(1)
(*resource.Administrative())["created"] = time.Now().UTC().Format(time.RFC3339)
Copy link
Contributor

Choose a reason for hiding this comment

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

@eefahy did you / we ever move the ball on capturing or using the dynamodb datetime created for the sake of this admin field? i think you said it was captured, it was just a question of putting it in the metadata or resource responses for sake of clients + users.

Copy link
Contributor

Choose a reason for hiding this comment

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

never mind, dynamodb date is unreliable.

Copy link
Contributor

@cmharlow cmharlow left a comment

Choose a reason for hiding this comment

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

waiting to run local tests after rebase.

@cmharlow
Copy link
Contributor

note this doesn't add admin metadata for File metadata.

@cmharlow cmharlow merged commit f5459e2 into master Apr 27, 2018
@cmharlow cmharlow deleted the timestamps branch April 27, 2018 00:58
@cmharlow cmharlow removed the review label Apr 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants