virtUOS / edusharing-opencast-importer

This importer harvests episodes (lecture recordings) from Opencast instances and push it as external references to an Edusharing instance.
GNU General Public License v3.0
2 stars 2 forks source link

Unable to create edusharing nodes, if stored data was already "used". #24

Closed jduehring closed 2 years ago

jduehring commented 2 years ago

Lets say we have a clean empty edusharing instance and local setup without any stored data and we:

  1. Run the importer
  2. Delete all created edusharing folder/nodes
  3. Rerun the importer with the stored data

...then an error will be thrown and no new edusharing folder will be created. This is because we saved the node-id and parent-id of each node from the previous import and exclude them from beeing recreated (for example in create-folder-structure.js line 22).

Wouldn't it make sense to just allow to create new nodes, even though we have saved, "expired" node-ids?