Releases: torchbox/wagtail-grapple
Release list
Correct horse staple, er, media and singural query field
This is a bugfix release
- Fix: use correct media type in GraphQLMedia #142
- Fix
@register_singular_query_fieldusage with non-Wagtail page models did not return any results
Custom wagtailmedia models too
This is a small bug fix to correctly support custom Media models
Small, but specific
PageChooserBlocks now return specific page instances
Collection queries
We now support Collection queries!
Note, these are Wagtail collections for image and document organisation, rather than the GraphQLCollection field type.
New features
- Support Wagtail 2.11. Further testing welcome!
- Add collections types (#111). Thanks @fabienheureux
- Add hook for registering query mixins (#132). See documentation. @zerolab
- Add webpquality support for renditions (#130). Thanks @ruisaraiva19
Fixes
Newer versions, site query and more!
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_fielddecorator (#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
Django Pagination
This release adds Django-like pagination via a register_paginated_query_field decorator.
Changelog
- Add pagination support (#101). Thanks @ruisaraiva19
- Add contributors to README.md (#102) following the all-contributors specification. Thanks @ruisaraiva19
Wagtail 2.10, Django 3.0 and more
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,Documentand wagtailmediaMedia) have aurlattribute that returns the full URL to the file.- The
fileattribute onMediaObjectTypenow returns the relative path. Useurlfor the full URL - The
srcattribute onBaseImageObjectTypeis now deprecated in favour ofurl
- The
Changelog
- Add non-nullable support to
register_query_fielddecorator (#62). Thanks to @ruisaraiva19 - Add
urltoDocumentObjectType(#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
Mediaclasses are now supported too
Fix typos, update links, and lint files with pre-commit (#91) Thanks to @ruisaraiva19
- Custom
- Wheel packages are now created as well. @zerolab
Wagtail 2.7, proper
Fixes packaging issue that prevented installation with Wagtail 2.7
The "forgotten migrations" release
- Includes a missed migration
- Includes the base url for the embed block when needed cb17c95