Skip to content
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: Fix nested pagination/filtering/ordering not working when "only optimization" is disabled #569

Merged

Conversation

aprams
Copy link
Contributor

@aprams aprams commented Jun 29, 2024

Description

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Documentation

Issues Fixed or Closed by This PR

Fix #563

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

@@ -1055,7 +1055,7 @@ class DjangoOptimizerExtension(SchemaExtension):
def __init__(
self,
*,
enable_only_optimization: bool = True,
enable_only_optimization: bool = False,
Copy link
Contributor Author

@aprams aprams Jun 29, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this here as I didn't find an easy way to do it from the test itself.
If the only optimization is True, the test works as expected!

@bellini666
Copy link
Member

Thanks @aprams :)

I think I found the issue, going to use this PR to send the fix

@bellini666 bellini666 changed the title MRE for nested pagination failing fix: Fix nested pagination/filtering/ordering not working when "only optimization" is disabled Jun 30, 2024
@bellini666 bellini666 merged commit 7c68594 into strawberry-graphql:main Jun 30, 2024
20 checks passed
@aprams
Copy link
Contributor Author

aprams commented Jul 1, 2024

@bellini666 this worked! 🚀
You rock 🪨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimizer ignores/disables nested pagination
2 participants