Releases: MrThearMan/graphene-django-query-optimizer
Releases · MrThearMan/graphene-django-query-optimizer
Release 0.8.2
What's Changed
Features
- Add initial pagination infomation from connection fields to the request. This can be used if the queryset needs to be evaluated before the optimizer does.
Automated
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #115
Full Changelog: v0.8.1...v0.8.2
Release 0.8.1
What's Changed
Fixes
- Fix issues with aliasing the same nested list field with different filters. Previously, only the latter field's filters would be applied, and optimizations would not work as expected.
Automated
- Bump the python-dependencies group with 4 updates by @dependabot in #111
- Bump graphene-django from 3.2.1 to 3.2.2 in the python-dependencies group by @dependabot in #114
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #110
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #112
Full Changelog: v0.8.0...v0.8.1
Release 0.8.0
What's Changed
- Refactor the internals of the QueryOptimizer class.
- Change
pre_compilation_hook
topre_optimization_hook
and change its interface - Change the execution order of the optimization steps. Filterset filters are now run last, which gives them the opportunity to use information from joined models in the query (advanced feature, shouldn't affect regular use)
Full Changelog: v0.7.2...v0.8.0
Release 0.7.2
Release 0.7.1
What's Changed
Fixes
- Make
args
onManuallyOptimizedField
optional, and do not require them for the optimization method.
Full Changelog: v0.7.0...v0.7.1
Release 0.7.0
What's Changed
Features
- Replaces
PreResolvingField
withManuallyOptimizedField
. This field allows for fully custom optimization strategies. - Adds a
optimization_hook
method-hook that the optimizer looks for in ObjectType Fields. This method can be used to alter how custom fields behave with the optimizer.
Automated
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #109
Full Changelog: v0.6.3...v0.7.0
Release 0.6.3
What's Changed
Features
- Add parent ref to optimizer
- Fix issue with promoting
select_related
toprefetch_related
in nested optimizers.
Full Changelog: v0.6.2...v0.6.3
Release 0.6.2
What's Changed
- Run pre-compilation checks for all
select_related
optimizers.
Full Changelog: v0.6.1...v0.6.2
Release 0.6.1
What's Changed
Features
- Adds a pre-resolving field which can be used to optimize fields that require arguments.
- Adds a pre-compilation hook to object types for mofidying optimizer contents manually before optimization happens.
Automated
- Bump the python-dependencies group with 2 updates by @dependabot in #108
Full Changelog: v0.6.0...v0.6.1
Release 0.6.0
What's Changed
Features
- Support swapping implementations of
OptimizationCompiler
,QueryOptimizer
,FilterInfoCompiler
, andFieldSelectionCompiler
by subclassing them. This makes the library code use whatever subclass has been most recently created for these classes, which can be used to modify specific parts of them without rewriting large parts of the library that use those classes.
Full Changelog: v0.5.4...v0.6.0