Repository navigation
Upgrade Wagtail from 7.3.4 to 8.1 - #17498
stevejalim wants to merge 2 commits into
Conversation
Port of mozmeao/springfield#2045. Codebase changes needed beyond the dep bump: * The Smartling visual-context callback strips the page's own site root URL rather than the default site's, with a test covering a page on a non-default site. * The Wagtail docs links in AGENTS.md point at 8.1. * The WAGTAIL_ENABLE_UPDATE_CHECK comment no longer claims we track LTS. Adds Wagtail's own migrations (form state, API token, search text fields). No migrations of our own. Wagtail 8.1 was uploaded on 2026-11-02, inside the 7-day cooldown, so pyproject.toml exempts it. Remove `wagtail = false` on or after 2026-11-10.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #17498 +/- ##
=======================================
Coverage 85.63% 85.63%
=======================================
Files 172 172
Lines 8729 8729
=======================================
Hits 7475 7475
Misses 1254 1254 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
🟡 Changes recommended
An active blocking security finding remains because the expired certifi cooldown exemption still permits selecting releases newer than the repository’s seven-day supply-chain cooldown.
1 open issue
What changed in this PR
Upgrades Bedrock from Wagtail 7.3.4 to 8.1 and updates Smartling visual-context handling for pages hosted on non-default sites.
Changes:
- Updates Wagtail and its transitive dependencies, migrations, and lockfile entries.
- Uses the page’s associated site when stripping URLs from Smartling visual context, with regression coverage.
- Updates Wagtail documentation links and the update-check configuration comment.
- Follow-up is required for the expired
certificooldown exemption and unsupportedwagtail-localize-dashboardversion.
This pull request requires changes.
| File | Description |
|---|---|
uv.lock |
Locks Wagtail 8.1 and its new transitive dependencies. |
pyproject.toml |
Updates the Wagtail dependency and package cooldown exemptions. |
bedrock/settings/base.py |
Clarifies why Wagtail update notifications remain disabled. |
bedrock/cms/wagtail_localize_smartling/callbacks.py |
Strips URLs using the page’s associated site. |
bedrock/cms/tests/test_callbacks.py |
Adds regression coverage for a non-default site. |
AGENTS.md |
Updates Wagtail documentation links to version 8.1. |
Review effort: Lite
|
@copilot remove the expired certifi exemption and handle the merge conflicts, please |
# Conflicts: # uv.lock Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Removed the expired certifi exemption, regenerated |
| exclude-newer-package = { certifi = false } | ||
| # Temporary: Wagtail 8.1 was uploaded on 2026-11-02, so skip the cooldown for it. Remove | ||
| # `wagtail = false` on or after 2026-11-10 and run `uv lock`, then check Wagtail is still 8.1. | ||
| exclude-newer-package = { wagtail = false } |
|
https://gh.io/copilot-coding-agent-docs remove the expired wagtail 8.1 exemption and re-review |

Port of mozmeao/springfield#2045 to bedrock. This moves us from 7.3 to 8.1, so we pick up the 7.4 and 8.0 releases too.
Codebase changes needed beyond the dep bump:
WAGTAIL_ENABLE_UPDATE_CHECKcomment no longer claims we track LTS releases.Springfield's other changes (inline imports to break an import cycle,
PAGE_PERMISSION_CODENAMES, the image-tag permission policy) don't apply here: bedrock has none of that code, and Django boots cleanly without the import-cycle workaround.Adds three Wagtail migrations (
wagtailadmin.0006_formstate,wagtailcore.0098_apitoken,wagtailsearch.0010_add_text_fields). No migrations of our own. New transitive deps: django-ninja, pydantic, swapper.Note: to get Wagtail 8.1 rather than 8.0, we had to override the 7-day cooldown. We'll need to remove the
wagtail = falsecooldown exemption inpyproject.tomlon or after 2026-11-10.Upgrade considerations I checked against bedrock:
format-*filter is used. That seems like an improvement rather than a problem, but flagging it.wagtail.contrib.sitemaps.Testing
Full Python suite run locally with Wagtail 8.1 and again on
mainwith 7.3.4: the same nine tests fail in both runs, all from local env vars and test-ordering, so no regressions.wagtail_hooks.py)🤖 Generated with Claude Code