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

Deprecate config.active_record.warn_on_records_fetched_greater_than #51007

Conversation

hundredwatt
Copy link
Contributor

Deprecate config.active_record.warn_on_records_fetched_greater_than setting in favor of #50887.

The same functionality (and more) can now be achieved by subscribing to sql.active_record notifications:

image

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.
  • CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.

activerecord/CHANGELOG.md Outdated Show resolved Hide resolved
activerecord/CHANGELOG.md Outdated Show resolved Hide resolved
activerecord/lib/active_record/railtie.rb Outdated Show resolved Hide resolved
activerecord/lib/active_record/railtie.rb Outdated Show resolved Hide resolved
hundredwatt and others added 2 commits February 12, 2024 19:52
Co-authored-by: Rafael Mendonça França <rafael@franca.dev>
@hundredwatt hundredwatt force-pushed the deprecate-config.active_record.warn_on_records_fetched_greater_than branch from e2e7145 to 48112e9 Compare February 13, 2024 02:53
@rafaelfranca rafaelfranca merged commit fc9ed11 into rails:main Feb 13, 2024
4 checks passed
@hundredwatt hundredwatt deleted the deprecate-config.active_record.warn_on_records_fetched_greater_than branch February 15, 2024 14:50
Ridhwana pushed a commit to Ridhwana/rails that referenced this pull request Mar 7, 2024
…ails#51007)

* Deprecate config.active_record.warn_on_records_fetched_greater_than

* Review changes

Co-authored-by: Rafael Mendonça França <rafael@franca.dev>

---------

Co-authored-by: Jason Nochlin <hundredwatt@users.noreply.github.com>
Co-authored-by: Rafael Mendonça França <rafael@franca.dev>
viralpraxis pushed a commit to viralpraxis/rails that referenced this pull request Mar 24, 2024
…ails#51007)

* Deprecate config.active_record.warn_on_records_fetched_greater_than

* Review changes

Co-authored-by: Rafael Mendonça França <rafael@franca.dev>

---------

Co-authored-by: Jason Nochlin <hundredwatt@users.noreply.github.com>
Co-authored-by: Rafael Mendonça França <rafael@franca.dev>
fractaledmind pushed a commit to fractaledmind/rails that referenced this pull request May 13, 2024
…ails#51007)

* Deprecate config.active_record.warn_on_records_fetched_greater_than

* Review changes

Co-authored-by: Rafael Mendonça França <rafael@franca.dev>

---------

Co-authored-by: Jason Nochlin <hundredwatt@users.noreply.github.com>
Co-authored-by: Rafael Mendonça França <rafael@franca.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants