Skip to content

fix(merge_requests_approval_rules): stop redundant edit calls on unchanged rules - #1350

Merged
rickbrouwer merged 1 commit into
gitlabform:mainfrom
rickbrouwer:approval-rules
Jul 17, 2026
Merged

rickbrouwer merged 1 commit into
gitlabform:mainfrom
rickbrouwer:approval-rules

Conversation

@rickbrouwer

Copy link
Copy Markdown
Collaborator

The base _needs_update compared config keys (user_ids / group_ids / protected_branches as names) against the GitLab response shape (users / groups as object lists, protected_branches as dicts), so keys_only_in_configuration always fired and every run issued a PUT.

Override _needs_update to normalize both sides before comparing, and mirror edit_approval_rule's semantics that a missing list in config means "clear it".

@rickbrouwer
rickbrouwer temporarily deployed to Integrate Pull Request July 10, 2026 13:14 — with GitHub Actions Inactive
@rickbrouwer
rickbrouwer had a problem deploying to Integrate Pull Request July 10, 2026 13:14 — with GitHub Actions Failure
@rickbrouwer
rickbrouwer had a problem deploying to Integrate Pull Request July 10, 2026 16:02 — with GitHub Actions Failure
@rickbrouwer
rickbrouwer temporarily deployed to Integrate Pull Request July 10, 2026 16:02 — with GitHub Actions Inactive
@rickbrouwer
rickbrouwer temporarily deployed to Integrate Pull Request July 10, 2026 16:29 — with GitHub Actions Inactive
@rickbrouwer
rickbrouwer had a problem deploying to Integrate Pull Request July 10, 2026 16:29 — with GitHub Actions Failure
@rickbrouwer
rickbrouwer temporarily deployed to Integrate Pull Request July 10, 2026 17:07 — with GitHub Actions Inactive
@rickbrouwer
rickbrouwer had a problem deploying to Integrate Pull Request July 10, 2026 17:07 — with GitHub Actions Failure
@rickbrouwer
rickbrouwer temporarily deployed to Integrate Pull Request July 10, 2026 17:29 — with GitHub Actions Inactive
@rickbrouwer
rickbrouwer temporarily deployed to Integrate Pull Request July 10, 2026 17:29 — with GitHub Actions Inactive
@rickbrouwer
rickbrouwer marked this pull request as ready for review July 10, 2026 17:51
@TimKnight01
TimKnight01 temporarily deployed to Integrate Pull Request July 14, 2026 10:39 — with GitHub Actions Inactive
@TimKnight01
TimKnight01 temporarily deployed to Integrate Pull Request July 14, 2026 10:39 — with GitHub Actions Inactive
@rickbrouwer
rickbrouwer merged commit 9a35428 into gitlabform:main Jul 17, 2026
26 of 27 checks passed
@rickbrouwer
rickbrouwer deleted the approval-rules branch July 17, 2026 17:13

This branch was previously deployed

1 inactive deployment
Integrate Pull Request — 2d0cc4da Deployed Jul 14, 2026 by TimKnight01 via Acceptance Tests / GitLab Premium #109
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.

2 participants