5b8d6a22

Author: Michael Lynch <git@mtlynch.io>

Committer: Michael Lynch <mtlynch@noreply.codeberg.org>

Move media path mapping into writers (#283)

Make MediaWriter responsible for mapping filenames to backend-relative paths so callers no longer pass a separate PathFor function alongside the writer. This keeps S3 subfolder handling encapsulated in the S3 writer and lets upload/import processing use Writer.PathFor consistently.

Reviewed-on: https://codeberg.org/mtlynch/little-moments/pulls/283

Suite timing

Time to Start Worker time Duration Time to finish
Config 2s 11s 11s 13s
Eval 10s 1m13s 1m13s 1m23s
Build 17s 10m21s 2m14s 2m32s
Deploy 2m39s 4m15s 4m15s 6m55s
Suite 2s 16m02s 6m53s 6m55s

Timeline

0s1m2m3m4m5m6m