Skip to content
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

Use Django storage for Wagtail deletion archive #8599

Merged
merged 3 commits into from
Oct 3, 2024

Commits on Oct 2, 2024

  1. Use Django storage for Wagtail deletion archive

    These code changes propose using Django storage to store and serve
    the Wagtail deletion archive from PR 8310 [0], instead of using Apache
    to serve those files.
    
    This simplifies the configuration and makes it easier to test locally
    and easier to port in future to other webserver approaches.
    
    With these changes, the deletion archive is now only available behind
    the Wagtail admin login, at the URL /admin/__deleted/. This URL provides
    a nicely formatted Wagtail report view where archives can be downloaded
    (instead of the current PR approach that uses Apache directory serving).
    
    With this change, Django storage configuration has been migrated to
    settings.STORAGES from settings.STATICFILES_STORAGE, which was
    deprecated in Django 4.2 and removed in Django 5.1.
    
    Additionally, with this change, cf.gov deployments that have not defined
    the WAGTAIL_DELETION_ARCHIVE_PATH environment variable still support
    importing archives; the archive-on-delete and archive download
    functionality is still disabled in those cases.
    
    This commit also includes a minor bugfix to the archive import template
    which doesn't currently properly display the destination page title.
    
    [0] #8310
    chosak committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    1b8aa6c View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    957a3fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a9a1c09 View commit details
    Browse the repository at this point in the history