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

   <!-- Greeting -->
   Hi @jackwills-op! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping 
the incubator-devlake team.
   
   <!-- Answer -->
   Based on the current implementation, DevLake's CircleCI plugin fetches 
project data using the CircleCI API, but it relies on a specific `ProjectSlug` 
parameter for each project and does not automatically list all projects for an 
organization. This means that unless project slugs are already known or 
manually entered, the UI will not show any selectable projects—even if the 
connection test succeeds with a valid personal access token. The plugin expects 
to populate the `_tool_circleci_projects` table with project data, but if no 
slugs are provided or detected, the list remains empty and the "Save" button is 
disabled in the UI ["project 
collector"](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/circleci/tasks/project_collector.go),
 ["plugin 
implementation"](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/circleci/impl/impl.go).
   
   This behavior is similar to issues seen with other integrations (like 
SonarCloud and Azure DevOps), where missing organization keys or insufficient 
permissions resulted in empty project lists despite successful connection tests 
["SonarCloud issue"](https://github.com/apache/incubator-devlake/issues/8512), 
["Azure DevOps 
issue"](https://github.com/apache/incubator-devlake/issues/8535). For CircleCI, 
there is no evidence in the code or documentation that organization-wide 
project listing is currently supported out of the box.
   
   To troubleshoot, you can enable DEBUG level logging in DevLake to check for 
backend errors or failed API calls during project listing attempts. As a 
workaround, you may need to manually enter project slugs or insert them 
directly into the database until broader project discovery is supported. If you 
need historical data, webhook connections alone won't suffice.
   
   If you want organization-wide project listing, this would likely require a 
feature enhancement to the plugin to support fetching all projects for a given 
organization via the CircleCI API.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/5d7f5482-73d8-467d-aa6f-01e231d1288b?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/5d7f5482-73d8-467d-aa6f-01e231d1288b?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/5d7f5482-73d8-467d-aa6f-01e231d1288b?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/5d7f5482-73d8-467d-aa6f-01e231d1288b?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/5d7f5482-73d8-467d-aa6f-01e231d1288b?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/5d7f5482-73d8-467d-aa6f-01e231d1288b?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/5d7f5482-73d8-467d-aa6f-01e231d1288b?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat
 with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/b4e8e847-d479-4541-83a8-d88d83fea5c9/ask?utm_source=githu
 b)&nbsp;[![Join 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&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/8634)


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