Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@sisp
Copy link
Contributor

@sisp sisp commented Nov 20, 2025

Changes

I've added support for deleting a registry protection rule. It seems this feature was missed in the initial implementation although it was documented.

For this, I've added the DeleteMixin, and I've extended the functional API test as well as added a unit test.

Documentation and testing

Please consider whether this PR needs documentation and tests. This is not required, but highly appreciated:

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.75%. Comparing base (d6eac7b) to head (99e628c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3300   +/-   ##
=======================================
  Coverage   95.75%   95.75%           
=======================================
  Files          98       98           
  Lines        6052     6052           
=======================================
  Hits         5795     5795           
  Misses        257      257           
Flag Coverage Δ
api_func_v4 83.59% <100.00%> (-0.07%) ⬇️
cli_func_v4 78.68% <100.00%> (ø)
unit 90.18% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...v4/objects/registry_protection_repository_rules.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@nejch nejch left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this @sisp and sorry for the long delay 🙇

tests/functional/api/test_registry.py Show resolved Hide resolved
@nejch nejch enabled auto-merge (rebase) December 24, 2025 23:25
@nejch nejch merged commit 9dd62c3 into python-gitlab:main Dec 24, 2025
16 checks passed
@sisp sisp deleted the feat/registry-protection-rule-deletion branch December 25, 2025 07:32
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.