-
Notifications
You must be signed in to change notification settings - Fork 39
Upgrade wagtail to 3.x #2934
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
Upgrade wagtail to 3.x #2934
Conversation
a86795c to
70fbccf
Compare
Codecov Report
@@ Coverage Diff @@
## main #2934 +/- ##
==========================================
+ Coverage 81.89% 81.96% +0.07%
==========================================
Files 683 704 +21
Lines 24809 24950 +141
==========================================
+ Hits 20317 20450 +133
- Misses 4492 4500 +8
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
8cb8ca5 to
e822419
Compare
36c2e89 to
fe7f442
Compare
af43f16 to
b923832
Compare
|
The test_add_screening_status is failing for me locally. The reason seems to be there is no pre-defined ordering on the tables, but you are expecting an I’m not sure how it’s passing in the circle CI, but it’s failing on my machine. @frjo @sandeepsajan0 |
95317a0 to
2361652
Compare
Changelog: wagtail/wagtail-factories@2.0.1...2.1.0 2.1.0 ===== - Add support for Wagtail 3.0 and drop support for all Wagtail versions before 2.15 - Add support for Django 4.0 - Add support for Python 3.10 - Removed support for Python 3.6 - Removed support for Django 2.2 and 3.1 - Removed support for factory boy <3.2
Do not depend on sorting IDs for checks
Use `django.test.TestCase` instead of `unittest.TestCase` to enable DB access
See: https://django-filter.readthedocs.io/en/stable/guide/migration.html#view-attributes-renamed-867 ``` hypha/apply/api/v1/screening/tests/test_views.py::ScreeningStatusViewSetTests::test_staff_can_list_screening_statuses hypha/apply/api/v1/screening/tests/test_views.py::ScreeningStatusViewSetTests::test_staff_can_view_screening_statuses_detail /Users/theskumar/work/hyphaapp/hypha/venv/lib/python3.9/site-packages/django_filters/rest_framework/backends.py:31: MigrationNotice: `ScreeningStatusViewSet.filter_class` attribute should be renamed `filterset_class`. See: https://django-filter.readthedocs.io/en/master/guide/migration.html See: https://django-filter.readthedocs.io/en/master/guide/migration.html filterset_class = self.get_filterset_class(view, queryset) ```
…ed in favor of {% if %}
```
hypha/apply/determinations/tests/test_views.py: 20 warnings
/Users/theskumar/work/hyphaapp/hypha/venv/lib/python3.9/site-packages/django/template/defaulttags.py:862: RemovedInDjango40Warning: The {% ifequal %} template tag is deprecated in favor of {% if %}.
warnings.warn(
```
2361652 to
dc5c948
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.
Excellent work! Deploying to test now.
Related to #2882 The messaging.py has quite a lot of code with multiple concerns, which can be easily divided into individual independent modules. This refractor puts different messaging adapters into its modules for better maintainability and readability.
The test checks for the ordering of the item returned. The view function or the model class doesn’t have any order specified. This cause the tests to fail randomly on different machines. This commit removes that ordering the check and just checks for the availability of the ids.

Fixes #2880
Fixes #2874
Closes #2881
TODOs: