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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gmangones created an issue. See original summary.

MegaChriz’s picture

I 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.

Sahana _N’s picture

It 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.

MegaChriz’s picture

Status: Needs review » Needs work
+++ b/feeds_tamper.info.yml
@@ -2,6 +2,7 @@ name: Feeds Tamper
   - drupal:system (>=8.5.0)

Tests fail on Drupal 9 because there's a dependency on drupal:system >=8.5.0:

drupal/feeds_tamper dev-2.x requires drupal/core ^8.5.0 -> satisfiable by drupal/core[8.5.x-dev, 8.7.x-dev, 8.8.x-dev, 8.9.x-dev]

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?

Sahana _N’s picture

Hi, @MegaChriz Thanks for the review, I have updated the info.yml, please review the patch.

Status: Needs review » Needs work

The last submitted patch, 5: 3100376-5.patch, failed testing. View results

Sahana _N’s picture

Status: Needs work » Needs review
MegaChriz’s picture

Status: Needs review » Needs work

From https://www.drupal.org/pift-ci-job/1634871:

The 'core_version_requirement' can not be used to specify compatibility for a specific version before 8.7.7 in modules/contrib/feeds_tamper/feeds_tamper.info.yml

So requiring at least Drupal 8.5 must be done in an other way.

MegaChriz’s picture

Sahana _N’s picture

Status: Needs work » Needs review
FileSize
781 bytes

Please review the patch.

Status: Needs review » Needs work

The last submitted patch, 10: 3100376-10.patch, failed testing. View results

MegaChriz’s picture

Status: Needs work » Needs review

The 'core_version_requirement' constraint (^8.7.7 || ^9) requires the 'core' key not be set in modules/contrib/feeds_tamper/feeds_tamper.info.yml

Maybe 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:

  1. Be compatible with any Drupal 8 version and Drupal 9.
  2. Be compatible with only Drupal 8.7.7 and up and Drupal 9.

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.

  • Sahana _N authored 7e91822 on 8.x-2.x
    Issue #3100376 by Sahana _N: Marked module as Drupal 9 compatible.
    
MegaChriz’s picture

When 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.

MegaChriz’s picture

Ah of course, the Tamper module needs to be made compatible with D9 first:

drupal/tamper 1.x-dev requires drupal/core ~8.0

https://www.drupal.org/pift-ci-job/1676236

MegaChriz’s picture

Hopefully, 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).

  • MegaChriz committed 3c45742 on 8.x-2.x
    Issue #3100376 by MegaChriz: Fixed Drupal 9 test failures.
    
MegaChriz’s picture

Status: Needs review » Fixed

Committed #16

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.