dosubot[bot] commented on issue #8805:
URL: 
https://github.com/apache/incubator-devlake/issues/8805#issuecomment-4118213711

   <!-- Answer -->
   Thanks for the detailed report! This aligns with some known issues in the 
SonarQube integration:
   
   **20-result limit**: The backend [defaults to a page size of 
100](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/sonarqube/api/remote_api.go#L45-L47),
 but the UI appears to be using `pageSize=20` — this has been [reported as a 
bug](https://github.com/apache/incubator-devlake/issues/8407#issuecomment-2837861365)
 affecting data scope selection. There's also a known pagination bug where 
selections on page 1 lose their checkbox state when navigating to page 2.
   
   **Inconsistent search results**: DevLake [passes the search keyword directly 
to SonarQube's `/api/projects/search` 
endpoint](https://github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/sonarqube/api/remote_api.go#L51-L55)
 — it doesn't implement its own pattern matching. The inconsistent behavior 
you're seeing (e.g., "translation" vs "backend" returning different results) is 
likely due to SonarQube's own search behavior, not DevLake.
   
   **Related**: If you're ever seeing an empty project list, check that your 
token has system admin rights — the `/api/projects/search` endpoint [requires 
admin permissions](https://github.com/apache/incubator-devlake/issues/8514). 
[PR 
#8707](https://github.com/apache/incubator-devlake/issues/8710#issuecomment-3883290387)
 proposes switching to an endpoint that doesn't require admin rights.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention 
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/234f9713-6543-4b77-90c8-7bb25ec75354?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/234f9713-6543-4b77-90c8-7bb25ec75354?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/234f9713-6543-4b77-90c8-7bb25ec75354?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/234f9713-6543-4b77-90c8-7bb25ec75354?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose)
 | [Hallucination](https://app.dosu.dev/response-feedback/234f9713-6543
 
-4b77-90c8-7bb25ec75354?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/234f9713-6543-4b77-90c8-7bb25ec75354?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/234f9713-6543-4b77-90c8-7bb25ec75354?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Thanks%20for%20the%20detailed%20report%21%20This%20aligns%20with%20some%20known%20issues%20in%20the%20SonarQube%20integration%3A%0A%0A%2A%2A20-result%20limit%2A%2A%3A%20The%20backend%20%5Bdefaults%20to%20a%20page%20size%20of%20100%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/sonarqube/api/remote_api.go%23L45-L47%29%2C%20but%20the%20UI%20appears%20to%20be%20using%20%60pageSize%3D20%60%20%E2%80%94%20this%20has%20been%20%5Breported%20as%20a%20bug%5D%28https%3A//github.com/apache/incubator-devlake/issues/8407%23issuecomment-2837861365%29%20affecting%20data%20scope%20selection.%20There%27s%20also%20a%20known%20p
 
agination%20bug%20where%20selections%20on%20page%201%20lose%20their%20checkbox%20state%20when%20navigating%20to%20page%202.%0A%0A%2A%2AInconsistent%20search%20results%2A%2A%3A%20DevLake%20%5Bpasses%20the%20search%20keyword%20directly%20to%20SonarQube%27s%20%60/api/projects/search%60%20endpoint%5D%28https%3A//github.com/apache/incubator-devlake/blob/2c15ad880dce830c6512fa58039527cbf4745b8b/backend/plugins/sonarqube/api/remote_api.go%23L51-L55%29%20%E2%80%94%20it%20doesn%27t%20implement%20its%20own%20pattern%20matching.%20The%20inconsistent%20behavior%20you%27re%20seeing%20%28e.g.%2C%20%22translation%22%20vs%20%22backend%22%20returning%20different%20results%29%20is%20likely%20due%20to%20SonarQube%27s%20own%20search%20behavior%2C%20not%20DevLake.%0A%0A%2A%2ARelated%2A%2A%3A%20If%20you%27re%20ever%20seeing%20an%20empty%20project%20list%2C%20check%20that%20your%20token%20has%20system%20admin%20rights%20%E2%80%94%20the%20%60/api/projects/search%60%20endpoint%20%5Brequires%20admin%20permis
 
sions%5D%28https%3A//github.com/apache/incubator-devlake/issues/8514%29.%20%5BPR%20%238707%5D%28https%3A//github.com/apache/incubator-devlake/issues/8710%23issuecomment-3883290387%29%20proposes%20switching%20to%20an%20endpoint%20that%20doesn%27t%20require%20admin%20rights.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/incubator-devlake/issues/8805)


-- 
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