Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wagtail 6.0 support #37

Merged
merged 7 commits into from
Feb 13, 2024
Merged

Wagtail 6.0 support #37

merged 7 commits into from
Feb 13, 2024

Conversation

gasman
Copy link
Member

@gasman gasman commented Feb 12, 2024

As of Wagtail 6.0 we can no longer rely on the real database records of draft pages to preserve the revision that was active when the experiment was made live, because the real database record is now updated on draft edits (wagtail/wagtail#10104). Fix this by storing explicit revision IDs (as suggested in wagtail/wagtail#10104 (comment)).

The old tests relied on the assumption that page.save_revision() was an accurate representation of what happens when saving a draft edit in the admin. On Wagtail 6, saving a draft also updates the real database record if the page is not live, meaning that it is no longer a stable place to stash the 'approved' revision as it was when the experiment was activated.
@gasman gasman merged commit 73c600b into torchbox:main Feb 13, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant