WPChill / modula-importer

0 stars 1 forks source link

Imported galleries check #3

Closed razvanaldea89 closed 4 years ago

razvanaldea89 commented 5 years ago

Save imported galleries in modula_importer option based on gallery plugin. Cases when 2 ore more galleries have the same id can happen ( separate tables but same id ).

giucu91 commented 4 years ago

@cristianraiber @razvanaldea89 I think here we need to tell people that a certain gallery is already imported. What you think ?

razvanaldea89 commented 4 years ago

There is already a function that tells you that the gallery has been imported.

andrei-l-cristea commented 4 years ago

Yes, but you can import the same gallery again and again... wouldn't it be better if the gallery was already imported to stop the duplicate migration. For example if an user has 10 galleries and selects only 5, then in his next migration imports all of them, this will create 5 duplicates.

razvanaldea89 commented 4 years ago

We can do that, but we will limit the user in migrating only 1 time. In case he wants to import again/make a double he won't be allowed. Although, Modula has a clone option. Can't think of any good reason an user would want to migrate multiple times same gallery. Will apply this fix