Sin descripción

jherve 5d907e27a8 Add a requirements file for embeddings hace 1 año
src 78907db424 Update all queries to match postgres' dialect hace 1 año
static cc5966b339 More tweaks to UI hace 1 año
templates 67e0e31efd Slight tweaks to UI hace 1 año
tests 1c91c4bfe6 Initial commit hace 1 año
.gitignore fd251b215a Add dynaconf for configuration management hace 1 año
README.md 7e076bd9d7 Add a note about a bug hace 1 año
config.py caa854cba8 Format some file hace 1 año
pyproject.toml d681c8a42c Upgrade backend to support postgresql hace 1 año
requirements-dev.lock d681c8a42c Upgrade backend to support postgresql hace 1 año
requirements-embeddings.lock 5d907e27a8 Add a requirements file for embeddings hace 1 año
requirements.lock d681c8a42c Upgrade backend to support postgresql hace 1 año
settings.toml 207cc110db Move database URL to secrets hace 1 año

README.md

de_quoi_parle_le_monde

Bug

In the featured_article_snapshot_id view, the field featured_article_snapshot_id is taken as if it was unique by row, but it is not.

This can be easily checked with this query :

SELECT * FROM (
    SELECT featured_article_snapshot_id, json_group_array(snapshot_id), COUNT(*) as count
    FROM snapshot_apparitions
    WHERE is_main -- Not required
    GROUP BY featured_article_snapshot_id
)
WHERE count > 1

Among other things it leads to "deadends" while browsing the UI, likely because the timestamp search and time diff relies on this false assumption.