sul-dlss-deprecated / taco

Apache License 2.0
10 stars 7 forks source link

Should update overwrite created if supplied #443

Open aaron-collier opened 6 years ago

aaron-collier commented 6 years ago

Currently, created is a required field in the update payload, if it differs from the existing record (as in the update example) the value is overwritten. Is it possible that someone will want to change the created value as part of an update? Or should update ignore whatever is provided in the update payload?

jcoyne commented 6 years ago

I think we should just ignore whatever is provided and keep the value from the stored record.

aaron-collier commented 6 years ago

Yeah, I tend to agree. My one concern would be if this isn't only a system date and could it possibly be changed. I'm assuming not, but want to make sure.

Follow up question would be when a version changes, should the new record have a new created date or inherit the created date?