2.5.0
2020-05-19 — implements Portal's "Image Grid" block, adds a Featured checkbox for Exhibits, and upgrades to Wagtail 2.9 while applying a host of smaller improvements.
Features
- #84 Ability mark a "Featured Exhibit" that shows up on the home page beneath the latest news item
- #89 a clone of the "Image Grid" block from Portal with one small improvement: we can choose an internal page or specify an external URL, instead of always needing an absolute URL even when linking to our own site.
- Wagtail 2.9 comes with some security updates, bugfixes, caching of image renditions, and deprecates SiteMiddleware. We needed to change references to
{{ request.site.root_url }}
in our templates to use{% wagtail_site as current_site %}{{ current_site.root_url }}
tag instead (occurs throughout our Schema.org metadata). - #101 Sometimes we reference cool web projects and put URLs in our Instagram posts (example). Just because Instagram itself is a bad web citizen and doesn't link URLs in captions doesn't mean we can't.
- #100 404 errors, mostly from robot crawlers, were absolutely flooding our django_error.log, making it contain super useful information buried in a sea of meaningless errors. I used logging filters to split these into a separate file.
- #105 Wagtail 2.8 had a sneaky useful feature in Reports, an admin feature that's good at listing pages which match certain criteria. I converted what used to be a management command into a "Pages lacking a Search Description" Report which makes it easier to identify pages not following our best practices.
Bugfixes
- #104 While we have been logging document accesses in a CSV for a while, a Wagtail settings change accidentally caused most downloads to bypass logging. This version not only fixes that so all downloads are recorded but also makes the CSV formatting more foolproof by utilizing Python's
csv
library.