From 50341b49c426fd9b9e95b6af20b625693a66c285 Mon Sep 17 00:00:00 2001 From: Amadou Date: Sat, 1 Aug 2026 16:11:59 -0400 Subject: [PATCH] vault backup: 2026-08-01 16:11:59 --- ... sites- proposition de publication JSON.md | 72 +++++++++++++++-- ...chitecture - Content Publication Engine.md | 79 +++++++++++++++++-- 2 files changed, 138 insertions(+), 13 deletions(-) diff --git a/20 Work/Ideas/Mogador/Consultation fournisseurs sites- proposition de publication JSON.md b/20 Work/Ideas/Mogador/Consultation fournisseurs sites- proposition de publication JSON.md index 08a8abb..f8fb5d5 100644 --- a/20 Work/Ideas/Mogador/Consultation fournisseurs sites- proposition de publication JSON.md +++ b/20 Work/Ideas/Mogador/Consultation fournisseurs sites- proposition de publication JSON.md @@ -83,13 +83,34 @@ Cette approche permet de publier plus vite et de réduire le risque de remplacer Contient les contenus ou programmations pertinents pour la journée courante. +Le tableau `programs` contient des objets de programmation légers. Il ne contient pas tout le détail du produit ou de la collection. Pour le détail complet, le site utilise les liens vers les fichiers `products/{product_key}.json` ou `collections/{biznumber}/full.json`. + ```json { "schema_version": "1.0", "platform": "tfo", "run_id": "20260730-0900", "date": "2026-07-30", - "programs": [] + "programs": [ + { + "program_key": "190858829", + "product_key": "102828840", + "collection_biznumber": "0123456", + "serie_key": "S123", + "title": "Larguer les amarres", + "begin": "2026-07-30T06:00:00-04:00", + "end": "2026-07-30T06:24:00-04:00", + "duration_seconds": 1440, + "type": "Film", + "target": "G", + "territories": ["CA"], + "media_status": "ready", + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/102828840.json", + "collection_full": "/tfo/v1/runs/20260730-0900/collections/0123456/full.json" + } + } + ] } ``` @@ -102,9 +123,39 @@ Contient les contenus ajoutés, modifiés ou retirés depuis la dernière public "schema_version": "1.0", "platform": "tfo", "run_id": "20260730-0900", - "added": [], - "updated": [], - "removed": [] + "added": [ + { + "entity_type": "product", + "product_key": "102828840", + "collection_biznumber": "0123456", + "title": "Larguer les amarres", + "first_programmation": "2026-07-30T06:00:00-04:00", + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/102828840.json" + } + } + ], + "updated": [ + { + "entity_type": "program", + "program_key": "190858829", + "product_key": "102828840", + "title": "Larguer les amarres", + "changed_fields": ["begin", "end"], + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/102828840.json" + } + } + ], + "removed": [ + { + "entity_type": "product", + "product_key": "102000001", + "collection_biznumber": "0999999", + "title": "Ancien titre", + "reason": "not_in_current_snapshot" + } + ] } ``` @@ -122,9 +173,20 @@ Contient la programmation pour une date précise. { "program_key": "123", "product_key": "GP123456", + "collection_biznumber": "0123456", + "serie_key": "S123", "begin": "2026-08-08T06:00:00-04:00", "end": "2026-08-08T06:24:00-04:00", - "title": "Titre de l'épisode" + "title": "Titre de l'épisode", + "duration_seconds": 1440, + "type": "Film", + "target": "G", + "territories": ["CA"], + "media_status": "ready", + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/GP123456.json", + "collection_full": "/tfo/v1/runs/20260730-0900/collections/0123456/full.json" + } } ] } diff --git a/20 Work/Ideas/Mogador/Proposition d'architecture - Content Publication Engine.md b/20 Work/Ideas/Mogador/Proposition d'architecture - Content Publication Engine.md index 291cb9f..9ce7f91 100644 --- a/20 Work/Ideas/Mogador/Proposition d'architecture - Content Publication Engine.md +++ b/20 Work/Ideas/Mogador/Proposition d'architecture - Content Publication Engine.md @@ -1,3 +1,4 @@ + ## TL;DR Le système actuel de synchro Louise/Mogador fonctionne, mais il est devenu trop fragile: trois serveurs avec le même code, dépendance forte à Directus, peu d'observabilité, corrections d'urgence difficiles à tracer, et trop de logique implicite dans une synchro construite rapidement. @@ -596,23 +597,74 @@ Le compromis est volontaire: on accepte plus de fichiers stockes pour obtenir un Contient ce qui doit être en ligne aujourd'hui. +Le tableau `programs` doit contenir des objets de programmation légers. Il ne doit pas embarquer tout le produit, toutes les images ou toute la collection. Pour obtenir le détail complet, le site utilise les liens vers `products/{product_key}.json` ou `collections/{biznumber}/full.json`. + ```json { "date": "2026-07-30", - "programs": [] + "programs": [ + { + "program_key": "190858829", + "product_key": "102828840", + "collection_biznumber": "0123456", + "serie_key": "S123", + "title": "Larguer les amarres", + "begin": "2026-07-30T06:00:00-04:00", + "end": "2026-07-30T06:24:00-04:00", + "duration_seconds": 1440, + "type": "Film", + "target": "G", + "territories": ["CA"], + "media_status": "ready", + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/102828840.json", + "collection_full": "/tfo/v1/runs/20260730-0900/collections/0123456/full.json" + } + } + ] } ``` ### latest.json -Contient les nouveautes et changements depuis la dernière publication. +Contient les nouveautés et changements depuis la dernière publication. ```json { "run_id": "20260730-0900", - "added": [], - "updated": [], - "removed": [] + "added": [ + { + "entity_type": "product", + "product_key": "102828840", + "collection_biznumber": "0123456", + "title": "Larguer les amarres", + "first_programmation": "2026-07-30T06:00:00-04:00", + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/102828840.json" + } + } + ], + "updated": [ + { + "entity_type": "program", + "program_key": "190858829", + "product_key": "102828840", + "title": "Larguer les amarres", + "changed_fields": ["begin", "end"], + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/102828840.json" + } + } + ], + "removed": [ + { + "entity_type": "product", + "product_key": "102000001", + "collection_biznumber": "0999999", + "title": "Ancien titre", + "reason": "not_in_current_snapshot" + } + ] } ``` @@ -625,11 +677,22 @@ Contient la programmation d'une date précise. "date": "2026-08-08", "programs": [ { - "program_key": 123, - "product_key": 456, + "program_key": "190858829", + "product_key": "102828840", + "collection_biznumber": "0123456", + "serie_key": "S123", "begin": "2026-08-08T06:00:00-04:00", "end": "2026-08-08T06:24:00-04:00", - "title": "..." + "title": "Larguer les amarres", + "duration_seconds": 1440, + "type": "Film", + "target": "G", + "territories": ["CA"], + "media_status": "ready", + "links": { + "product": "/tfo/v1/runs/20260730-0900/products/102828840.json", + "collection_full": "/tfo/v1/runs/20260730-0900/collections/0123456/full.json" + } } ] }