Problem/Motivation

There's functions deprecated for removal in core 10

Proposed resolution

remove the usage, make sure no mentions left

Remaining tasks

review/commit

User interface changes

no

API changes

no

Data model changes

no

Release notes snippet

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

andypost created an issue. See original summary.

andypost’s picture

Status: Active » Needs review
FileSize
9.67 KB

Status: Needs review » Needs work

The last submitted patch, 2: 3261239-2.patch, failed testing. View results

andypost’s picture

Status: Needs work » Needs review
FileSize
914 bytes
10.12 KB

Remove leftover usage

andypost’s picture

longwave’s picture

Status: Needs review » Needs work

One more:

core/modules/search/src/SearchIndex.php
70:      @trigger_error('Calling ' . __METHOD__ . ' without $text_processor argument is deprecated in drupal:9.1.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3078162', E_USER_DEPRECATED);
andypost’s picture

Status: Needs work » Needs review
FileSize
1.37 KB
11.49 KB

Thanks, fixed!

Status: Needs review » Needs work

The last submitted patch, 7: 3261239-7.patch, failed testing. View results

andypost’s picture

Status: Needs work » Needs review

looks unrelated failure

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, this looks ready to go.

quietone’s picture

I agree I applied the patch and checked didn't find any occurrences of the removed functions.

quietone’s picture

Title: Remove deprecated search.module functions » Remove deprecations from search module

Checking my review. :-)

The patch is removing a deprecations from \Drupal\search\SearchIndex\SearchIndex.php, so changing title.

The following greps returned nothing, so it is getting all the deprecations from the search module.

$ grep -r "@deprecated" core/* | grep -v "node_modules" | grep -i "search"
$ grep -r "@group legacy" core/* | grep -v "node_modules" | grep -i "search"
$ grep -r "@trigger" core/* | grep -v "node_modules" | grep -i "search"

I did notice that the Drupal deprecation policy does not have a section for removing/changing a constructor parameter. That has no impact on this being committed. I'llresearch that later.

This looks ready to commit to me. I'll wait 24 hours to allow for comments.

Added credit for longwave

xjm’s picture

Looks good to me too. The one "gotcha" I checked for was the removal of a hook invocation without a corresponding deprecation of the hook definition, but I confirmed that the invocation has just been moved to core/modules/search/src/SearchTextProcessor.php instead. The hook is still an API and still in use.

xjm’s picture

I added https://www.drupal.org/about/core/policies/core-change-policies/drupal-d... -- I guess we never did before because it falls under the "best-effort deprecation warnings for internal code" category.

  • quietone committed 3194ddf on 10.0.x
    Issue #3261239 by andypost, longwave: Remove deprecations from search...
quietone’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 10.0.x.

Thank you!

xjm and I worked together on a call on this; adding credit for xjm and myself.

Status: Fixed » Closed (fixed)

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