-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Allow to set createdAt and updatedAt during data import(s) #7447
Copy link
Copy link
Closed
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:featureNew feature or improvement of existing featureNew feature or improvement of existing feature
Metadata
Metadata
Assignees
Labels
state:releasedReleased as stable versionReleased as stable versionstate:released-alphaReleased as alpha versionReleased as alpha versionstate:released-betaReleased as beta versionReleased as beta versiontype:featureNew feature or improvement of existing featureNew feature or improvement of existing feature
Type
Fields
Give feedbackNo fields configured for issues without a type.
New Feature / Enhancement Checklist
Current Limitation
I'm sure it was discussed somewhere, but i could not find anything.
Currently when you import data from a different source, there is no way to set
createdAtandupdatedAtfields to the existing value of the imported source.Feature / Enhancement Description
I'm not sure if theses fields have an impact of core
parsefunctionalities, but here is a few suggestions:createdAtorupdatedAtfields exists and have a valid value, use theses values. Leave as-is when updating an objectflag/optioninParse.Object.save()to indicate you want to preserve theses fields.Example Use Case
In our app we allow users to import transactions from various sources. Currently we need to save the transaction date into a separate field since
createdAtis not usable.In a few other projects, we are syncing data from a 3rd party into Parse DB, and since we cannot use
createdAtto store the event creation date, we need to store this in a separate field. This cause confusion, since its not clear why you have two fields to store theparse object creationandevent creationAlternatives / Workarounds
createdAt/updatedAtvalues into new fieldsuserCreatedAtanduserUpdatedAtcreatedAt = userCreatedAt3rd Party References