-
Notifications
You must be signed in to change notification settings - Fork 88
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
Child group settings are not being inherited from the parent group in the output file #372
Comments
@ep-linden - to be clear, in that example, the effective config for |
Yup, that is correct.
These two do not get inherited. |
I checked if the It could be possible, that it isn't being printed properly. Will double-check. |
In the tests inheritance works like it should, please check out my latest commit where I specifically made the subgroup effective group-level settings tests use the data from this issue. So if it doesn't work when generating the dry-run config or when making actual changes, then the bug seems to be someplace else. |
Hi Greg, the tests pass, and I know why they passed. It is because the effective config is being retrieved by the However, if we actually look at how and where |
Thanks for the fix, @ep-linden ! |
Hi @ep-linden! After we merged #385 I updated the upgrade guide to add info how to use However, when I tried to apply this recommendation myself I got an error:
The relevant config:
So I suspected that we actually can't put I am a bit confused with what is happening here, can you please check it out? |
Interesting, I'll take a look. |
I figured it out. The test and local run results are different because we use 'get_effective_config_for_group' in the test, but the error is caught here, which is from |
Thanks @ep-linden. The current implementation is fine, I have updated the upgrade guide to put the key under each section. |
Closing as v3 with the fix has been released. |
Describe the bug
A group contains
group_settings
a subgroup needs as well. However, the subgroup does not inherit those settings. At least in the dry run, we don't see the inheritance.GitLabForm version
🏗 GitLabForm version: 2.11.1 = the latest stable 😊
GitLab version
GitLab Enterprise Edition 14.10.2-ee
The text was updated successfully, but these errors were encountered: