-
Notifications
You must be signed in to change notification settings - Fork 20
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
Draft: Wagtail 4.2 support #66
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @katdom13! We don't typically make packages releases for Wagtail release candidates but can definitely do this once 4.2 is out.
Along with this change we could probably also remove 4.0 from the tox/GitHub testing matrix - we should keep 4.1 as it's an LTS but explicitly testing 4.0 doesn't seem necessary. Any thoughts @willbarton?
Hi @chosak and @willbarton , Would you also like me to drop support for Wagtail < 4.1 altogether? This would also mean removing code inside conditionals (e.g. inside Please note the EOL and support: https://endoflife.date/wagtail Thank you! |
Hi @chosak , @willbarton |
…ini, Updated test workflows
05b3f17
to
d524c9b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a couple of possible changes
@@ -12,7 +12,7 @@ | |||
|
|||
|
|||
if wagtail.VERSION < (3, 0): # pragma: nocover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be removed and below you can then not need to use the CORE_BLOCKS
and use the full string.
e.g. wagtail.blocks.field_block.CharBlock
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nickmoreton ,
Good catch! This has been updated in the latest commit b2e4161
This should also resolve the one below.
from wagtail.core.models import Page, Site | ||
from wagtail.tests.utils import WagtailTestUtils | ||
from wagtail.models import Page, Site | ||
from wagtail.test.utils import WagtailTestUtils | ||
|
||
from wagtailinventory.models import PageBlock | ||
|
||
|
||
if wagtail.VERSION < (3, 0): # pragma: nocover |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@katdom13 for us, it would be preferable to maintain Wagtail 2.15 support a bit longer, as that's where we currently are (but are in the process of updating). Our preference is to test against LTS releases, so that would be 2.15 and 4.1. Unfortunately that means also maintaining the |
Thanks @willbarton @katdom13 If you will have time to look at this that would be great but let me know if you would like me to pick it up? Thanks |
@katdom13 @nickmoreton I can pick this up. We're in the midst of converting our projects to Thanks for your patience! |
Thank you so much @katdom13 and @nickmoreton! These changes have been merged in #67 (fascinating that GitHub sees that and indicates this PR is merged now too!) We'll get a release out with them shortly! |
All tests run OK