Project

General

Profile

Actions

Feature #175

closed
ES ES

CMS, WEB | Retire format/sort lookup tables, split media storage by env

Feature #175: CMS, WEB | Retire format/sort lookup tables, split media storage by env

Added by Eugene Suhanov 3 months ago. Updated 3 months ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
08/24/2026
Due date:
% Done:

0%

Estimated time:
0:00 h
Spent time:

Description

Five changes across the CMS (nota-admin) and storefront (secretflowers-web), which share one database (db_nota). Bundled because three touch the same products row shape.

Bouquet code autofill (CMS) — prefill code/slug from last entry + 1; no generator exists today.
Sort options static (both) — SortAppliers is already authoritative; the DB rows only supplied labels. Move to lang files, drop catalog_sort_options.
Formats retired (both) — drop product_formats, products.type, both CMS resources, the catalog format filter, and the product-page format line. Deliberate feature removal.
assembly_time removed (both) — it silently overrode the availability label via getStatusText(). Column goes. composition keeps its column, loses its CMS field, always auto-generates.
Media split by env (both) — the media disk is hardcoded to s3, so local uploads hit the production bucket. Add MEDIA_DRIVER=local|s3 with MEDIA_LOCAL_ROOT pointing at the storefront's storage/app/public. MinIO removed from both repos.
Posiflora DEVELOP tag gated (WEB) — currently unconditional; gate on ! environment('production'). No sandbox exists, so make no live POSTs.

The storefront owns every catalog table; the CMS mirrors schema into guarded migrations for its sqlite tests. CMS resource deletions must land before the storefront's drop migration, or the admin 500s.

Premise corrections: the column is assembly_time, not assembly; the tables are product_formats / catalog_sort_options.

Full plan: docs/plans/2026-08-24-catalog-cleanup-and-media-split.md (identical in both repos).

ES Updated by Eugene Suhanov 3 months ago Actions #1

  • Status changed from New to In Progress

ES Updated by Eugene Suhanov 3 months ago Actions #2

  • Description updated (diff)
  • Estimated time set to 0:00 h

ES Updated by Eugene Suhanov 3 months ago Actions #3

  • Status changed from In Progress to Resolved

SN Updated by Serhii Neliubov 3 months ago Actions #4

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom