Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mo_farhaz created an issue. See original summary.

mo_farhaz’s picture

Assigned: mo_farhaz » Unassigned
mo_farhaz’s picture

Status: Active » Needs review
FileSize
470 bytes

Updated core requirement version compatibility. please review it.

mo_farhaz’s picture

Title: extends deprecated interface » Drupal 9 readiness
Issue summary: View changes
Steven Jones’s picture

Status: Needs review » Needs work

Thanks for the issue and the patch, but from my understanding because we're using the deprecated interface we're explicity not Drupal 9 compatible and Drupal 8 compatible? We'd need a Drupal 9 branch that removes the deprecated interface use.

mo_farhaz’s picture

Status: Needs work » Needs review
FileSize
1.5 KB

removed deprecated interface ConfigurablePluginInterface and implemented ConfigurableInterface and DependentPluginInterface.
please review it.

Steven Brown’s picture

Status: Needs review » Active

Ran drupal-check against bb665be. Here is an error not listed in the patch above.

 ------ ----------------------------------------------------------------
  Line   tests/src/Kernel/ImageOptimizePipelineTest.php
 ------ ----------------------------------------------------------------
  184    Call to deprecated function file_default_scheme():
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use
         \Drupal::config('system.file')->get('default_scheme') instead.
  203    Call to deprecated function file_default_scheme():
         in drupal:8.8.0 and is removed from drupal:9.0.0. Use
         \Drupal::config('system.file')->get('default_scheme') instead.
 ------ ----------------------------------------------------------------
mo_farhaz’s picture

Status: Active » Needs review
FileSize
2.68 KB

deprecated function file_default_scheme() replaced with \Drupal::config('system.file')->get('default_scheme').
review the patch

voleger’s picture

Status: Needs review » Reviewed & tested by the community

Looks good for me. All Drupal deprecations covered and key added in info file.

Daniel Korte’s picture

Steven Jones’s picture

+++ b/src/ImageAPIOptimizeProcessorInterface.php
@@ -17,7 +16,7 @@ use Drupal\Component\Plugin\PluginInspectionInterface;
-interface ImageAPIOptimizeProcessorInterface extends PluginInspectionInterface, ConfigurableInterface, DependentPluginInterface, ConfigurablePluginInterface {
+interface ImageAPIOptimizeProcessorInterface extends PluginInspectionInterface, ConfigurableInterface, DependentPluginInterface {

These lines represent an API break, so we'll hold off on that and do a quick version 3 that's Drupal 8/9 compatible I reckon.

NickDickinsonWilde’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
630 bytes
623 bytes

Works for me
One slight change is needed - depending on whether the new release version is set to support Drupal 8.8.2 or above only, the test module needs the core version removed, or if supporting below Drupal 8.8.2, a specific core_version_requirements line added.

dpi’s picture

Patched in 12 into 10. The decision was already made as a part of that patch.

Steven Jones’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev

  • Steven Jones committed 704e68a on 8.x-3.x
    Issue #3117904 by mo_farhaz, Daniel Korte, NickDickinsonWilde, dpi,...
Steven Jones’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x-3.x.

dpi’s picture

@Steven Jones reckon we can switch to semver if its going to be a new major version?

(it will need to be a 4.x now, since 8.x-3.x was created..)

Steven Jones’s picture

Yeah, sorry about that!

Making the switch now.

Status: Fixed » Closed (fixed)

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