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

Support for wagtail42 #443

Merged
merged 9 commits into from
Feb 21, 2023
Merged

Support for wagtail42 #443

merged 9 commits into from
Feb 21, 2023

Conversation

nickmoreton
Copy link
Contributor

@nickmoreton nickmoreton commented Feb 9, 2023

This updates the sites dependencies so it can be used with Wagtail versions >= 4.1

I have removed the try/except and Wagtail VERSION conditionals and code that supported older versions which I hope you agree does simply the package. I understand that may not be what you prefer and I am happy to revert those changes to keep the older versions around.

I have also adjusted the tox and github actions to help simplify the running of tests.

Issues that could be solved with other updates include:

Some UI elements were misplaced and those are also fixed.

Also the docs could do with been updated I think but I'll wait till you let me know about supporting older versions.

@@ -89,3 +87,5 @@
# ----------
# Deprecated
# ----------

ADD_EDITOR_OVERRIDE_STYLES = True
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These styles don't seem to be needed anymore. The wagtail UI deals with them perfectly.

@@ -17,11 +17,6 @@ class MainMenuAdmin(ModelAdmin):
edit_view_class = views.MainMenuEditView
add_to_settings_menu = True

def get_form_view_extra_css(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These styles don't seem to be needed anymore. The wagtail UI deals with them perfectly. Also removed the second instance in this file.

@nickmoreton nickmoreton mentioned this pull request Feb 9, 2023
@nickmoreton nickmoreton changed the title Draft: Support for wagtail42 Support for wagtail42 Feb 9, 2023
@djch
Copy link

djch commented Feb 9, 2023

Great work @nickmoreton. I hope the maintainers can merge this soon!

@schlich
Copy link
Contributor

schlich commented Feb 10, 2023

I'll take a look tonight :)

@codecov
Copy link

codecov bot commented Feb 10, 2023

Codecov Report

Merging #443 (5a02cfa) into master (bd7d426) will decrease coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #443      +/-   ##
==========================================
- Coverage   98.21%   98.12%   -0.10%     
==========================================
  Files          89       89              
  Lines        3029     2929     -100     
==========================================
- Hits         2975     2874     -101     
- Misses         54       55       +1     
Impacted Files Coverage Δ
wagtailmenus/conf/constants.py 100.00% <ø> (ø)
wagtailmenus/conf/settings.py 100.00% <ø> (ø)
wagtailmenus/models/mixins.py 100.00% <ø> (ø)
wagtailmenus/settings/base.py 100.00% <ø> (ø)
wagtailmenus/tests/test_mainmenu_class.py 98.85% <ø> (-0.02%) ⬇️
wagtailmenus/tests/test_test_page_models.py 100.00% <ø> (ø)
wagtailmenus/__init__.py 76.47% <100.00%> (ø)
wagtailmenus/conf/defaults.py 100.00% <100.00%> (ø)
...nus/conf/tests/test_modeladmin_disable_settings.py 100.00% <100.00%> (ø)
wagtailmenus/context_processors.py 100.00% <100.00%> (ø)
... and 40 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@schlich schlich merged commit b2eec51 into jazzband:master Feb 21, 2023
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.

3 participants