oldAnytypeID and importing/exporting spaces #254
alexjp
started this conversation in
Any-Block & Anytype-Heart
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
From my understanding (please correct me if wrong), while doing importing/exporting, Anytype will set the
snapshot.data.details.oldAnytypeID
andsnapshot.data.details.sourceFilePath
to the, well, old ID of the object, so that importing does not create duplicate objects.Could these fields be a list, instead of a single value, and keep a history of all old ID's and append to the list if new?
This is an issue with the use case:
Have
Space A
. HaveSpace A
import some items fromSpace E
(a space with a base structure of items, think of it like an Experience space).So now the
Space A
items have asnapshot.data.details.oldAnytypeID
with should be the ID of the item inSpace E
, and I can re-importSpace E
how many times I want without creating duplicates.But now if I export/backup
Space A
(withSpace E
objects) to a zip file, and re-import/create a new space and import that backup zip file, importing again fromSpace E
will create duplicates. (thesnapshot.data.details.oldAnytypeID
ofSpace E
is lost)Is my understanding of what the fields do and what happens correct? Could this be fixed by having a list of all the
snapshot.data.details.oldAnytypeID
, so that no id is lost?Thanks !!
Beta Was this translation helpful? Give feedback.
All reactions