From d574d102aa5a13824fbc9dbbc1279788b0073242 Mon Sep 17 00:00:00 2001 From: marktech0813 Date: Fri, 24 Jul 2026 06:55:11 +0000 Subject: [PATCH] fix(miners): case-insensitive joins for review_summary and repos Co-authored-by: Cursor --- 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)