Skip to content

Fix hasSO detection in scoring to respect linked SO accounts with no activity - #86

Merged
sajeetharan merged 2 commits into
mainfrom
copilot/fix-code-review-suggestion
Aug 7, 2026
Merged

Fix hasSO detection in scoring to respect linked SO accounts with no activity#86
sajeetharan merged 2 commits into
mainfrom
copilot/fix-code-review-suggestion

Conversation

Copilot AI commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

computeScore() determined hasSO purely from soReputation > 0 || soAnswers > 0, so a developer with a linked Stack Overflow account (soUserId present) but zero recorded activity was treated as having no SO presence, triggering weight redistribution to GitHub dimensions and UI copy that contradicted the actual SO link.

  • lib/scoring.js: hasSO now also checks dev.soUserId, OR-ing it with the existing reputation/answers heuristic for backward compatibility.
const hasSO = Boolean(dev.soUserId) || (dev.soReputation || 0) > 0 || (dev.soAnswers || 0) > 0;

@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dev-globe-viz Ready Ready Preview Aug 7, 2026 2:14pm

Co-authored-by: sajeetharan <4833351+sajeetharan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code based on review comment Fix hasSO detection in scoring to respect linked SO accounts with no activity Aug 7, 2026
Copilot AI requested a review from sajeetharan August 7, 2026 14:14
@sajeetharan
sajeetharan marked this pull request as ready for review August 7, 2026 14:16
@sajeetharan
sajeetharan merged commit c403093 into main Aug 7, 2026
3 checks passed
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