Skip to content

v1.30.0

Latest

Choose a tag to compare

@github-actions github-actions released this 01 Dec 09:23

Features

  • Extra tables in backups. Backups can now hold tables no Django model
    owns, such as Umami's analytics tables in the same PostgreSQL database.
    Name them in the new BACKUP_TABLES setting as table names or patterns
    ("website*", or "umami.*" for a whole schema), for every database or
    per alias. Their rows are saved beside the fixture in
    <name>.tables.gz (with COPY on PostgreSQL, as JSON elsewhere), which
    stays a plain loaddata file, and a restore empties and loads them in
    the same transaction as the Django data. The Backups page names a
    backup's extra tables with a download link, and the restore dialog lists
    them with their rows, marks tables that are gone or lack a backed-up
    column (Restore anyway leaves those as they are) and has Leave the
    extra tables as they are
    ; content_studio_restore has --skip-tables.
    content_studio.E050 also reports a BACKUP_TABLES that is not a list.

  • Maintenance commands on the status page. A Maintenance card on
    System status runs Content Studio's maintenance commands: make image
    sizes, make thumbnails, read media metadata, publish scheduled content,
    deliver webhooks, send the notification digest, back up the database and
    clean up old data, each registered when the app it needs is installed.
    Commands with options, or that delete data, ask first: the clean-up
    dialog has a box per kind of old data with how many records it would
    delete now. With a background task backend a run goes to the task queue
    and shows in Recent tasks; without one it runs in the request, and the
    long media commands warn that a big library may time out. Each command
    keeps its latest run, with who started it, how long it took and the end
    of its output (64 KB), and runs one at a time. Superusers run them by
    default; override ContentStudioSite.has_command_permission(request, command) to change that. Apps add their own with
    status.register_command(). Run migrate: the status app now has a
    table for the latest runs.

Fixes

  • React Router 7.18.7. Updates the frontend's React Router from
    7.18.4 for two advisories (GHSA-2rq8-3rm6-2w8f, GHSA-qhgm-jj2j-75wj)
    in its server rendering and framework-mode data streaming, which Content
    Studio does not use.

  • Media sizes stored in KB. Media items whose size was stored in
    another unit than bytes, such as by an import from an older site, showed
    a size far too small ("2.98KB" for a 3 MB photo).
    content_studio_media_metadata now reads the file size again from
    storage, in bytes, for every item it reads: run it with --all to put
    existing items right.