Skip to content

Wagtail upgrade#412

Closed
rcoldiron wants to merge 3 commits into
devfrom
wagtail-upgrade
Closed

Wagtail upgrade#412
rcoldiron wants to merge 3 commits into
devfrom
wagtail-upgrade

Conversation

@rcoldiron

@rcoldiron rcoldiron commented Mar 15, 2021

Copy link
Copy Markdown
Contributor

For issue #409

Description of change

Updated required Wagtail version.
Also added unidecode in settings since it was not automatically found otherwise, used in blocks.py

Tests

Ran the pytest unit tests, all 56 passed with 40 deprecation warnings from Django (some of it from packages).
Also ran the testproject and it all still works, and CSS looks fine too.
Note that wagtail-import-export is no longer maintained but that will be a separate issue. It still seems to work for now, though.

**Will need to change version number but you can test it yourself first.

Roxanna Coldiron added 2 commits March 12, 2021 16:52
@rcoldiron rcoldiron requested a review from vsalvino March 15, 2021 16:41
@rcoldiron rcoldiron linked an issue Mar 15, 2021 that may be closed by this pull request
Comment thread setup.py Outdated
'geocoder==1.38.*',
'icalendar==4.0.*',
'wagtail==2.11.*',
'unidecode==1.*',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a reason for this new dependency?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

When I ran pytest without it, it said ModuleNotFound and broke it. unidecode is used in the blocks.py file. Is there another way to bring it in so that it's recognized as a module?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ok, I'm guessing wagtail may have had it as a dependency and no longer uses it in 2.12. I would say first let's see where/why we are using it... maybe it can be removed. See if wagtail 2.12 release notes mentions it at all.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Found a note in 2.11 actually: "Remove unidecode and use anyascii in for Unicode to ASCII conversion" You are currently using it in wagtail_flexible_forms > blocks.py and it's being used in get_slug.

@vsalvino vsalvino Mar 15, 2021

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please make the corresponding replacement to anyascii in our code, if possible, to remain closer to wagtail and eliminate the extra dependency. You can probably hunt down the original PR in wagtail to see what changes were made.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done.

@vsalvino vsalvino added this to the 0.21.0 milestone Mar 15, 2021
@vsalvino

Copy link
Copy Markdown
Contributor

Abandoning in favor of #418

@vsalvino vsalvino closed this Jul 30, 2021
@vsalvino vsalvino deleted the wagtail-upgrade branch July 30, 2021 20:01
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.

Upgrade to Wagtail 2.13

2 participants