Skip to content
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

Fix running with ALL when using gitlab.com #518

Merged
merged 3 commits into from
Mar 17, 2023
Merged

Fix running with ALL when using gitlab.com #518

merged 3 commits into from
Mar 17, 2023

Conversation

gdubicki
Copy link
Member

and improve behavior in other cases when running as
a non-admin. In that case there is no point in trying
to get all groups or projects as you need at least
Reporter role to change their configuration.

Fixes: #509

and improve behavior in other cases when running as
a non-admin. In that case there is no point in trying
to get all groups or projects as you need at least
Reporter role to change their configuration.

Fixes #509
@gdubicki gdubicki temporarily deployed to Integrate Pull Request March 13, 2023 17:17 — with GitHub Actions Inactive
@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Merging #518 (58f4dd6) into main (7dab06c) will increase coverage by 0.61%.
The diff coverage is 71.42%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #518      +/-   ##
==========================================
+ Coverage   84.21%   84.82%   +0.61%     
==========================================
  Files          70       70              
  Lines        2679     2688       +9     
==========================================
+ Hits         2256     2280      +24     
+ Misses        423      408      -15     
Impacted Files Coverage Δ
gitlabform/processors/__init__.py 94.44% <50.00%> (+3.53%) ⬆️
gitlabform/gitlab/groups.py 85.93% <66.66%> (-2.00%) ⬇️
gitlabform/gitlab/core.py 95.07% <75.00%> (+0.25%) ⬆️
gitlabform/__init__.py 65.11% <100.00%> (+3.10%) ⬆️

... and 2 files with indirect coverage changes

@gdubicki gdubicki temporarily deployed to Integrate Pull Request March 13, 2023 17:23 — with GitHub Actions Inactive
@gdubicki gdubicki marked this pull request as ready for review March 13, 2023 17:39
@gdubicki
Copy link
Member Author

I would appreciate it if someone could take a look at this, conceptually. Do you think it is okay to limit getting groups and projects like this, @amimas @jimisola?

@@ -28,21 +28,10 @@ def process_entity(
):
for processor in self.processors:
if only_sections == "all" or processor.configuration_name in only_sections:
try:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part of the PR just restores the code before by debugging that accidentally got pushed to main. It's not related with the rest of the PR.

gitlabform/__init__.py Outdated Show resolved Hide resolved
@jimisola
Copy link
Collaborator

I would appreciate it if someone could take a look at this, conceptually. Do you think it is okay to limit getting groups and projects like this, @amimas @jimisola?

You mean

In that case there is no point in trying to get all groups or projects as you need at least Reporter role to change their configuration.

I've so, then I would say yes. I can't come up with a reason why it's not a good concept.

@gdubicki gdubicki merged commit 063030d into main Mar 17, 2023
@gdubicki gdubicki deleted the fix_509 branch March 17, 2023 21:15
@gdubicki gdubicki had a problem deploying to Integrate Pull Request March 17, 2023 21:15 — with GitHub Actions Failure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

group_settings are not applied to groups recursively
2 participants