We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8d24ee commit 6fe589bCopy full SHA for 6fe589b
1 file changed
backend/kernelCI_app/queries/tree.py
@@ -802,7 +802,6 @@ def get_tree_details_builds(
802
AND c.origin = %(origin_param)s
803
ORDER BY
804
c._timestamp DESC
805
- LIMIT 1
806
)
807
SELECT
808
b.id AS build_id,
@@ -832,7 +831,7 @@ def get_tree_details_builds(
832
831
iss.report_url AS issue_report_url
833
FROM
834
builds b
835
- INNER JOIN RELEVANT_CHECKOUTS rc ON b.checkout_id = rc.checkout_id
+ INNER JOIN RELEVANT_CHECKOUTS rc ON b.checkout_id IN (SELECT checkout_id FROM RELEVANT_CHECKOUTS)
836
LEFT JOIN incidents inc
837
ON inc.build_id = b.id AND inc.test_id IS NULL
838
LEFT JOIN issues iss
0 commit comments