-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
update imports for strawberry 0.236.0 #187
Conversation
Reviewer's Guide by SourceryThis pull request updates the import statements in 'src/strawberry_sqlalchemy_mapper/relay.py' to be compatible with the new code structure introduced in strawberry 0.236.0. Specifically, the imports for 'StrawberryContainer' and 'get_object_definition' were changed from 'strawberry.type' to 'strawberry.types.base'. File-Level Changes
Tips
|
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.
Hey @novag - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
CodSpeed Performance ReportMerging #187 will not alter performanceComparing Summary
|
I'll check this this week 😊 not sure what happened with the CI :D |
Any update here? It would be great to merge this in to unblock strawberry updates. Happy to contribute somehow. |
Hi, @novag |
Hi, @novag , we have fixed the CI, can you please update your branch from main? |
e523c8e
to
804c0e2
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #187 +/- ##
=======================================
Coverage 85.38% 85.38%
=======================================
Files 16 16
Lines 1615 1615
Branches 128 128
=======================================
Hits 1379 1379
Misses 183 183
Partials 53 53 |
Thanks, @novag , please fix the failed tests when you can 😉 |
Just to make your job a little more fast, I've checked that you cax fix by just changing I've tested this locally and worked on both failing tests |
Yes, thanks. I'm trying to determine what has changed that's now preventing the linter from inferring the lambda type. |
Hi @novag, I hope the investigation is going well! It’s been a week since we last discussed it. What do you think about pushing the current changes, especially to the tests, to see if the link tests are still failing? Let me know if you need any help! |
@novag I noticed that the CI failed again on the lint check, but there's also a new error that has surfaced. It seems related to the new Ubuntu LTS (benchmark) and the Python environment (test matrix generation). I'll investigate further on another PR. |
Hi, @novag , the CI fix is already on main, please update your branch when you can. |
@Ckk3 Thanks for fixing the CI! I am currently very limited in time, however I will have another look at the linter error today or tomorrow. |
Hi @novag. It would be great to get this done. There are features in newer versions of strawberry that are very useful for my firm and we are blocked on using them until this is resolved. |
mypy fails at line 213 in If anyone is more familiar with mypy, I would appreciate any input. |
I like this option, what you guys think @patrick91 @bellini666 @TimDumol ? |
I think it is fine to ignore that specific error, even more because it is not actually related to this PR :) |
LGTM, let's just wait to see what the other maintainers think. |
Thanks for contributing to Strawberry! 🎉 You've been invited to join You can also request a free sticker by filling this form: https://forms.gle/dmnfQUPoY5gZbVT67 And don't forget to join our discord server: https://strawberry.rocks/discord 🔥 |
Thanks @novag ! |
Description
strawberry 0.236.0 changed the code structure which requires adjusting the imports.
Types of Changes
Issues Fixed or Closed by This PR
Checklist
Summary by Sourcery
This pull request updates the import paths in the
relay.py
file to be compatible with the changes in the code structure of strawberry 0.236.0, ensuring the project remains functional with the latest version.