-
Notifications
You must be signed in to change notification settings - Fork 0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
donald
commented
Aug 13, 2020
- Update Django and Wagtail and other libraries to current version
- Allow more characters for room numbers
- If a room field contains multiple room numbers, convert them into individual room links
- Create usable links for seminar rooms specified like "SR 1"
Update python requirements with (cd requirements; rm *.txt; make) This updates Django from version 2.2.9 to version 3.1. This updates Wagtail from version 2.7.1 to version 2.10. The virtual environment can be update to the specified versions with pip-sync requirements/dev.txt
Update our library patches to the package versions installed by the previous commit. The patches should be applied from the virtual environment directory with for f in ../patches/*; do patch -p1 < $f; done
Wagtails permission_required has been moved from wagtail.admin.utils to wagtail.admin.auth [1]. Use new package name. [1] https://docs.wagtail.io/en/stable/releases/2.7.html.
Some names in wagtail.api.v2 have changed ([1] vs [2]) Update our source accordingly. [1] https://docs.wagtail.io/en/v2.0/advanced_topics/api/v2/configuration.html [2] https://docs.wagtail.io/en/v2.10/advanced_topics/api/v2/configuration.html
Create migrations with ./manage.py makemigrations
The SiteMiddlware is obsoleted [1]. Use wagtail_site tag instead. [1] https://docs.wagtail.io/en/stable/releases/2.9.html
0d7ed64
to
e116002
Compare
Increase the width of the room field in the Contact model. This was requested by user.
Create migration with ./manage.py makemigrations
Add a filter which greps room patterns in a string and converts them to a link to our twiki room map.
Replace usage of the room_links tag with the new add_room_links filter.
Remove the now unused tag room_link and the function get_room_link which is only used by this tag.
For "events", room specifications like "SR 1" are often used. However, this is not a valid room numer as expected by the twiki map. Translate "SR [1234]" to correct room numbers for the link target.
Remove invalid setting for the SMTP server. Note: These lines have already been commented out on our production server.
a430ed5
to
f17efb5
Compare
f17efb5
to
76dd91a
Compare
Wagtail is changing its search API [1]. There is a documentation PR pending at [2]. Our automplete hack - patch to make Wagtail Snippet Chooser use .autocomplete() instead of .search() - stopped working after the Wagtail update for the Contact snippet. Use wagtail.search.index.AutocompleteField in Contact model to specify, which fields should be indexed for autocompletion. [1] https://github.com/wagtail/wagtail/issues/4937 [2] https://github.com/wagtail/wagtail/issues/4938
76dd91a
to
3da67a8
Compare
Sign in
to join this conversation on GitHub.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.