Account created on 5 April 2009, about 16 years ago
#

Merge Requests

More

Recent comments

🇨🇦Canada shaundychko

@chamilsanjeewa thank you for trying out the fork. I don't have commit access to this module so I can't merge into it. The intention is to keep the fork only while waiting for the maintainers to commit the patches to the module, and then I would delete the fork. The error messages you posted are related to downloading the H5P libraries since your site is searching for files in the ./default/files/h5p directory.

🇨🇦Canada shaundychko

With the 2.0.x version of this module, Drupal 10.4.1, and updated h5p dependencies, this is no longer an issue.

🇨🇦Canada shaundychko

Yes, the composer.lock would have that effect of locking the version despite changing composer.json. That issue didn't show up for me since I also applied 📌 Remove vendor directory and composer.lock from project repository Active . The vendor dependencies should not be committed to the module.

🇨🇦Canada shaundychko

This is a duplicate of 🐛 Remove the a11y_title field when updating H5PContent Active , but the patch here is better so I closed the other issue.

🇨🇦Canada shaundychko

A new issue with a better patch was opened here: 🐛 Support a11y_title from h5p-core 1.27 Needs review . Closing this one of favour of that.

🇨🇦Canada shaundychko

This patch fixes issues in an old version of the h5p/h5p-core dependency. That has already been fixed in later versions of the dependency. To use the latest version of the dependencies apply patches from the merge requests at 💬 Support h5p/h5p-core 1.27 and h5p/h5p-editor 1.25 in H5PDrupal.php Active and 📌 Remove vendor directory and composer.lock from project repository Active . The latter adds a build step using Drush to copy the current version of JS/CSS assets into the module directory.

🇨🇦Canada shaundychko

This issue is outdated. The patch here is trying to two things at once: remove the vendor directory, and update the h5p dependencies. This is too much for one patch since opinions might vary on how the vendor directory should be removed, whereas updating the h5p dependencies should be needed by most sites by now due to current versions of PHP not supporting older versions of h5p/h5p-core without warnings.

Apply the patches from the merge requests from 📌 Remove vendor directory and composer.lock from project repository Active , and 💬 Support h5p/h5p-core 1.27 and h5p/h5p-editor 1.25 in H5PDrupal.php Active .

🇨🇦Canada shaundychko

Merge request 27 removes the vendor directory and adds a build step using a custom Drush command drush h5p:copy-assets to copy assets, such as JS and CSS, to ./assets/h5p-core and ./modules/h5peditor/assets/h5p-editor. The Drush command outputs every source/destination copied. The Readme.md is updated to document the Drush command.

This MR doesn't deal with updating the version of the h5p dependencies. It focuses exclusively on removing the vendor directory and creating a post-install build step using Drush.

🇨🇦Canada shaundychko

The merge request adds to the provided patch by also increasing the version requirement of h5/h5p-core in composer.json in order to automatically retrieve a version of \H5PFrameworkInterface that is compatible with the updated H5PDrupal class.

🇨🇦Canada shaundychko

Re-rolled to support 3.0.0-beta5. Submitting a patch or MR for the 4.x branch is a remaining task.

🇨🇦Canada shaundychko

shaundychko changed the visibility of the branch 3312958-authentication-locking-prevent-multiple to hidden.

🇨🇦Canada shaundychko

MR 19 should be a different issue since it seeks to address a performance issue rather than this issue of duplicate users.

🇨🇦Canada shaundychko

shaundychko changed the visibility of the branch 3312958-users-with-duplicate to hidden.

🇨🇦Canada shaundychko

These deprecations are fixed in the core h5p library version 1.26. Here's the github issue: https://github.com/h5p/h5p-php-library/pull/148. After sorting out how to update the core library used in this module (see 🐛 Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work ), this issue will be fixed.

🇨🇦Canada shaundychko

Created a patch from the merge request above so that it can be applied automatically by composer.

🇨🇦Canada shaundychko

`h5p_site_type` no longer exists and was removed here: https://git.drupalcode.org/project/h5p/-/commit/78c2fba9f9c8c0a02e9c7e15...
The updated patch adds only h5p_first_runnable_saved.

🇨🇦Canada shaundychko

Yes, that makes sense. There are lots of code style issues and it might be easier to address them when the module is more stable.

🇨🇦Canada shaundychko

The solution here of checking for the route name is more reliable than using regex as proposed in the related issue here: https://www.drupal.org/project/h5p/issues/2612208#comment-12476851

🇨🇦Canada shaundychko

'git format-patch' output this as two separate patch files that need to be applied in sequence, starting with support-h5p-1.26-3420268-10-1.patch.

🇨🇦Canada shaundychko

The embed.php files needs to still be in the module's /vendor/h5p/h5p-core directory since a reference to it is hardcoded in \Drupal\h5p\Controller\H5PEmbed.

🇨🇦Canada shaundychko

It's a low priority since this module doesn't have automated testing, but best practice is to inject the Drupal service instead of calling it statically. This is more of a code style issue (and maybe I should have opened a new issue.)

🇨🇦Canada shaundychko

h5p/h5p-editor:1.25 supports PHP 8. Applying the patch at 🐛 Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work updates the module to use version 1.25 of h5p-editor.

🇨🇦Canada shaundychko

Since this can be postponed until Drupal 11 support, marking it as Normal instead of Critical.

🇨🇦Canada shaundychko

After applying the patch here 🐛 Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work , to use H5P 1.26 on the 2.0.x-dev version of this module, there doesn't seem to be an issue with serving over SSL. I also couldn't find any URL's starting with 'http://' hardcoded in the module folder. It doesn't seem like this patch is necessary any more.

🇨🇦Canada shaundychko

The previous patch created using git diff didn't apply correctly. The patch in comment #8 was created using git format-patch.

🇨🇦Canada shaundychko

The injected file_system service is used in the merge request.

🇨🇦Canada shaundychko

ShaunDychko changed the visibility of the branch 3266331-use-of-deprecated to hidden.

🇨🇦Canada shaundychko

After applying the merge request at 🐛 Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work H5P is working on a new install, tested with creating an interactive video, on Drupal 10 with PHP 8 and H5P 1.26.

🇨🇦Canada shaundychko

The /h5p/vendor/ directory can't really be deleted since not only are so many CSS and JS files referenced in code, but it's also in the resize JS link in embeds, so removing it would somewhat break other sites that have embedded an H5P. Also, the composer.json needs to lock down a specific version of the dependencies in order to have a match between the dependencies included in the module's /vendor and the dependencies installed by composer in the project's root /vendor. The merge request in 🐛 Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work deletes the autoloader and all php files included in the module, and keeps the composer.lock file in order for the version installed in the project /vendor to match the CSS and JS shipped with the module's /vendor directory.

🇨🇦Canada shaundychko

ShaunDychko changed the visibility of the branch 3420268-support-h5ph5p-core1.26-and to hidden.

🇨🇦Canada shaundychko

The /h5p/vendor/ directory can't really be deleted since not only are so many CSS and JS files referenced in code, but it's also in the resize JS link in embeds, so removing it would somewhat break other sites that have embedded an H5P. Also, the composer.json needs to lock down a specific version of the dependencies in order to have a match between the dependencies included in the module's /vendor and the dependencies installed by composer in the project's root /vendor. The patch in 🐛 Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work deletes the autoloader and all php files included in the module, and keeps the composer.lock file in order for the version installed in the project /vendor to match the CSS and JS shipped with the module's /vendor directory.

🇨🇦Canada shaundychko

ShaunDychko made their first commit to this issue’s fork.

Production build 0.71.5 2024