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
fix: pass CLS transaction to model hooks #13927
Conversation
Thank you for the PR :) |
Hi @ephys I tried! Couldn't figure out how to make it work though. I did test the change manually in our app though. Happy to give it a shot if you can guide. |
I'll try to take a stab at it next time I can |
Edit: nevermind it's not about query it's about the hook. 🤦♀️ |
I've added tests for this in branch Here they are: https://github.com/sequelize/sequelize/blob/feature/ephys/cls-in-hooks/test/integration/cls.test.js#L143 Feel free to copy them in your PR / to cherry pick the commit |
@ephys Still fails. Do you know why? |
Hi @heroic, did you get a chance to look at this again? Or is there something we can do to help? |
@WikiRik a colleague of mine is looking to get this closed! We should have this working soon |
Hi @AmirMelio I will be continuing it from here. |
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.
Test file typo
7758520
to
e1d4dc2
Compare
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.
any idea why these are failing?
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.
Sorry for the late response : (
GitHub has issues with the caching today, I'll rerun the checks after they have solved that incident. |
@ephys any updates? |
@ephys waiting for your feedback : ) |
@ephys can we merge it now : ) ? |
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.
There are a few unresolved comments from the previous review :)
e8d2346
to
aeecb25
Compare
Hey @ephys can you take a look now? |
This is great :) There are two remaining comments and then this is ready to merge:
Could you enable the option to allow maintainers to add commits on your branch once you are ready? We use it to update the branch before merging. |
Hi @ephys, since the fork is owned by an org, there isn't an option to enable |
I think we can try coordinating. If you can click the "update branch" button then @ me and/or @WikiRik, I'll merge this immediately before another PR |
@joker00777 we accidentally merged something else just now, could you update the branch once again? |
Sorry 😅 |
Thanks! After the tests pass, I'll merge this |
Thank You : ) |
There we go! Thanks again for working on this @joker00777 @heroic |
🎉 This PR is included in version 7.0.0-alpha.15 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Pull Request Checklist
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
Fixes: #12973
Todos