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

   <!-- Greeting -->
   Hi @ahmedabbas11! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping 
the incubator-devlake team.
   
   <!-- Answer -->
   The `GITLAB_SERVER_COLLECT_ALL_USERS` environment variable was [introduced 
in PR #8528](https://github.com/apache/incubator-devlake/pull/8528), which was 
merged on **August 7, 2025** — nearly a year after v1.0.1 was released 
(September 23, 2024). This is why setting the variable has no effect in your 
version; the code to read and use it simply doesn't exist yet.
   
   **In v1.0.1**, the behavior is hardcoded:
   - Public GitLab instances (gitlab.com, jihulab.com): Collects only project 
members
   - Self-hosted/private instances: Always collects all users via `/users` 
endpoint
   
   **To fix this**, you'll need to upgrade to a version released after August 
2025. Once upgraded, you can set:
   ```
   GITLAB_SERVER_COLLECT_ALL_USERS=false
   ```
   
   This will restrict collection to project members only on self-hosted 
instances.
   
   This feature was specifically added to address [data duplication 
issues](https://github.com/apache/incubator-devlake/issues/8523#issuecomment-3162777917)
 where user records were being duplicated thousands of times on self-hosted 
GitLab instances with many repositories.
   
   
   <!-- 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/2ac31a21-a639-487a-96f3-0af286f74099?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/2ac31a21-a639-487a-96f3-0af286f74099?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/2ac31a21-a639-487a-96f3-0af286f74099?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/2ac31a21-a639-487a-96f3-0af286f74099?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/2ac31a21-a639-487a-96f3-0af286f74099?feedback_type=hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/2ac31a21-a639-487a-96f3-0af286f74099?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/2ac31a21-a639-487a-96f3-0af286f74099?feedback_type=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)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20%60GITLAB_SERVER_COLLECT_ALL_USERS%60%20environment%20variable%20was%20%5Bintroduced%20in%20PR%20%238528%5D%28https%3A//github.com/apache/incubator-devlake/pull/8528%29%2C%20which%20was%20merged%20on%20%2A%2AAugust%207%2C%202025%2A%2A%20%E2%80%94%20nearly%20a%20year%20after%20v1.0.1%20was%20released%20%28September%2023%2C%202024%29.%20This%20is%20why%20setting%20the%20variable%20has%20no%20effect%20in%20your%20version%3B%20the%20code%20to%20read%20and%20use%20it%20simply%20doesn%27t%20exist%20yet.%0A%0A%2A%2AIn%20v1.0.1%2A%2A%2C%20the%20behavior%20is%20hardcoded%3A%0A-%20Public%20GitLab%20instances%20%28gitlab.com%2C%20jihulab.com%29%3A%20Collects%20only%20project%20members%0A-%20Self-hosted/private%20instances%3A%20Always%20collects%20all%20
 
users%20via%20%60/users%60%20endpoint%0A%0A%2A%2ATo%20fix%20this%2A%2A%2C%20you%27ll%20need%20to%20upgrade%20to%20a%20version%20released%20after%20August%202025.%20Once%20upgraded%2C%20you%20can%20set%3A%0A%60%60%60%0AGITLAB_SERVER_COLLECT_ALL_USERS%3Dfalse%0A%60%60%60%0A%0AThis%20will%20restrict%20collection%20to%20project%20members%20only%20on%20self-hosted%20instances.%0A%0AThis%20feature%20was%20specifically%20added%20to%20address%20%5Bdata%20duplication%20issues%5D%28https%3A//github.com/apache/incubator-devlake/issues/8523%23issuecomment-3162777917%29%20where%20user%20records%20were%20being%20duplicated%20thousands%20of%20times%20on%20self-hosted%20GitLab%20instances%20with%20many%20repositories.)&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/8717)


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