Problem/Motivation

During a review of #3575461: Cleanup any remaining deprecations it was discovered that deprecated/removed class names of Search module plugins remain in the code. The two old class names are:

  • NodeSearch
  • UserSearch

In particular, the moved classes, SearchNode and SearchUser, still contain the old class names in comments. But there is at least one other reference to NodeSearch elsewhere.

Proposed resolution

Update the references to the new plugin names as contained in the Search submodules. Also clean up an outdated reference to NodeSearchHooks being in the node module.

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3623051

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

dcam created an issue. See original summary.

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

sapnil_biswas’s picture

Status: Active » Needs review

updated the old NodeSearch and UserSearch class names to the new SearchNode and SearchUser

sapnil_biswas’s picture

Status: Needs review » Needs work
sapnil_biswas’s picture

Status: Needs work » Needs review

The failed tests don't seem to be in the scope, Marking this for review!

dcam’s picture

Issue summary: View changes
Status: Needs review » Needs work

Thank you for working on this. There are a few instances where we can simply delete the text. Though one is a bit subjective and someone else might disagree with me. I left suggestions on the MR for all of these. Please look them over.

quietone’s picture

This should have been done before Search was deprecating. I am adding it a child of the meta to do that deprecation

sapnil_biswas’s picture

Status: Needs work » Needs review
sapnil_biswas’s picture

I have addressed the review feedback by removing the unnecessary constructor docblocks and the @see attribute tag. Please let me know if any further changes are needed!

daffie’s picture

Status: Needs review » Reviewed & tested by the community

All the changes look good to me.
It is a bit confusing. We have the search_node module with the plugin "node_search", which has the class name "SearchNode". The same for the module "search_user.
For me it is RTBC.

needs-review-queue-bot’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new693 bytes

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

nod_’s picture

Status: Needs work » Reviewed & tested by the community

Bot had a nodejs version issue. resolved.

  • quietone committed 2704d9d4 on 11.x
    task: #3623051 Clean up references to moved Search plugins
    
    By: dcam
    By...

  • quietone committed 4bef24b8 on main
    task: #3623051 Clean up references to moved Search plugins
    
    By: dcam
    By...
quietone’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for helping to keep the documentation accurate.

Committed and pushed 4bef24b8d5e to main and 2704d9d41af to 11.x. Did not commit to 11.4.x because the node_user module is not in that version.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.