Open segiddins opened 4 months ago
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails team are limited, and so we are asking for your help.
If you can still reproduce this error on the 7-2-stable
branch or on main
, please reply with all of the information you have about it in order to keep the issue open.
Thank you for all your contributions.
still an issue
Steps to reproduce
Have the following set of related models, and use the
reverse_dependencies
relation. Observe (via the inline comments in the test case below) that there is an unnecessary/redundant joinExpected behavior
The additional join should not be added, since it's an inner join and the
"versions"."id" = "dependencies"."version_id"
restriction guarantees it does not add any additional filteringActual behavior
There is an unused join to
"versions" "versions_dependencies"
System configuration
Rails version: 7.1.3.2
Ruby version: 3.3.0