Problem/Motivation

drupal-check results on commit hash:
4360c8afa196098208adf2aada96a265323b0f0e

see file in comment #27

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

josephdpurcell created an issue. See original summary.

sergiu stici’s picture

Status: Active » Needs review
StatusFileSize
new39.78 KB

I created the patch, please review.

Status: Needs review » Needs work

The last submitted patch, 2: drupal_9_deprecated_code_report-3042604-2.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

sergiu stici’s picture

Status: Needs work » Needs review
StatusFileSize
new40.37 KB
mondrake’s picture

Status: Needs review » Needs work

Thank you very much @Sergiu Stici for starting this.

This will have to wait a bit until a new branch is opened. At the moment getting this in would mean to increase the minumum Drupal version required to 8.7, which I am not keen at the moment.

In the meatime, a review:

  1. +++ b/src/Plugin/ImageToolkit/Operation/gd/TextToWrapper.php
    @@ -400,22 +400,22 @@ class TextToWrapper extends GDImageToolkitOperationBase {
    +          $fit = mb_strlen($line) ? $begin + Unicode::strlen($line) : $end;
    

    One conversion is left out.

  2. +++ b/src/Plugin/image_effects/ImageSelector/Dropdown.php
    @@ -105,10 +117,10 @@ class Dropdown extends ImageEffectsPluginBase {
    diff --git a/src/Tests/Update/Update8201Test.php b/src/Tests/Update/Update8201Test.php
    
    diff --git a/src/Tests/Update/Update8201Test.php b/src/Tests/Update/Update8201Test.php
    index 57fbbac..9629de8 100644
    
    index 57fbbac..9629de8 100644
    --- a/src/Tests/Update/Update8201Test.php
    
    --- a/src/Tests/Update/Update8201Test.php
    +++ b/src/Tests/Update/Update8201Test.php
    
    +++ b/src/Tests/Update/Update8201Test.php
    +++ b/src/Tests/Update/Update8201Test.php
    @@ -2,7 +2,7 @@
    
    @@ -2,7 +2,7 @@
     
     namespace Drupal\image_effects\Tests\Update;
     
    -use Drupal\system\Tests\Update\UpdatePathTestBase;
    +use Drupal\FunctionalTests\Update\UpdatePathTestBase;
     
     /**
      * Tests the upgrade path for enabling file_mdm and its submodules.
    
    
    

    The location of the file needs to be moved accordingly.

  3. +++ b/tests/src/Functional/SettingsFormTest.php
    @@ -91,10 +91,10 @@ class SettingsFormTest extends BrowserTestBase {
    -    $this->assertNotEqual([], \Drupal::service('module_installer')->validateUninstall(['jquery_colorpicker']));
    +    $this->assertNotEquals([], \Drupal::service('module_installer')->validateUninstall(['jquery_colorpicker']));
    

    Maybe we can use assertNotEmpty here.

mondrake’s picture

Running test with this patch applied on TravisCI https://travis-ci.org/mondrake/image_effects/jobs/516245179 yields more deprecations still to be addressed.

mondrake’s picture

joelpittet’s picture

Issue tags: -midcamp2019 +Novice, +Seattle2019

Tagging for DrupalCon Seattle Friday sprint.

mondrake’s picture

Now, if you change all the occurrences of

suppress-deprecations: true

to false in the drupalci.yml file, you will get deprecation testing for the parch.

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new41.31 KB
new963 bytes

Status: Needs review » Needs work

The last submitted patch, 12: 3042604-12.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new278 bytes
new41.58 KB

Looks like in deprecation testing we also get dependency module's deprecated uses :(

Here increasing Imagemagick's module minimum version to 3.x

Status: Needs review » Needs work

The last submitted patch, 14: 3042604-14.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new41.69 KB
new390 bytes

Status: Needs review » Needs work

The last submitted patch, 16: 3042604-16.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new5.26 KB
new47 KB

file_unmanaged_* deprecated methods replaced by FileSystemInterface methods

Status: Needs review » Needs work

The last submitted patch, 18: 3042604-18.patch, failed testing. View results

berdir’s picture

file unmanaged deprecations are 8.7+, deprecations must be tested against 8.6, not 8.8.

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new48.37 KB
new1.37 KB

#20 yes, this is working ahead :)

Changing ConfigurablePluginInterface to ConfigurableInterface.

Status: Needs review » Needs work

The last submitted patch, 21: 3042604-20.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new49.59 KB
new2.61 KB

Added drupal/jquery_colorpicker to composer.json require-dev.

Removed leftover Unicode methods.

mondrake’s picture

StatusFileSize
new49.58 KB
new525 bytes

Status: Needs review » Needs work

The last submitted patch, 24: 3042604-24.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

berdir’s picture

> #20 yes, this is working ahead :)

Sorry, I actually didn't realize that I wasn't commenting in my own project, gmail likes to merge notifications for issues with the same title into threads and then I thought this was token.module ;)

That said, note that by including 8.7 changes, you will not be able to commit this for another 6 month, including the changes that would be perfectly fine to commit now. And it is pretty likely that you'll receive duplicate issues/patches about it until then. IMHO its better to either ignore 8.7 or do separate patches.

mondrake’s picture

Issue summary: View changes
Status: Needs work » Postponed
StatusFileSize
new41.83 KB

Thanks @Berdir

note that by including 8.7 changes, you will not be able to commit this for another 6 month

Fine, I am not sure that we will need to have any release of this module in that timeframe anyway, based on current issue log.

So my suggestion is to just ... wait, and reroll this patch as thing move along. If there are critical issues leading to a new release in this timeframe, then we may consider to commit parts of this. Otherwise, the module does not really need to get the deprecated methods converted ATM. Also, additional complexity is that I made a lot of deprecations in the Imagemagick module 8.x-2.x that will pop up here, and I am considering to postpone its 3.0 release to 2020 - for the same reasons: 2.x works well along multiple Drupal releases.

Removed the long output list form the IS and added here as a file.

waverate’s picture

Also, additional complexity is that I made a lot of deprecations in the Imagemagick module 8.x-2.x that will pop up here, and I am considering to postpone its 3.0 release to 2020

@mondrake. Are you suggesting that 8.x-2.x will not be supported in D9? The 8.x-3.x branch will be the way to go?

mondrake’s picture

@waverate

Are you suggesting that 8.x-2.x will not be supported in D9? The 8.x-3.x branch will be the way to go?

Of the Imagemagick module? Yes. Imagemagick 8.x-3.x branch is already on par with core deprecations up to D8.7, and also removes all of the deprecations of the IM 8.x-2.x branch.

waverate’s picture

@mondrake. Sorry my mistake. I misread and thought you were talking about image_effects-8.x-2.x not being supported in D9.

mondrake’s picture

#30: we will likely need a new branch for Image Effects, too, that will work with D8.8, D8.9 and D9+.

If we go for that then we could still backport issues to Image Effects 8.x-2.x that could run on D8.7 and less.

If we start removing deprecated code from Image Effects 8.x-2.x NOW, then it becomes impossible to have new releases of 8.x-2.x that work on earlier D8 versions.

We have options and approx 6-8 months to take a decision ATM.

mondrake’s picture

Title: Drupal 9 Deprecated Code Report » Drupal 9 Deprecated Code Removal
Status: Postponed » Needs review
Issue tags: -Novice
StatusFileSize
new51.95 KB
new3.19 KB

Rerolled and removed 1.x->2.x update path and test

Status: Needs review » Needs work

The last submitted patch, 32: 3042604-32.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new54.97 KB
new5.1 KB
mondrake’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev
mondrake’s picture

StatusFileSize
new52.63 KB

Reroll.

Status: Needs review » Needs work

The last submitted patch, 36: 3042604-36.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new8.13 KB
new55.79 KB

More deprecations

Status: Needs review » Needs work

The last submitted patch, 38: 3042604-38.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new56.11 KB
new590 bytes

Status: Needs review » Needs work

The last submitted patch, 40: 3042604-40.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new56.62 KB
new1.59 KB

Status: Needs review » Needs work

The last submitted patch, 42: 3042604-42.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new688 bytes
new56.57 KB

Status: Needs review » Needs work

The last submitted patch, 44: 3042604-44.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new56.61 KB
new678 bytes

Status: Needs review » Needs work

The last submitted patch, 46: 3042604-46.patch, failed testing. View results

mondrake’s picture

Status: Needs work » Needs review
StatusFileSize
new56.57 KB
new1.38 KB

  • mondrake committed 8e58a1c on 8.x-3.x
    Issue #3042604 by mondrake, Sergiu Stici, harsha012, rocket.man: Drupal...
mondrake’s picture

Status: Needs review » Fixed

Committed to 8.x-3.x. Thank you!

Status: Fixed » Closed (fixed)

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