feat(qa): add synthesis conversations with source retention (#52)

This commit is contained in:
2026-11-25 19:46:06 +01:00
parent 90dd2a65d2
commit 287811184f
49 changed files with 2636 additions and 47 deletions

View File

@ -53,7 +53,7 @@ func TestPreferencesPersistPerUserPostgres(t *testing.T) {
if _, err = db.Exec(string(migration)); err != nil {
t.Fatal(err)
}
if _, err = db.Exec(`ALTER TABLE users ADD COLUMN ranking_model_id UUID, ADD COLUMN summary_model_id UUID NULL, ADD COLUMN summary_prompt_token_budget INT NOT NULL DEFAULT 250000`); err != nil {
if _, err = db.Exec(`ALTER TABLE users ADD COLUMN source_article_retention_days INT NOT NULL DEFAULT 7, ADD COLUMN ranking_model_id UUID, ADD COLUMN summary_model_id UUID NULL, ADD COLUMN summary_prompt_token_budget INT NOT NULL DEFAULT 250000`); err != nil {
t.Fatal(err)
}
// The two accounts predate migration 11: defaults must backfill both,