vault backup: 2026-08-01 16:11:59
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user