Skip to content

WIP: Removing default scope in Sortable

What does this MR do?

It removes the default scope from Sortable.

Are there points in the code the reviewer needs to double check?

It may be tricky to find which controllers/APIs depend on this at the moment.

Why was this MR needed?

#23075 (closed) illustrates the perils of adding a default scope. For example, the ORDER BY can cause a significant performance issue by causing the SQL optimizer to use a non-ideal index.

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #23079 (closed)

Merge request reports