Skip to content

Conversation

@jmgasper
Copy link
Collaborator

@jmgasper jmgasper commented Nov 1, 2025

No description provided.

@jmgasper jmgasper merged commit 641df60 into develop Nov 1, 2025
4 checks passed
LIMIT 1
) AS "incompletePhaseName"
) deliverable_reviews ON TRUE
) deliverable_reviews ON r.id IS NOT NULL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
The change from ON TRUE to ON r.id IS NOT NULL modifies the join condition, potentially altering the result set. Ensure that this change aligns with the intended logic and does not inadvertently exclude rows that should be included.

AND apr.id IS NULL
) AS "hasPendingAppealResponses"
) pending_appeals ON TRUE
) pending_appeals ON r.id IS NOT NULL
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Similar to the change on line 284, altering the join condition from ON TRUE to ON r.id IS NOT NULL could affect the result set. Verify that this change is intentional and does not exclude necessary rows.

WHERE cr."challengeId" = c.id
AND cr."aiWorkflowId" is not NULL
) AS "hasAIReview"
TRUE AS "hasAIReview"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[❗❗ correctness]
Replacing the EXISTS subquery with TRUE changes the logic of determining hasAIReview. This could lead to incorrect data being returned if the presence of AI reviews is not properly checked. Ensure this change is intentional and correctly reflects the business logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants