zotonic icon indicating copy to clipboard operation
zotonic copied to clipboard

The id is not included in the common_properties of a resource.

Open mmzeeman opened this issue 4 years ago • 2 comments

When looking at the export routines I saw that the id was not included in the common_properties of a resource. Is this an omission, or is there a reason behind that?

mmzeeman avatar Aug 04 '20 08:08 mmzeeman

I think the idea here is that the export could be used directly as the import on another system.

As the id is a local number that should then be removed.

I can't think of another reason.

mworrell avatar Aug 04 '20 15:08 mworrell

In fact - the importing system should sanitize its input anyway and prevent having the id in the update.

So I don't see a valid reason to not have the (local) id in the exported data.

mworrell avatar Aug 04 '20 15:08 mworrell