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

Ransack.search is deprecated. Use .ransack instead #7590

Merged

Conversation

viktorsmari
Copy link
Contributor

What? Why?

We are still using the soon to be deprecated Ransack's .search method. We should be using ransack instead.

When running tests on master we get this warning:

DEPRECATION WARNING: #search is deprecated and will be removed in 2.3, please use #ransack instead

Also, this dependabot PR was merged a few days ago (Bump ransack from 2.3.0 to 2.4.1):
#7545

Ransack's official PR:
activerecord-hackery/ransack#975

@codecov
Copy link

codecov bot commented May 8, 2021

Codecov Report

Merging #7590 (6a342ae) into master (5a16954) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #7590   +/-   ##
=======================================
  Coverage   93.20%   93.20%           
=======================================
  Files         635      635           
  Lines       18136    18136           
=======================================
  Hits        16903    16903           
  Misses       1233     1233           
Impacted Files Coverage Δ
app/services/permissions/order.rb 100.00% <100.00%> (ø)
.../open_food_network/order_and_distributor_report.rb 93.33% <100.00%> (ø)
...open_food_network/order_cycle_management_report.rb 100.00% <100.00%> (ø)
lib/open_food_network/payments_report.rb 78.20% <100.00%> (ø)
lib/open_food_network/reports/line_items.rb 96.29% <100.00%> (ø)
lib/open_food_network/xero_invoices_report.rb 97.89% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5a16954...6a342ae. Read the comment docs.

Copy link
Contributor

@Matt-Yorkley Matt-Yorkley left a comment

Choose a reason for hiding this comment

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

Nice, I've been meaning to do this for a while.

Thanks!

Copy link
Contributor

@andrewpbrett andrewpbrett left a comment

Choose a reason for hiding this comment

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

I'd say we're covered by the build in this case, what do you think @Matt-Yorkley?

@andrewpbrett andrewpbrett merged commit 3239c89 into openfoodfoundation:master May 10, 2021
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.

3 participants