Skip to content

Add RuboCop rule for async index method helpers

Jon Jenkins requested to merge 381699-async-index-post-only into master

What does this MR do and why?

Adds a rubocop rule that only allows async index helper methods to run in post-deployment migrations.

See original issue for more context.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

Add a prepare_async_index method call to any migration under db/migrate and run rubocop on that file. It should generate a violation. Add the same method call to any migration under db/post_migrate and it should not produce a violation.

Related to #381699 (closed)

Merge request reports

Loading