feat(media): primary media storage, growth goals, retention and delivery tools
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
Event photos and videos are now stored only on the NFS/local share named in Settings -> Media storage. Uploads, photo editing, video processing and the per-event filing step refuse to run until that share is configured and writable, so nothing is silently written inside the container. Video originals, renditions, posters and sidecars share one folder on the share. Also adds volunteer growth goals with a mentor queue, an admin retention and storage sweep with a cron entry point, cached gallery thumbnails with per-folder ZIP downloads, a server-rendered booth-sheet PDF, and in-app confirm/release for every upcoming assignment. Service reminders now ignore the one-off event reminder rule, which had been queueing an extra bogus reminder for each published service. Generated with Codebuff 🤖 Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
@@ -12,7 +12,8 @@ import { signInAs, resetDb, BASE } from "./dev";
|
||||
|
||||
const ARCHIVE_ROOT = process.env.ARCHIVE_DIR ?? "/tmp/glenloch-e2e-archive";
|
||||
const ARCHIVE_FOLDER = "E2E Archive";
|
||||
const UPLOAD_DIR = process.env.UPLOAD_DIR ?? "/tmp/glenloch-e2e-uploads";
|
||||
// Live photos sit on the configured share too, under `<share>/<folder>/events`.
|
||||
const MEDIA_ROOT = path.join(ARCHIVE_ROOT, ARCHIVE_FOLDER);
|
||||
|
||||
let photoBytes: Buffer;
|
||||
|
||||
@@ -144,6 +145,6 @@ test("exports a delivery size, then archives and removes the event", async ({
|
||||
const gone = await page.goto(`${BASE}/events/${event.event.id}`);
|
||||
expect(gone?.status()).toBe(404);
|
||||
await expect(
|
||||
access(path.join(UPLOAD_DIR, "events", event.event.id)),
|
||||
access(path.join(MEDIA_ROOT, "events", event.event.id)),
|
||||
).rejects.toThrow();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user