Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated #search method #1147

Merged

Conversation

y-yagi
Copy link
Contributor

@y-yagi y-yagi commented Sep 8, 2020

#search is deprecated in v2.1.1 and it scheduled to remove the method in v2.3.
#975

But the method still exists in v2.3.2. So let's remove the method.

If we removed the method, users can remove the patch for search (ActiveRecord::Base.class_eval('remove_method :search').

@y-yagi
Copy link
Contributor Author

y-yagi commented Sep 8, 2020

Hmm. Tests against 6-0-stable don't pass in master branch also.

@yahonda
Copy link
Contributor

yahonda commented Nov 15, 2020

Test failure against 6-0-stable is triggered by rails/rails#39268 .

@yahonda
Copy link
Contributor

yahonda commented Nov 15, 2020

I've just found this failure but have no idea how to fix it yet. Also, this method should be Rails non-public API which can be changed without warnings.

@yahonda
Copy link
Contributor

yahonda commented Nov 25, 2020

FYI #1171 addresses the CI failure.

@scarroll32
Copy link
Member

@y-yagi please rebase and rerun the CI

@y-yagi
Copy link
Contributor Author

y-yagi commented Nov 25, 2020

@seanfcarroll Done!

@scarroll32
Copy link
Member

Thanks @y-yagi as this is removing deprecated functions, it should be on a major version bump, ie: 3.0.0

Will do it when that version is released.

@scarroll32
Copy link
Member

@y-yagi FYI we can probably do a major version bump soon, so thank you for being patient.

@scarroll32 scarroll32 mentioned this pull request Feb 24, 2021
13 tasks
@deivid-rodriguez
Copy link
Contributor

@y-yagi Can you rebase this? I think we can proceed with Ransack 3.0.0 now and include this PR.

`#search` is deprecated in v2.1.1 and it scheduled to remove the
method in v2.3.
activerecord-hackery#975

But the method still exists in v2.3.2. So let's remove the method.

If we removed the method, users can remove the patch for `search`
(`ActiveRecord::Base.class_eval('remove_method :search'`).
@y-yagi
Copy link
Contributor Author

y-yagi commented Mar 10, 2022

@deivid-rodriguez Done!

Copy link
Contributor

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants