Circular dependencies lead to undeletable libraries

serettig's picture

Hi,

I've noticed that it is impossible to delete certain libraries from the system. This is the result of circular dependencies between these libraries: H5P.InteractiveVideo has a dependency on H5PEditor.InteractiveVideo and vice versa. Because of this both libraries are required by at least another library and they can never be deleted from the system.

Sebastian

BV52's picture

Hi Sebastian,

Thank you for reporting this. I created a report and you can follow the progress here.

-BV

otacke's picture

Hi all!

That's something that has been bugging me for years, but I always simply edited the h5p_libraries_libraries table of the database whenever I needed to delete one of these uncanny view-editor-entanglements. Well, I have now created a simple reference implementation for WordPress that I'd gladly port  to Drupal and Moodle if the respective pull requests at https://github.com/h5p/h5p-wordpress-plugin/pull/125 and https://github.com/h5p/h5p-php-library/pull/101 are acceptable. I also added a hint to https://h5ptechnology.atlassian.net/browse/HFP-3065 already - hoping that this time, when someone starts working on an issue, checks for pull requests first before implementing the respective feature again from scratch ;-)

Cheers,
Oliver