Baboo7 / strapi-plugin-import-export-entries

Import/Export data from and to your database in just few clicks.
175 stars 86 forks source link

feat(fileIdToDbId): add relation and media support for ID mapping #153

Open LukasPrzeczek opened 10 months ago

LukasPrzeczek commented 10 months ago

Related to: https://github.com/Baboo7/strapi-plugin-import-export-entries/issues/151 User story:

As import/export script taken fieldId is defined in Strapi pluginOptions taken all Id fields are removed from ExportDataFile I am importing JSON-V2 data structure to strapi with goal to allow different IDs on Source and Destination Strapi instance, but keeping references to components based on Ids in ExportDataFile

This PR uses the existing fileIdToDbId mapping and applies it to relations and media which were ignored until now.

Tested (all passing)