Allow projects in tech review to still show up in moderation queue (#5068)

* Don't prevent projects from appearing in moderation queue if there are pending delphi reports

* Update query cache
This commit is contained in:
François-Xavier Talbot
2026-01-08 14:47:32 -05:00
committed by GitHub
parent ff222aa168
commit 3bf5a6ebec
3 changed files with 31 additions and 29 deletions

View File

@@ -118,17 +118,19 @@ pub async fn get_projects_internal(
m.queued
FROM mods m
-- exclude projects in tech review queue
LEFT JOIN delphi_issue_details_with_statuses didws
ON didws.project_id = m.id AND didws.status = 'pending'
/* -- Temporarily, don't exclude projects in tech rev q
-- exclude projects in tech review queue
LEFT JOIN delphi_issue_details_with_statuses didws
ON didws.project_id = m.id AND didws.status = 'pending'
*/
WHERE
m.status = $1
AND didws.status IS NULL
/* AND didws.status IS NULL */ -- Temporarily don't exclude
GROUP BY m.id
) t
ORDER BY queued ASC
OFFSET $3
LIMIT $2