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
feat(model): add options.include[].right
option
#11537
Conversation
Codecov Report
@@ Coverage Diff @@
## master #11537 +/- ##
==========================================
+ Coverage 92.47% 96.26% +3.78%
==========================================
Files 91 94 +3
Lines 8895 9182 +287
==========================================
+ Hits 8226 8839 +613
+ Misses 669 343 -326
Continue to review full report at Codecov.
|
Add ability to specify a right join for associations Closes #4187
Hello! I see you are a first-time contributor, thank you for taking the time to help Sequelize! I hope to see more PRs from you in the future! I have reopened the issue 👍 I don't have time to look into your PR now though |
Do you consider this PR ready for merge or is it still a work in progress? |
Yes, finished it up last night. Had to make some updates in regards to sqlite not supporting right joins. |
This looks good, but I am not sure about the current sqlite behavior. Currently, if I pass |
Is there any precedence for this? How does the library currently handle unsupported features in dialects? The only one I found was I am open to other ways. |
I'm not sure really... Let's see what @sushantdhiman thinks about it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now I don't think we need to warn users about right
being ignored for given dialect, they should be aware of SQL joins available in that dialects. If there are some complaints regarding this, we can add a warning when parsing include options
🎉 This PR is included in version 5.20.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Thank you very much for the help @ckeboss!! |
Pull Request check-list
Please make sure to review and check all of these items:
npm run test
ornpm run test-DIALECT
pass with this change (including linting)?Description of change
Add ability to specify a right join for associations
Addresses #4187, should we reopen it?
test/integration/model/count.test.js
was changed due to the linter. I can revert it if you would like.