-
Notifications
You must be signed in to change notification settings - Fork 87
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when running for a single group, its subgroups should be included #613
Comments
As far as I can tell this could be accomplished by using the https://docs.gitlab.com/ee/api/groups.html#list-a-groups-descendant-groups api after having loaded the group here https://github.com/gitlabform/gitlabform/blob/main/gitlabform/lists/groups.py#L28 We would also have to consider "excluded" groups afterwards. |
This came up during the above PR review. I feel the subgroups should also be included. Otherwise it's an unintuitive behaviour. If anyone doesn't want a subgroup to be processed, they can use the This feels like a potentially breaking change and is best to be handled so that a major version is released with this change. @gdubicki @jimisola - What do you think? @exaV - will you be able to help contribute this change? |
I completely agree - it should work this way, but it's a breaking change that should increase the major version. But because we version the configuration files we can do it safely with gitlabform v4 requiring |
Please check out an initial proposal for implementing this here https://github.com/gitlabform/gitlabform/wiki/Current-and-proposed-way-of-selecting-targets |
There is currently a unintuitive behaviour when it comes to running config for a single group.
Consider the following config file:
Here we define some settings for projects inside the top level
csi
group. We also specifically add some users as group members to the groupcsi/my-subgroup
. Unfortunately settings for that subgroup are only applied when we run withALL_DEFINED
orALL
orcsi/my-subgroup
but not when we run forcsi
. Considering the behaviour ofALL
I find this a bit counter-intuitive.Example output:
pipx run gitlabform csi
:🏗 GitLabForm version: 3.8.0 = the latest stable 😊
pipx run gitlabform ALL_DEFINED
:What should happen:
Running
pipx run gitlabform csi
should also update all subgroups of csi.The text was updated successfully, but these errors were encountered: