Deleted tags keeps "protected" status. If creating new tag with identical name, "protected" status is restored.
Checklist
-
I'm using the latest version of the extension (Run glab --version)- Extension version: 15.9
-
Operating System and version: - Linux Mint 18.04
- Python 3.8.16
- python-gitlab 3.13.0
Summary
Tried out creating/deleting tags and protected tags using Python + Gitlab API.
Steps to reproduce
Within Python code,
- create tag, name = "xxx"
- create protected tag, name = "xxx"
- intentionally, leave out: delete protected tag, name = "xxx"
- delete tag, name = "xxx"
- create tag, name = "xxx"
What is the current bug behavior?
Gitlab server shows recreated tag "xxx" as a protected tag.
What is the expected correct behavior?
Recreated tags should be created always with well defined state (aka unprotected). Currently, the protection state of the recreated tag depends on history. If identical named, but already deleted tag exists, the protection status is copied from deleted tag.
Relevant logs and/or screenshots
Reproduces by Python script: