Skip to content

Releases: MrThearMan/graphene-django-query-optimizer

Release 0.6.0

24 May 17:24
Compare
Choose a tag to compare

What's Changed

Features

  • Support swapping implementations of OptimizationCompiler, QueryOptimizer, FilterInfoCompiler, and FieldSelectionCompiler 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

Release 0.5.4

24 May 15:32
Compare
Choose a tag to compare

What's Changed

Features

  • Correctly optimize queries where the same field is defined mutiple times with different subfields

Automated

  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #106
  • Bump the python-dependencies group with 3 updates by @dependabot in #104
  • Bump MrThearMan/CI from 0.4.9 to 0.4.11 in the github-actions-dependencies group by @dependabot in #105
  • Bump the python-dependencies group with 2 updates by @dependabot in #107

Full Changelog: v0.5.3...v0.5.4

v0.5.3

10 May 16:32
Compare
Choose a tag to compare

What's Changed

Features

  • Don't throw error on zero offset to connection field

Full Changelog: v0.5.2...v0.5.3

Release 0.5.2

18 Apr 09:38
Compare
Choose a tag to compare

What's Changed

Features

  • Add a get_field_selections function for parsing field selections from query.

Automated


Full Changelog: v0.5.1...v0.5.2

Release 0.5.1

04 Apr 08:54
Compare
Choose a tag to compare

What's Changed

Features

  • Add support for optimizing GenericRelations & GenericForeignKeys #66
    • Does not fully support nested relations in GenericForeignKeys, as those would require GenericPrefetch from Django 5.0.

Full Changelog: v0.5.0...v0.5.1

Release 0.5.0

03 Apr 16:39
Compare
Choose a tag to compare

What's Changed

Features

  • Removes the entire caching mechanism, rely entirely on queryset caching. Solves #86. Some API changes to RelatedField.

Automated


Full Changelog: v0.4.2...v0.5.0

Release 0.4.2

26 Mar 21:02
Compare
Choose a tag to compare

What's Changed

Fixes

  • Fixes issues with "alternate fields" queries together with their "original field" causing one of the results to have duplicate rows #87

Maintenance

  • Refactor testing setup

Automated


Full Changelog: v0.4.1...v0.4.2

Release 0.4.1

21 Mar 17:37
Compare
Choose a tag to compare

What's Changed

Features

  • Add MultiField and aliases parameter to AnnotatedField #85

Automated


Full Changelog: v0.4.0...v0.4.1

Release 0.4.0

17 Mar 12:21
Compare
Choose a tag to compare

What's Changed

Features

  • Replace @required_annotations with AnnotatedField #77
  • Replace @required_fields and @required_relations with the field_name argument to RelatedField, DjangoListField, and DjangoConnectionField #77

Fixes

  • Fix nested many-to-many related relay connection fields returning duplicate values, as well as limiting not working correctly #80

Maintenance

  • Simplify caching functions
  • Add select related before prefetches in optimizer

Full Changelog: v0.3.5...v0.4.0

Release 0.3.5

15 Mar 08:20
Compare
Choose a tag to compare

What's Changed

Fixes

  • Allow resolvers defined on the object type (e.g. resolve_{name}) to override the RelatedField default resolvers

Full Changelog: v0.3.4...v0.3.5