## Drupal 9 readiness

added to commerce_autosku.info.yml:
core_version_requirement: ^8 || ^9
Then modified deprecated classes like Drupal\Component\Plugin\ConfigurablePluginInterface. Because when installed error messages shows class isn't found.

## What I basicaly did:

1 . modified deprecated classes

replaced Drupal\Component\Plugin\ConfigurablePluginInterface

to Drupal\Component\Plugin\ConfigurableInterface

and

replaced ConfigurablePluginInterface
to ConfigurableInterface

2. removed argument

in commerce_autosku.services.yml on R9 removed argument arguments '@entity.manager'

and

replaced `entity.manager`
to `entity_type.manager`

3. created a patch

git diff > D9patch.patch

## drush

cleared cache and installed the commerce_autosku module

drush cr && drush en commerce_autosku

CommentFileSizeAuthor
#5 patch-for-d9-3150280--5.patch2.19 KBscalas89
D9patch.patch3.81 KBacnimda
Command icon 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

Joehoe created an issue. See original summary.

acnimda’s picture

Title: I created a patch for using autoSKU on D9 » patch for using autoSKU on D9
Assigned: acnimda » Unassigned
acnimda’s picture

Issue summary: View changes
k.skarlatos’s picture

Patch does not apply on latest dev

scalas89’s picture

StatusFileSize
new2.19 KB
nwom’s picture

#5 works great. Thank you!

nwom’s picture

Status: Needs review » Reviewed & tested by the community

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

pcambra’s picture

+1 to RTBC

  • jsacksick committed e8add79 on 8.x-2.x authored by scalas89
    Issue #3150280 by NigelCunningham, acnimda, scalas89, pcambra, jsacksick...
jsacksick’s picture

Status: Reviewed & tested by the community » Fixed

Removed the "core" key which is incompatible with the "core_version_requirement", made additional coding standard fixes and committed.

devad’s picture

Thank you for commit.

A new release would be nice.

#3236502: Plan for Commerce AutoSKU 8.x-2.0

Status: Fixed » Closed (fixed)

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

sivaji_ganesh_jojodae’s picture

This module is now available on drupalcode.org for both D8 & D9. See https://git.drupalcode.org/project/commerce_autosku branch 8.x-2.x.

devad’s picture

This module is now available on drupalcode.org

Thank you for info @Sivaji_Ganesh_Jojodae. But, why on drupalcode.org?

Is there some obstacle to commit changes here and release d9 compatible release here at drupal.org?

nwom’s picture

@devad drupalcode.org is the same thing as drupal.org. On the project page, if you click on "View All releases" you'll see the latest dev version. They aren't committing the changes in a separate place. The reason why it is no longer shown is because it was never marked as compatible with D9, since D8 is already end-of-life.

However, the question is what is stopping from it being shown on the project page itself as a D9 release. I think the maintainer should mark it as compatible, so that others can see it, even if it is still in beta.