Skip to content

Commit

Permalink
eapi cleanup: exclude blockers with rev deps count
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Zamarin <[email protected]>
  • Loading branch information
arthurzam committed Aug 2, 2024
1 parent 0927870 commit 1945a73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/handler/packages/eapi.templ
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func Eapi(w http.ResponseWriter, r *http.Request) {
Where("atom = version.atom").
Limit(1)).
Join("LEFT JOIN reverse_dependencies").JoinOn("version.atom = reverse_dependencies.atom").
ColumnExpr("COALESCE(COUNT(DISTINCT reverse_dependencies.reverse_dependency_atom),0) AS reverse_dependencies").
ColumnExpr("COALESCE(COUNT(DISTINCT reverse_dependencies.reverse_dependency_atom) FILTER(WHERE reverse_dependency_atom NOT LIKE '[B]%'),0) AS reverse_dependencies").
Join("LEFT JOIN package_to_bugs").JoinOn("version.atom = package_to_bugs.package_atom").
ColumnExpr("COALESCE(COUNT(DISTINCT package_to_bugs.id),0) AS bugs").
ColumnExpr("EXISTS(?) AS is_masked",
Expand Down

0 comments on commit 1945a73

Please sign in to comment.