mfrancisc opened a new pull request, #9034:
URL: https://github.com/apache/devlake/pull/9034

   ## Summary
   Fixes #8947
   When the same GitHub repository is added under more than one connection, 
DevLake stores duplicate domain-layer records and metrics get inflated. The 
Config UI previously allowed this with no warning.
   This PR adds:
   - `GET /plugins/github/scope-duplicates` — diagnostics (repos already on 
multiple connections) and a pre-add check (`connectionId` + `githubIds`)
   - A dismissible, non-blocking warning in Config-UI when selecting a GitHub 
repo that already exists under another connection
   Save is still allowed; users can choose to proceed intentionally.
   
   ## Screenshot
   <img width="3447" height="1260" alt="image" 
src="https://github.com/user-attachments/assets/fdfd7391-879c-4c35-995a-4d2509e5b6d3";
 />
   
   
   ## Follow-ups
   - Same API + Config-UI warning for GitLab and Bitbucket
   - Optional global `GET /api/scope-duplicates` aggregator
   - Domain-layer dedup / metric fixes remain out of scope


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to