Don't show failing jobs on the index page

I'm not sure quite how to treat these yet, but for now, just stick with the
previous behaviour of showing revisions which haven't been processed yet,
along with the ones that have been successfully processed.
This commit is contained in:
Christopher Baines 2019-06-13 19:19:04 +01:00
parent 3a073d402d
commit 7c75591f44

View file

@ -46,7 +46,10 @@
" "
SELECT NULL AS id, load_new_guix_revision_jobs.id AS job_id, commit, source SELECT NULL AS id, load_new_guix_revision_jobs.id AS job_id, commit, source
FROM load_new_guix_revision_jobs FROM load_new_guix_revision_jobs
WHERE git_repository_id = $1 AND succeeded_at IS NULL WHERE git_repository_id = $1 AND succeeded_at IS NULL AND NOT EXISTS (
SELECT 1 FROM load_new_guix_revision_job_events
WHERE event = 'failure' AND job_id = load_new_guix_revision_jobs.id
)
UNION UNION
SELECT id, NULL, commit, NULL SELECT id, NULL, commit, NULL
FROM guix_revisions FROM guix_revisions