You've already forked AstralRinth
forked from didirus/AstralRinth
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:
committed by
GitHub
parent
ff222aa168
commit
3bf5a6ebec
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"db_name": "PostgreSQL",
|
|
||||||
"query": "\n SELECT id\n FROM (\n SELECT DISTINCT ON (m.id)\n m.id,\n m.queued\n FROM mods m\n\n -- exclude projects in tech review queue\n LEFT JOIN delphi_issue_details_with_statuses didws\n ON didws.project_id = m.id AND didws.status = 'pending'\n\n WHERE\n m.status = $1\n AND didws.status IS NULL\n\n GROUP BY m.id\n ) t\n\n ORDER BY queued ASC\n OFFSET $3\n LIMIT $2\n ",
|
|
||||||
"describe": {
|
|
||||||
"columns": [
|
|
||||||
{
|
|
||||||
"ordinal": 0,
|
|
||||||
"name": "id",
|
|
||||||
"type_info": "Int8"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"parameters": {
|
|
||||||
"Left": [
|
|
||||||
"Text",
|
|
||||||
"Int8",
|
|
||||||
"Int8"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"nullable": [
|
|
||||||
false
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"hash": "d30290c1b55d9fb0939d122a96f350233d40ad81ac2d16481a0e9b32424a999d"
|
|
||||||
}
|
|
||||||
24
apps/labrinth/.sqlx/query-ec1f08768071d55613b0b69b3eac43e1e5d0a532171b5de7b9086ae7376f1482.json
generated
Normal file
24
apps/labrinth/.sqlx/query-ec1f08768071d55613b0b69b3eac43e1e5d0a532171b5de7b9086ae7376f1482.json
generated
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
{
|
||||||
|
"db_name": "PostgreSQL",
|
||||||
|
"query": "\n SELECT id\n FROM (\n SELECT DISTINCT ON (m.id)\n m.id,\n m.queued\n FROM mods m\n\n /* -- Temporarily, don't exclude projects in tech rev q\n\n -- exclude projects in tech review queue\n LEFT JOIN delphi_issue_details_with_statuses didws\n ON didws.project_id = m.id AND didws.status = 'pending'\n */\n\n WHERE\n m.status = $1\n /* AND didws.status IS NULL */ -- Temporarily don't exclude\n\n GROUP BY m.id\n ) t\n ORDER BY queued ASC\n OFFSET $3\n LIMIT $2\n ",
|
||||||
|
"describe": {
|
||||||
|
"columns": [
|
||||||
|
{
|
||||||
|
"ordinal": 0,
|
||||||
|
"name": "id",
|
||||||
|
"type_info": "Int8"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"parameters": {
|
||||||
|
"Left": [
|
||||||
|
"Text",
|
||||||
|
"Int8",
|
||||||
|
"Int8"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"nullable": [
|
||||||
|
false
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"hash": "ec1f08768071d55613b0b69b3eac43e1e5d0a532171b5de7b9086ae7376f1482"
|
||||||
|
}
|
||||||
@@ -118,17 +118,19 @@ pub async fn get_projects_internal(
|
|||||||
m.queued
|
m.queued
|
||||||
FROM mods m
|
FROM mods m
|
||||||
|
|
||||||
-- exclude projects in tech review queue
|
/* -- Temporarily, don't exclude projects in tech rev q
|
||||||
LEFT JOIN delphi_issue_details_with_statuses didws
|
|
||||||
ON didws.project_id = m.id AND didws.status = 'pending'
|
-- 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
|
WHERE
|
||||||
m.status = $1
|
m.status = $1
|
||||||
AND didws.status IS NULL
|
/* AND didws.status IS NULL */ -- Temporarily don't exclude
|
||||||
|
|
||||||
GROUP BY m.id
|
GROUP BY m.id
|
||||||
) t
|
) t
|
||||||
|
|
||||||
ORDER BY queued ASC
|
ORDER BY queued ASC
|
||||||
OFFSET $3
|
OFFSET $3
|
||||||
LIMIT $2
|
LIMIT $2
|
||||||
|
|||||||
Reference in New Issue
Block a user