Skip to content

Releases: torchbox/wagtail-grapple

Correct horse staple, er, media and singural query field

Choose a tag to compare

@zerolab zerolab released this 08 Dec 19:07

This is a bugfix release

  • Fix: use correct media type in GraphQLMedia #142
  • Fix @register_singular_query_field usage with non-Wagtail page models did not return any results

Custom wagtailmedia models too

Choose a tag to compare

@zerolab zerolab released this 12 Nov 15:55

This is a small bug fix to correctly support custom Media models

Small, but specific

Choose a tag to compare

@zerolab zerolab released this 06 Nov 11:54

PageChooserBlocks now return specific page instances

Collection queries

Choose a tag to compare

@zerolab zerolab released this 04 Nov 16:23

We now support Collection queries!
Note, these are Wagtail collections for image and document organisation, rather than the GraphQLCollection field type.

New features

Fixes

  • Fix StubModel already registered RuntimeWarning (#133). @zerolab
  • Add .live().public() to all relevant methods (#129). Thanks @mmmente
  • Various tidy ups

Newer versions, site query and more!

Choose a tag to compare

@zerolab zerolab released this 07 Oct 13:14

This release brings support for Django >= 2.2, < 3.2, provides a site query, a GraphQLTag field type, better output for nested StructBlocks, rendered embed markup and raw data for EmbedBlocks, documentation updates and more

New features

  • Multi-site support - add SitesQuery and resolve pages based on site (#115) Thanks @leewesleyv
  • Add GraphQLTag model (#124) Thanks @ruisaraiva19
  • Add embed data for StreamField Embed blocks (#122)
  • Add register_singular_query_field decorator (#112)
  • Add token/slug support to register_query_field/register_paginated_query_field (#108)

Fixes

  • Fix parent attribute (#127)
  • Fix nested StructBlock not resolving (#118)
  • Fix pageType returns null
  • Fix: use url instead of urlPath in redirections (#109) Thanks @fabienheureux

Other

  • Make wagtailmedia an optional dependency (#106)
  • Add GraphQLPage to model types docs (#119) @zerolab
  • Remove unused imports and cleanup repeat queries (#113)
  • Update supported versions (#105)

Django Pagination

Choose a tag to compare

@zerolab zerolab released this 02 Sep 12:13

This release adds Django-like pagination via a register_paginated_query_field decorator.

Changelog

Wagtail 2.10, Django 3.0 and more

Choose a tag to compare

@zerolab zerolab released this 21 Aug 09:10

This release adds support for Wagtail 2.10 and Django 3.0, adds a number of fixes and new features.

Upgrade considerations

  • Channels-related functionality is now optional in order to unblock Django 3.0.x compatibility. If you are using Grapple with Channels, you need to change your requirements to wagtail_grapple[channels]. Unfortunately, Channels currently works only with Django 2.x. We welcome all help with #86
  • All media (core Image, Document and wagtailmedia Media) have a url attribute that returns the full URL to the file.
    • The file attribute on MediaObjectType now returns the relative path. Use url for the full URL
    • The src attribute on BaseImageObjectType is now deprecated in favour of url

Changelog

  • Add non-nullable support to register_query_field decorator (#62). Thanks to @ruisaraiva19
  • Add url to DocumentObjectType (#95). Thanks to @tbrlpld
  • Fix StructValue' object has no attribute 'value' (#92). Thanks to @timmysmalls and @zerolab
  • Use consistent media url attributes (#97). @zerolab
    • Custom Media classes are now supported too
      Fix typos, update links, and lint files with pre-commit (#91) Thanks to @ruisaraiva19
  • Wheel packages are now created as well. @zerolab

Wagtail 2.7, proper

Choose a tag to compare

@zerolab zerolab released this 14 Dec 12:42

Fixes packaging issue that prevented installation with Wagtail 2.7

The "forgotten migrations" release

Choose a tag to compare

@zerolab zerolab released this 14 Dec 12:52
  • Includes a missed migration
  • Includes the base url for the embed block when needed cb17c95

The nicer, more robust field definition release

Choose a tag to compare

@zerolab zerolab released this 14 Dec 12:50
  • Minimum python version bumped to 3.6
  • Improved field definition and under-the-hood implementation #28
  • Added conditional checks when resolving streamfield type #29