Skip to content

Update and fix roomlinks #88

Merged
merged 15 commits into from
Aug 17, 2020
Merged

Update and fix roomlinks #88

merged 15 commits into from
Aug 17, 2020

Commits on Aug 13, 2020

  1. Update python packages

    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
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    84bbfa3 View commit details
    Browse the repository at this point in the history
  2. Update patches after library update

    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
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    73869b2 View commit details
    Browse the repository at this point in the history
  3. Update permission_required to current Wagtail API

    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.
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    ace029b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    566509b View commit details
    Browse the repository at this point in the history
  5. Add migrations after library update

    Create migrations with
    
        ./manage.py makemigrations
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    895413f View commit details
    Browse the repository at this point in the history
  6. Remove obsolete Wagtail SiteMiddleware

    The SiteMiddlware is obsoleted [1]. Use wagtail_site tag instead.
    
    [1] https://docs.wagtail.io/en/stable/releases/2.9.html
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    13bbfea View commit details
    Browse the repository at this point in the history
  7. Contact: Increase width of Contact.room

    Increase the width of the room field in the Contact model. This was
    requested by user.
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    3273456 View commit details
    Browse the repository at this point in the history
  8. Add migration after schema change

    Create migration with
    
        ./manage.py makemigrations
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    50926ea View commit details
    Browse the repository at this point in the history
  9. Add template filter add_room_links

    Add a filter which greps room patterns in a string and converts them to
    a link to our twiki room map.
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    b92c8b5 View commit details
    Browse the repository at this point in the history
  10. Use filter add_room_links in templates

    Replace usage of the room_links tag with the new add_room_links filter.
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    75469a6 View commit details
    Browse the repository at this point in the history
  11. Remove template tag room_link

    Remove the now unused tag room_link and the function get_room_link which
    is only used by this tag.
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    d0e154b View commit details
    Browse the repository at this point in the history
  12. Create usable links for seminar rooms

    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.
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    2915e07 View commit details
    Browse the repository at this point in the history
  13. settings/local: Remove SMTP server localhost:1025

    Remove invalid setting for the SMTP server.
    
    Note: These lines have already been commented out on our production
    server.
    donald committed Aug 13, 2020
    Configuration menu
    Copy the full SHA
    6ee7120 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2020

  1. Configuration menu
    Copy the full SHA
    207aa12 View commit details
    Browse the repository at this point in the history
  2. personal: Use index.AutocompleteField

    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
    donald committed Aug 15, 2020
    Configuration menu
    Copy the full SHA
    3da67a8 View commit details
    Browse the repository at this point in the history