Aucune description

jherve cf34257719 Extend duration display to similar articles il y a 1 an
src cf34257719 Extend duration display to similar articles il y a 1 an
static 9543e3d8ee Remove ugly underlines on links il y a 1 an
templates cf34257719 Extend duration display to similar articles il y a 1 an
tests 1c91c4bfe6 Initial commit il y a 1 an
.gitignore d51ff03bb2 Switch to Annoy for vector search/indexing il y a 1 an
README.md 7e076bd9d7 Add a note about a bug il y a 1 an
config.py caa854cba8 Format some file il y a 1 an
pyproject.toml cf34257719 Extend duration display to similar articles il y a 1 an
requirements-dev.lock cf34257719 Extend duration display to similar articles il y a 1 an
requirements-embeddings.lock 5d907e27a8 Add a requirements file for embeddings il y a 1 an
requirements.lock cf34257719 Extend duration display to similar articles il y a 1 an
settings.toml 207cc110db Move database URL to secrets il y a 1 an

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.