New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃殌 Feature: scope Gitlab Org Data integration to a single group #16025
Comments
Thanks for creating this and #16023. Think they both seem reasonable! 馃檹 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still needs to be implemented |
Anyone up for this? Right now we are using the public gitlab.com and backstage tries to list/discover all users which are hundreds of thousands.. |
My team is currently working on this. Hoping to have some changes to review and collect feedback in the coming days |
Hi, just wanted to comment that this stuff is risky as in GitLab self-hosted it's reasonable that you want all users (of the whole instance) but just a subgroup for teams, and that's why I worked on a merged MR in the past to allow fetch only subgroups of a specific group:
Instead in the SaaS instance you still want the second option as your teams description will definitely be under some subgroup, but you only want the user that are member of your root level group, so we should probably add an option that tell us which is the root level group. |
@sbarrypoppulo if you need help I'd be happy to work with you on this |
@matteosilv Yes, having to support slightly different logic for Self-Managed GitLab and GitLab.com is a bit of a challenge. We've handled this in our implementation like so:
We're fairly close to opening a PR for review, so would appreciate any feedback and testing of the proposed changes! Our solution is potentially geared towards our Orgs particular group and membership structure, but will hopefully provide something that can be built upon. |
For example with your current implementation you seem to be breaking the assumption I made with my MR: In my case I have my root level group that is
and pass the root level group, stripping out any subgroup. What do you think? |
I commented in your fork. I can help and test it on my instance if needed |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Closing this as resolved by #18889 |
馃敄 Feature description
The
group
field for aGitlabProviderConfig
is described asbackstage/plugins/catalog-backend-module-gitlab/config.d.ts
Lines 32 to 36 in e9e5da2
and
backstage/docs/integrations/gitlab/discovery.md
Line 25 in e9e5da2
This is consistent with the behaviour of the
GitlabDiscoveryEntityProvider
, which uses the parameter to filter projects:backstage/plugins/catalog-backend-module-gitlab/src/providers/GitlabDiscoveryEntityProvider.ts
Lines 155 to 162 in e9e5da2
Since the
GitlabOrgDiscoveryEntityProvider
also consumes aGitlabProviderConfig
, it could interpret the same parameter in a corresponding fashion regarding groups and users:馃帳 Context
Narrowing the set of users and groups to ingest is helpful when your organization is using a GitLab instance shared with other software projects that are not tracked in Backstage. Also, if your GitLab instance contains a lot of data, it can be helpful to narrow the scope of ingestion to get faster feedback while testing and iterating on your provider config.
鉁岋笍 Possible Implementation
In #16023 I mention a GraphQL query that can fetch a group and its descendant groups, as well as direct memberships at each level of the hierarchy. That's a pretty good fit for this issue too!
馃憖 Have you spent some time to check if this feature request has been raised before?
馃彚 Have you read the Code of Conduct?
Are you willing to submit PR?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: