Skip to content

Releases: torchbox/wagtail-grapple

v0.31.0

21 Apr 09:23
Immutable release. Only release title and notes can be modified.
5c8f8a7

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.30.0...v0.31.0

v0.30.0

20 Mar 13:49

Choose a tag to compare

What's Changed

  • Feat: Adding the option of importing interfaces from strings by @Hercilio1 in #423
  • Bugfix: Add WAGTAILADMIN_BASE_URL in the get_media_item_url function by @Hercilio1 in #422
    • Replaced obsolete BASE_URL setting with WAGTAILADMIN_BASE_URL
  • [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci[bot] in #424

New Contributors

Full Changelog: v0.29.0...v0.30.0

v0.29.0 - Wagtail 7.0

02 Jul 10:24

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.28.0...v0.29.0

ImageBlock and Wagtail 6.4

18 Feb 10:57
250e148

Choose a tag to compare

What's Changed

Full Changelog: v0.27.0...v0.28.0

v0.27.0 - Interfaces and filters

24 Sep 15:47
86f0357

Choose a tag to compare

What's Changed

Full Changelog: v0.26.0...v0.27.0

v0.26 - nullable core chooser blocks

26 Jun 10:38
07edf85

Choose a tag to compare

What's Changed

Full Changelog: v0.25.1...v0.26.0

v0.25.1 - Clean up

22 Apr 08:27
b2c6a5a

Choose a tag to compare

Removes pre-Wagtail 5.2 conditional code.

Improves the logic for fetching renditions for SVGs when none of the passed filters are valid: now we return the original SVG, rather than throw an error

v0.25 - Wagtail 5.2+, Django 4.2+

12 Apr 11:58
460060e

Choose a tag to compare

This is mostly a tidy up release - adds Wagtail 6 and Django 5.0 support, and drops support for Wagtail < 5.2, Django < 4.2

What's Changed

Full Changelog: v0.24.0...v0.25.0

v0.24 - better redirects for multi-site setups

05 Jan 17:10

Choose a tag to compare

This release makes working with redirects in multi-site setups easier by adding more details. It:

  • Exposes the site field.
  • Supports redirects without a new_url or page thus making HTTP 410 handling possible.
  • Returns one result per associated site.

Warning

This is a breaking change release.

  • The new_url in results now takes into account the Redirect site. Previously, this would always use BASE_URL (from the settings file)
  • Redirects that apply to all sites (i.e. not associated with a specific site) now appear multiple times when querying - one for each Site created in Wagtail.

Upgrade considerations

In a multi-site setup, you should add the site field to any redirect queries to help disambiguate between redirects that apply to all sites.

For example, given we have two Sites created in Wagtail:

  1. https://www.example.com
  2. https://www.another-example.com

and a single Redirect from old-path to new-path that is not associated with any specific site (and thus applies to all sites).

Previously, querying for a redirect:

{
  redirects {
    newUrl
    oldUrl
    oldPath
    page {
      id
    }
    isPermanent
  }
}

would produce:

{
  "data": {
    "redirects": [
      {
        "isPermanent": true,
        "newUrl": "http://www.example.com/new-path",
        "oldPath": "/old-path",
        "oldUrl": "http://www.example.com/old-path",
        "page": null
      }
    ]
  }
}

which excludes the redirect that applies to https://www.another-example.com.

As of this release, the same query would produce:

{
  "data": {
    "redirects": [
      {
        "isPermanent": true,
        "newUrl": "http://www.example.com/new-path",
        "oldPath": "/old-path",
        "oldUrl": "http://www.example.com/old-path",
        "page": null,
      },
      {
        "isPermanent": true,
        "newUrl": "http://www.another-example.com/new-path",
        "oldPath": "/old-path",
        "oldUrl": "http://www.another-example.com/old-path",
        "page": null,
      }
    ]
  }
}

To disambiguate the results, you should add site to your query, for example:

{
  redirects {
    newUrl
    oldUrl
    oldPath
    page {
      id
    }
    isPermanent
    site {
      hostname
    }
  }
}

which would return:

{
  "data": {
    "redirects": [
      {
        "isPermanent": true,
        "newUrl": "http://www.example.com/new-path",
        "oldPath": "/old-path",
        "oldUrl": "http://www.example.com/old-path",
        "page": null,
        "site": {
          "hostname": "www.example.com"
        }
      },
      {
        "isPermanent": true,
        "newUrl": "http://www.another-example.com/new-path",
        "oldPath": "/old-path",
        "oldUrl": "http://www.another-example.com/old-path",
        "page": null,
        "site": {
          "hostname": "www.another-example.com"
        }
      }
    ]
  }
}

What's Changed

New Contributors

Full Changelog: v0.23.0...v0.24.0

v0.23 - preserveSvg everywhere, by default

29 Sep 10:52
5818f7b

Choose a tag to compare

This releases ensures srcSet supports the preserveSvg flag, and that the flag is True by default

What's Changed

Full Changelog: v0.22.0...v0.23.0