Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Problem/Motivation
First all, this module "feeds_tamper" is ready for Drupal 9?
drupal-check feeds_tamper reports:
Class Drupal\tamper\TamperPluginCollection not found and could not be autoloaded
Thank's
Comment | File | Size | Author |
---|---|---|---|
#16 | feeds_tamper-d9-test-failures-3100376-16.patch | 1.44 KB | MegaChriz |
Comments
Comment #2
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedI haven’t checked yet if Feeds Tamper is ready for Drupal 9.
The error message you get implies that you may not have the latest version of the Tamper module installed.
Comment #3
Sahana _N CreditAttribution: Sahana _N at Specbee commentedIt looks like the module has no deprecated code usages, so we just need to mark it as compatible with D9.
So, add core_version_requirement: ^8 || ^9 to info.yml file, and also add the composer.json definition per https://www.drupal.org/node/3070687.
Please review the patch.
Comment #4
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedTests fail on Drupal 9 because there's a dependency on drupal:system >=8.5.0:
What's the proper way to minimal require Drupal 8.5 and be compatible with Drupal 9? Or should we raise the minimum requirement to 8.7.7?
Comment #5
Sahana _N CreditAttribution: Sahana _N at Specbee commentedHi, @MegaChriz Thanks for the review, I have updated the info.yml, please review the patch.
Comment #7
Sahana _N CreditAttribution: Sahana _N at Specbee commentedComment #8
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedFrom https://www.drupal.org/pift-ci-job/1634871:
So requiring at least Drupal 8.5 must be done in an other way.
Comment #9
MegaChriz CreditAttribution: MegaChriz as a volunteer and at WebCoo commentedSimilar issue: #3106675: Composer core restraint prevents module from installing on D9
Comment #10
Sahana _N CreditAttribution: Sahana _N at Specbee commentedPlease review the patch.
Comment #12
MegaChriz CreditAttribution: MegaChriz as a volunteer and at WebCoo commentedMaybe there's no way to require at least Drupal 8.5 and be compatible with Drupal 9. The only options so far seem to be:
I could ask a question about it in Slack, otherwise I think we would need to go for option 2 here. The latest release of Feeds is already requiring at least Drupal 8.7 and its next release will require at least Drupal 8.8. I think the situation where someone only wants to update Feeds Tamper and not Feeds is probably rare.
Comment #14
MegaChriz CreditAttribution: MegaChriz as a volunteer and at WebCoo commentedWhen working on D9 compatibility for Feeds, it looks like the testbot cannot test the module with Drupal 9 when D9 compatibility is only declared in a patch (see #3042774-49: Drupal 9 Deprecated Code Report).
So I committed #3 for now.
Comment #15
MegaChriz CreditAttribution: MegaChriz as a volunteer and at WebCoo commentedAh of course, the Tamper module needs to be made compatible with D9 first:
https://www.drupal.org/pift-ci-job/1676236
Comment #16
MegaChriz CreditAttribution: MegaChriz as a volunteer and at WebCoo commentedHopefully, this patch fixes the D9 test failures. In UiCrudTest, the edit link is tried to be selected using "li.edit", but apparently with the Stark theme element no longer has that class. So I replaced it with
li:nth-child(1)
.Comment #18
MegaChriz CreditAttribution: MegaChriz as a volunteer and at WebCoo commentedCommitted #16