ezbz / gitlabber

Gitlabber - clones or pulls entire groups tree from gitlab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clone/pull by a group id

konfetka1989 opened this issue · comments

If you have access to a large amount of groups, it may take much time to load an entire tree. It would be nice to have an opportunity to specify an exact group id which you want to clone.

I propose my solution:
konfetka1989@e48c267

Please consider it. Thanks.

I didn't create a pull request, because CONTRIBUTING.md states I have to discuss my changes with the owner first.

thanks for submitting code and suggesting this feature, I do realize for large setups reading the entire tree structure can take a long time and incur a lot of API calls.

2 concerns we need to address with this feature:

  1. I am assuming it plays well with globre patterns (if a user specifies a globre pattern that doesn't match with the selected group it will result in an empty tree but that is to be expected I guess)
  2. You chose to use group id for root filtering but for the majority of gitlabber usage people get accustomed to use project and group names/paths. Should this be considered in the root filtering feature? looking forward this may translate into more issues being opened for this.

Hi @ezbz

Thank you for the feedback! Now I see several issues with my approach. I think I need to revisit this feature.

Hi @ezbz

I created a draft pull request which provides a new approach to using some group as a root: #89

Could you please review it? Thank you.

Hi everybody!
It will be very helpful for me as unfortunately I am hitting gitlab rate limits, so - sadly - I cannot use this tool. AFAIU this merge request should limit the number of http requests.

Hi everybody! It will be very helpful for me as unfortunately I am hitting gitlab rate limits, so - sadly - I cannot use this tool. AFAIU this merge request should limit the number of http requests.

Python gitlab implements rate limiting and obeys gitlab's throttling, see: https://python-gitlab.readthedocs.io/en/latest/api-usage-advanced.html#rate-limits