-
Notifications
You must be signed in to change notification settings - Fork 100
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
Include test cases for joins #168
Include test cases for joins #168
Conversation
Could you provide context on what these tests are covering which was previously not covered? |
I'm going to need some help understanding this This is without: activerecord-multi-tenant/lib/activerecord-multi-tenant/multi_tenant.rb Lines 101 to 110 in 1c1def9
Are these non-multitenant associations which are failing to generate a condition? If this is an existing bug, why are the tests in this PR passing? |
These are multi_tenant associations present in gem's In case of the schema provided in the gem. For Are the tests passing for the PR in case of rails_6_1 too. Cause it is failing in the docker setup in my local. |
I'm confused because GitHub Actions doesn't seem to be running CI on this PR for some reason |
f4e38d7
to
dfeeb08
Compare
dfeeb08
to
202a614
Compare
Tests are failing for rails_6_1 and above |
In CI it's only failing for 5.2, & in that case the SQL looks right only it's relying on join condition (realizing now that this may be because your latest commit fixes the issue) |
In case of 5.2 the test is failing because when tenant is set in scope, the query generated has both tenant scoping condition Should push a fix soon. |
@serprex Issue happens only on older versions of rails 5.2 i.e., 5.2.3 (It is green on latest 5.2.8) |
I'm fine with removing 5.2.3 from CI |
Description rails is further adding a children node
2b44c90
to
8104621
Compare
No description provided.