Problem/Motivation
Hello project maintainers,
This is an automated issue to help make this module compatible with Drupal 10.
To read more about this effort by the Drupal Association, please read: The project update bot is being refreshed to support Drupal 10 readiness of contributed projects
Patches will periodically be added to this issue that remove Drupal 10 deprecated API uses. To stop further patches from being posted, change the status to anything other than Active, Needs review, Needs work or Reviewed and tested by the community. Alternatively, you can remove the "ProjectUpdateBotD10" tag from the issue to stop the bot from posting updates.
The patches will be posted by the Project Update Bot official user account. This account will not receive any issue credit contributions for itself or any company.
Proposed resolution
You have a few options for how to use this issue:
- Accept automated patches until this issue is closed
If this issue is left open (status of Active, Needs review, Needs work or Reviewed and tested by the community) and the "ProjectUpdateBotD10" tag is left on this issue, new patches will be posted periodically if new deprecation fixes are needed.
As the Drupal Rector project improves and is able to fix more deprecated API uses, the patches posted here will cover more of the deprecated API uses in the module.
Patches and/or merge requests posted by others are ignored by the bot, and general human interactions in the issue do not stop the bot from posting updates, so feel free to use this issue to refine bot patches. The bot will still post new patches then if there is a change in the new generated patch compared to the patch that the bot posted last. Those changes are then up to humans to integrate.
- Leave open but stop new automated patches.
If you want to use this issue as a starting point to remove deprecated API uses but then don't want new automated patches, remove the "ProjectUpdateBotD10" tag from the issue and use it like any other issue (the status does not matter then). If you want to receive automated patches again, add back the "ProjectUpdateBotD10" tag.
- Close it and don't use it
If the maintainers of this project don't find this issue useful, they can close this issue (any status besides Active, Needs review, Needs work and Reviewed and tested by the community) and no more automated patches will be posted here.
If the issue is reopened, then new automated patches will be posted.
If you are using another issue(s) to work on Drupal 10 compatibility it would be very useful to other contributors to add those issues as "Related issues" when closing this issue.
Remaining tasks
Using the patches
- Apply the latest patch in the comments by Project Update Bot or human contributors that made it better.
- Thoroughly test the patch. These patches are automatically generated so they haven't been tested manually or automatically.
- Provide feedback about how the testing went. If you can improve the patch, post an updated patch here.
Providing feedback
If there are problems with one of the patches posted by the Project Update Bot, such as it does not correctly replace a deprecation, you can file an issue in the Drupal Rector issue queue. For other issues with the bot, for instance if the issue summary created by the bot is unclear, use the Project analysis issue queue.
Issue fork webp-3290669
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
project update bot commentedThis is an automated patch generated by Drupal Rector. Please see the issue summary for more details.
It is important that any automated tests available are run with this patch and that you manually test this patch.
Drupal 10 Compatibility
According to the Upgrade Status module, even with this patch, this module is not yet compatible with Drupal 10.
Currently Drupal Rector, version 0.12.0, cannot fix all Drupal 10 compatibility problems.
This patch does not update the
info.ymlfile for Drupal 10 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot to post additional Drupal 10 compatibility fixes as they become available in Drupal Rector.
Debug info
This patch was created using these packages:
Comment #3
project update bot commentedThis is an automated patch generated by Drupal Rector. Please see the issue summary for more details.
It is important that any automated tests available are run with this patch and that you manually test this patch.
Drupal 10 Compatibility
According to the Upgrade Status module this patch makes this module compatible with Drupal 10! 🎉
This patch updates the
info.ymlfile for Drupal 10 compatibility.Leaving this issue open, even after committing the current patch, will allow the Project Update Bot to post additional Drupal 10 compatibility fixes as they become available in Drupal Rector.
Debug info
This patch was created using these packages:
Comment #4
jaydev bhatt commentedReviewed / Tested the given patch #3.
works with drupal9 and Drupal10.
after applyig the patch and running throught the upgrade_status module there are no more deprication errors.
Moving this RTBC.
Comment #5
project update bot commentedUpdating bot issue summary.See #3313904: Update project bot templates for RTBC status support and human interaction tips
Comment #7
tyler36 commentedRerolled patch as MR
Comment #9
kporras07 commentedI just tested the MR and it works as expected.
Comment #10
rajab natshahComment #11
rajab natshahThank you, Alex, Bart for maintaining the WebP important for performance and SEO module!
Hoping for a soft commit on the
8.x-1.xbranch, to ease testing with Drupal 10.A soft tag release (
pre-release) would help speeding up work withDrupal ~10.0using the composer.Testing now with
git clone --branch '8.x-1.x' https://git.drupalcode.org/project/webp.gitand git apply the patch or 29.diff
Comment #12
rajab natshahComment #13
rajab natshahComment #14
rajab natshahComment #15
rajab natshahHad Real physical testing round for WebP
1.0.x-devwith Drupal ~10 and Drupal ~9Attaching the Full testing round commands
Real-physical-testing-round-for-webp-1-0-x-dev--with-d10-and-d9.zip
Build Drupal ~10.0 sandbox test site and have Drush ~11.0
Change minimum stability to dev for testing on the recommended Drupal 10 project template
Add the WebP module
Git apply the needed patch
Change file/directory mod and ownership of files:
Install with Drush
Rebuild the cache:
Open a browser and change the address to:
http://localhost/sandboxes/drupal10webp_1__test/web/Tested with configs on Media field with responsive Image styles in both Drupal 10 and Drupal 9
Comment #16
rajab natshahTested, Ready for a release.
Comment #17
rajab natshahComment #18
klemendev commentedSeems to be ready
Comment #19
rvilarTested and ready to release also.
Thanks for the hard work.
Comment #20
anatolii1309 commentedTested and ready to release also.
Comment #21
jds1Could we please have a d10-compatible release out soon so we don't have to patch? Thanks!
Comment #22
agoradesign commentedwebp is one of our few remaining blockers to switch to D10 in our projects :(
Comment #23
martijn de witDo we need this module for D10 since: https://www.drupal.org/node/3171135 ?
Comment #24
klemendev commentedYes, as this module offers fallback, while using WebP directly does not
Comment #25
martijn de witThat is true; #3213491: Add fallback format support to responsive images;
So if that issue is resolved, are there other important features missing?
Comment #26
rajab natshahThanks Martijn
Support having this awesome feature in Drupal core
Modules like Image Styles too with Responsive Image Style
and contrib modules like Dynamic Responsive Image (or drimage) will switch from using Webp to the Drupal core solution.
Comment #27
jds1I know I commented about it last week but 11k+ sites still use this module and will continue to use it until the core issue is fixed. Can we please have a d10-compatible release ASAP? The patch applies but patching doesn't work and `composer info drupal/webp` is still showing `requires
drupal/core ^8 || ^9`. Are the maintainers active on this project/in the comments? This is blocking d10 upgrades.
Thank you in advance for your support!
Comment #28
martijn de wit@jds1 did you test the core patch + Drupal Core WebP support? You don't need this module anymore if you don't have any edge cases I believe. It's all in Drupal Core. :)
Comment #29
agoradesign commentedas long it's not committed and released in core, this module has it's legitimacy. Some patches are inevitable, but any others I try to avoid - why? because sometimes these kind of patches land never or much later than you'd have expected. And sometimes it may become difficult to update because the patch must be re-rolled, or it may also conflict with another bugfix patch within the same core module,...
So, jds1 and I are just two examples for surely more people/organizations that will continue to use webp until Core provides an alternative in a regular release, hence also upgrading to 10.x is a blocker for us
Comment #30
jds1Hey @martijin – thanks for responding :)
For this particular site that's currently in production we need a png fallback because it is possible some constituents are using older browsers. Plus the delta of updating all image styles to use core webp is much greater than updating one module. I will, without a doubt, use core webp support on all new projects moving forward though. It's real exciting stuff!!
Thank you agoradesign for another +1 for a release!
I'm gonna give it another day before I start messaging some of the maintainers to see if we can move this along. That will mean we can close this issue too!
Comment #31
agoradesign commentedthanks for messaging the maintainers :)
also thanks Martijn for testing and pushing the core issue forward. It will be great once we have this built in - hoping that will make other scenarios easier to handle (I've also used the webp support via imageapi_optimize dependent module + remote_stream_wrapper inside the same project and had to add glue code to combine both)
Comment #32
mandclu commentedHey everyone, apologies for the delay here. I can help get a D10-ready release out in the coming days.
Comment #33
jds1Hey @mandclu – thank you so much for the quick follow-up today!! Much appreciated.
Comment #35
agoradesign commentedawesome :)
Comment #36
mandclu commentedThanks for the wealth of input on this issue. An 8.x-1.0-beta7 release is now available that is Drupal 10 compatible. I would like to further clean up the issue queue and move this module towards a stable release, so input on any issues currently labelled Needs Review would be much appreciated. Thanks again!
Comment #37
lobodakyrylo commented