From 741bf969704e9187324838b324b3ee56a33d131c Mon Sep 17 00:00:00 2001 From: kiannidev <156195510+kiannidev@users.noreply.github.com> Date: Tue, 16 Jun 2026 00:54:32 +0200 Subject: [PATCH] fix(miners): case-insensitive joins for review_summary and repos --- packages/das/src/api/miners/miners.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/das/src/api/miners/miners.service.ts b/packages/das/src/api/miners/miners.service.ts index 075a210..8ba86cd 100644 --- a/packages/das/src/api/miners/miners.service.ts +++ b/packages/das/src/api/miners/miners.service.ts @@ -206,10 +206,10 @@ export class MinersService { SELECT${PR_SELECT_COLUMNS} FROM pull_requests p LEFT JOIN pr_review_summary rs - ON rs.repo_full_name = p.repo_full_name + ON LOWER(rs.repo_full_name) = LOWER(p.repo_full_name) AND rs.pr_number = p.pr_number LEFT JOIN repos r - ON r.repo_full_name = p.repo_full_name + ON LOWER(r.repo_full_name) = LOWER(p.repo_full_name) LEFT JOIN maintainers m_author ON m_author.github_id = p.author_github_id AND m_author.repo_full_name = LOWER(p.repo_full_name) @@ -301,10 +301,10 @@ export class MinersService { JOIN windows w ON w.repo_full_name = LOWER(p.repo_full_name) LEFT JOIN pr_review_summary rs - ON rs.repo_full_name = p.repo_full_name + ON LOWER(rs.repo_full_name) = LOWER(p.repo_full_name) AND rs.pr_number = p.pr_number LEFT JOIN repos r - ON r.repo_full_name = p.repo_full_name + ON LOWER(r.repo_full_name) = LOWER(p.repo_full_name) LEFT JOIN maintainers m_author ON m_author.github_id = p.author_github_id AND m_author.repo_full_name = LOWER(p.repo_full_name)