Edlib icon indicating copy to clipboard operation
Edlib copied to clipboard

Bulk update error messages (prod and test)

Open tmkarlsen opened this issue 2 years ago • 3 comments

Bulk update fails for drag and drop When trying to bulk update H5P.DragQuestion 1.13.15, all content fails with on of the two error messages below

Request URL: https://ca.h5p-test.ndla.no/content/upgrade/library?library=/H5P.DragQuestion/1/14

Error messages An error occurred while processing parameters: Cannot read properties of undefined (reading 'task')

An error occurred while processing parameters: dropzone.correctElements.filter is not a function

Screenshots

Skjermbilde 2024-01-04 kl  13 18 25

Skjermbilde 2024-01-04 kl  12 24 44

tmkarlsen avatar Jan 04 '24 11:01 tmkarlsen

Looks like you are upgrading to 1.14, but which patch version?

chrieinv avatar Jan 04 '24 12:01 chrieinv

I'm trying to update to 1.14.15 Skjermbilde 2024-01-04 kl  13 18 25

tmkarlsen avatar Jan 04 '24 12:01 tmkarlsen

Looking at the upgrades script it seems like all errors are due to issues with the content.

  • The ones with reading 'task' error don't have any questions defined
  • The correct elements should be set as an array. The dropzone.correctElements.filter is not a function error occurs if it's not an array

These issues could be corrected in the upgrade script or a checks could be added to prevent errors. In previous upgrades, like the one to 1.13, the code checks if 'questions' exists before trying to access it, this is not done in the 1.14 upgrade.

chrieinv avatar Jan 04 '24 13:01 chrieinv