rails--rails/railties/test
Nick Holden c773ae65af Add `active_record.destroy_association_async_batch_size` configuration
This allows applications to specify the maximum number of records that
will be destroyed in a single background job by the `dependent:
:destroy_async` association option. By default, the current behavior
will remain the same: when a parent record is destroyed, all dependent
records will be destroyed in a single background job. If the number of
dependent records is greater than this configuration, the records will
be destroyed in multiple background jobs.

At GitHub, we have a custom method for destroying associated records
in the background that we'd like to replace with
`dependent: :destroy_async`. Some associations have a large number of
dependent records, and our infrastructure requires that background jobs
complete quickly, so we limit the maximum number of dependent records
destroyed in a single background job and enqueue additional jobs when
the number of records exceeds that limit.
2022-03-09 11:13:16 -07:00
..
application Add `active_record.destroy_association_async_batch_size` configuration 2022-03-09 11:13:16 -07:00
command Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
commands Change MessageEncryptor default serializer to JSON for Rails 7.1 2022-02-07 12:19:36 -05:00
configuration Get rid of unnecessary meta programming 2020-10-07 11:12:02 +09:00
engine Use the combined jsbundling-rails gem instead of individual js bundler gems (#43172) 2021-09-06 16:44:44 +02:00
fixtures Populate ARGV with Rails::Command.invoke args 2021-04-03 10:12:52 -05:00
generators Do not remove assets initializer when using propshaft 2022-03-04 14:43:29 -03:00
isolation Clean up database configs for railties 2022-01-07 14:57:29 -05:00
minitest Fix backtraces for generated plugin tests 2020-10-07 15:40:56 -05:00
railties Don't output the whole Rails::Railtie object 2022-02-28 20:27:07 +01:00
test_unit Fixed up error output tests and added a missing failure output test. 2020-05-20 15:54:28 -07:00
abstract_unit.rb Revert "You give jruby_skip & rubinius_skip a good name" 2019-08-02 00:24:11 -04:00
app_loader_test.rb Turn on performance based cops 2018-07-23 15:37:06 -07:00
backtrace_cleaner_test.rb Don't modify relative ./ paths in BacktraceCleaner 2019-10-03 14:06:58 -07:00
code_statistics_calculator_test.rb Add support for stylesheets and ERB views to `rails stats`. 2020-11-10 09:40:18 -07:00
code_statistics_test.rb
console_helpers.rb Enable `Performance/UnfreezeString` cop 2018-09-23 08:56:55 +09:00
engine_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
env_helpers.rb Enable `Style/ExplicitBlockArgument` cop 2021-09-05 17:06:19 +02:00
generators_test.rb Remove Command::Spellchecker and use DidYouMean for suggestions 2021-06-04 09:20:43 +02:00
initializable_test.rb
json_params_parsing_test.rb
path_generation_test.rb Remove deprecated `config.secret_token` 2019-01-17 16:08:34 -05:00
paths_test.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
rack_logger_test.rb Change the empty block style to have space inside of the block 2018-09-25 13:19:35 -04:00
rails_info_controller_test.rb Fix secret_key_base for Railties 2019-03-13 16:41:29 -04:00
rails_info_test.rb Revert "Merge pull request #34387 from yhirano55/rails_info_properties_json" 2019-01-08 22:21:20 +01:00
secrets_test.rb Enable `Style/RedundantBegin` cop to avoid newly adding redundant begin block 2018-12-21 06:12:42 +09:00
version_test.rb