SPB Git forge
38commits 1branches 0releases
338.7 MBsize
maindefault branch
1 h agolast push
HTML 53.9% TypeScript 44.5% JavaScript 0.6% SQL 0.5%

quality-apply: unconfirmed rule relies on document re-extraction timestamps only

Simon-Pierre Boucher committed 20 days ago (Sep 12, 2026) parent bdfc06a

2 changed files +1 −2

modified deploy/bin/post-upgrade.sh +1 −1
@@ -27,7 +27,7 @@ if has baseline; then
27 27 fi
28 28 if has repair; then
29 29 log "repair: hide vetoed projects, fix slugs, link campuses"
30 − script quality-apply.ts --hide-false-positives --fix-slugs --link-campuses | tail -40
30 + script quality-apply.ts --hide-false-positives --hide-unconfirmed --fix-slugs --link-campuses | tail -40
31 31 fi
32 32 if has reprocess; then
33 33 log "reprocess: every connector, stale documents only (offline)"
modified scripts/quality-apply.ts +0 −1
@@ -81,7 +81,6 @@ async function hideUnconfirmed(): Promise<void> {
81 81 where p.merged_into is null and not p.hidden and p.project_class is null
82 82 and d.extractor_version = c.parser_version and d.extract_ok
83 83 and not exists (select 1 from claims cl where cl.subject_type = 'project' and cl.subject_id = p.id)
84 − and not exists (select 1 from entity_keys k where k.entity_type = 'project' and k.entity_id = p.id and k.created_at > now() - interval '1 day')
85 84 and p.updated_at < d.updated_at`);
86 85 for (const r of rows) console.log(` hide ${r.slug.padEnd(70)} ${String(r.planned_mw ?? "").padStart(7)} MW re-extraction produced no project record «${r.name.slice(0, 70)}»`);
87 86 if (has("--hide-unconfirmed")) for (const r of rows) await db.transaction((tx) => hideProject(tx, r.id, "re-extraction with the current parser produced no project record (class veto / evidence threshold)", "quality-apply"));
88 87