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

Should update overwrite created if supplied #443

Open
aaron-collier opened this issue Apr 25, 2018 · 2 comments
Open

Should update overwrite created if supplied #443

aaron-collier opened this issue Apr 25, 2018 · 2 comments
Labels
discussion question Further information is requested

Comments

@aaron-collier
Copy link
Contributor

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?

@aaron-collier aaron-collier added question Further information is requested discussion labels Apr 25, 2018
@jcoyne
Copy link
Contributor

jcoyne commented Apr 26, 2018

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

@aaron-collier
Copy link
Contributor Author

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
discussion question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants