Repository navigation
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 newBACKUP_TABLESsetting 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(withCOPYon PostgreSQL, as JSON elsewhere), which
stays a plainloaddatafile, 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_restorehas--skip-tables.
content_studio.E050also reports aBACKUP_TABLESthat 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; overrideContentStudioSite.has_command_permission(request, command)to change that. Apps add their own with
status.register_command(). Runmigrate: 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_metadatanow reads the file size again from
storage, in bytes, for every item it reads: run it with--allto put
existing items right.