etalab / transport-site

Rendre disponible, valoriser et améliorer les données transports
https://transport.data.gouv.fr
194 stars 30 forks source link

Serveur de recette cassé #3394

Closed thbar closed 1 year ago

thbar commented 1 year ago

En essayant de tester:

Je vois qu'on a des 500:

2023-08-13T12:22:16+02:00 ** (Postgrex.Error) ERROR 42703 (undefined_column) column d0.details does not exist

SELECT d0."id", d0."dataset_id", d0."topic", d0."score", d0."timestamp", d0."details" FROM "dataset_score" AS d0 WHERE (d0."id" IN (SELECT DISTINCT first_value(sd0."id") OVER (PARTITION BY sd0."topic" ORDER BY sd0."timestamp" DESC) FROM "dataset_score" AS sd0 WHERE ((sd0."dataset_id" = $1) AND sd0."topic" = ANY($2))))
AntoineAugusti commented 1 year ago

J'ai été investiguer et voici ce que j'ai fait.

SELECT table_name, column_name, ordinal_position, is_nullable, data_type
FROM information_schema.columns
WHERE table_schema = 'public'
ORDER BY 1, 2
thbar commented 1 year ago

Super, merci @AntoineAugusti pour le fix et le rapport !