Comments

longwave created an issue. See original summary.

longwave’s picture

Status: Active » Needs review
StatusFileSize
new158.8 KB

First pass at this; I probably missed some things, but there is also the deprecation testing code that we need to keep for future deprecations.

Status: Needs review » Needs work

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

longwave’s picture

Status: Postponed » Needs review
StatusFileSize
new158.13 KB

Let's try again with the REGIONS_* constants back in.

Status: Needs review » Needs work

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

andypost’s picture

It should not be blocked on the deprecation of constants because @alexpott said it will be ready for work in 9.1

longwave’s picture

Status: Needs work » Needs review
Related issues: +#3015811: Properly deprecate DRUPAL_USER_TIMEZONE_* constants
StatusFileSize
new151.58 KB
new10.68 KB

Also needs #3015811: Properly deprecate DRUPAL_USER_TIMEZONE_* constants and #3075490: Move simpletest module to contrib.

This patch restores more constants, adds back the deprecated version of AssertPageCacheContextsAndTagsTrait still used by WebTestBase, and removes another test and some unused use statements.

berdir’s picture

+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * @coversDefaultClass \Drupal\Core\Path\AliasStorage
- *
- * @group path
- * @group legacy
- */
-class DeprecatedPathHooksTest extends KernelTestBase {

This overlaps with #3092090: Remove legacy Path Alias subsystem, I don't think the implementation of this actually gets removed here as that is in path_alias module. I'd suggest to remove it from this patch.

longwave’s picture

StatusFileSize
new148.73 KB
new2.85 KB

Fixed #9.

berdir’s picture

Issue tags: +ContributionWeekend2020, +ContributionWeekendCH
StatusFileSize
new147.99 KB

Reroll. Also removing core/modules/system/src/Plugin/views/field/BulkForm.php now that the update path is gone.

There are a few left-over deprecated things that we apparently can't remove yet, as they are still used (constants, test trait) or are actually testing the deprecation handling itself.

Status: Needs review » Needs work

The last submitted patch, 11: 3097453-11.patch, failed testing. View results

berdir’s picture

Status: Needs work » Needs review
StatusFileSize
new149.03 KB
new1.04 KB

Yay, so removing BulkForm works now too. Fixed the plugin test, the media_library test looks like a random fail.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs followup

There are a few left-over deprecated things that we apparently can't remove yet, as they are still used (constants, test trait) or are actually testing the deprecation handling itself.

Ideally we'd have a follow-up issue created that lists those. But … I don't think neither the existence of the follow-up issue nor the need for a follow-up issue should block this. Because

33 files changed, 8 insertions, 3361 deletions.

… goes a very substantial way towards getting to a point of having no more deprecated code in Drupal 9 core, and hence gets us closer to 9.0.0. This will help get the chart at https://dev.acquia.com/drupal9/deprecation_status/graphs a lot closer to zero.

(This patch removes 27 occurrences of @deprecated, or 8% of the remaining ones as of Monday January 20.)

Reviewed the entire patch. This looks ready :) 🚢

wim leers’s picture

Status: Reviewed & tested by the community » Needs work

also removing core/modules/system/src/Plugin/views/field/BulkForm.php now that the update path is gone.

D'oh, just noticed

  /**
   * List of deprecated plugin classes.
   *
   * @var string[]
   */
  protected $deprecatedPlugins = [
    'Drupal\system\Plugin\views\field\BulkForm',
  ];

in \Drupal\Tests\views\Kernel\PluginInstanceTest. We'll need to remove that too, since this patch is removing that class.

Sorry, @Berdir :)

jeroent’s picture

Status: Needs work » Needs review
StatusFileSize
new150.44 KB
new1.54 KB

Patch attached removes the deprecatedPlugins check as suggested in #15.

jeroent’s picture

Issue tags: +DUGBE
wim leers’s picture

Status: Needs review » Needs work

Woah, you were on that really fast, @JeroenT, thanks! 🙏

+++ b/core/modules/views/tests/src/Kernel/PluginInstanceTest.php
@@ -87,23 +78,17 @@
    * filtering out deprecated plugins.

🤓 Nit: This comment has not yet been updated.

D'oh, nope, we can't do most of what's in #16, no matter how tempting it is 😞 Because it ironically would itself introduce a BC break!

The BC break here is that contrib/custom modules may be subclassing \Drupal\Tests\views\Kernel\PluginInstanceTest and may be expanding the deprecatedPlugins class property and/or they may be calling ::assertPluginInstances(FALSE). The #16 interdiff would break those modules, without that first having been deprecated.

So, all of #16 needs to be reverted, and we just need the deprecatedPlugins class property to be set to the empty array.

jeroent’s picture

Status: Needs work » Needs review
StatusFileSize
new149.33 KB
new1.48 KB

🤦‍♂️Reverted #16 and replaced the deprecatedPlugins property with an empty array.

wim leers’s picture

Status: Needs review » Reviewed & tested by the community

Perfect, thanks!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Needs followup

Nice!

Committed 46bd90d and pushed to 9.0.x. Thanks!

As far as I can see follow-ups exist for the things that are still deprecated.

  • alexpott committed 46bd90d on 9.0.x
    Issue #3097453 by longwave, JeroenT, Berdir, Wim Leers: Remove system....

Status: Fixed » Closed (fixed)

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