Deleted tags still seen as a release
Summary
If you create a tag and write release note to it, it will show as a released version. However, deleting the tag won't delete the release. As an outcome releases doesn't follow the tags when tag is deleted. In my project I have now two almost same releases. One which has spelling mistake on tag and the other one without typo :)
Steps to reproduce
- Create a tag and write release note for it.
- Delete the tag
- See that release is still there
Example Project
Here's the releases: https://gitlab.com/ramirahikkala/gitlabversionbug/releases And here's the tags: https://gitlab.com/ramirahikkala/gitlabversionbug/tags
What is the current bug behavior?
When tag is deleted it will keep on showing as a release
What is the expected correct behavior?
When tag is deleted the release will vanish also. Alternatively there should be a button to delete releases that doesn't have matching tag anymore.
Output of checks
This bug happens on GitLab.com, but also on my installation
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Proxy: no Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.3 Go Version: unknownGitLab information Version: 11.7.5-ee Revision: ed04633 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.11 URL: CONFIDENTIAL HTTP Clone URL: CONFIDENTIAL SSH Clone URL: CONFIDENTIAL Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 8.4.4 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...
Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.4.4 ? ... OK (8.4.4) Running /opt/gitlab/embedded/service/gitlab-shell/bin/check Check GitLab API access: OK Redis available via internal API: OK
Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking GitLab App ...
Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 2/1 ... yes 4/2 ... yes 4/3 ... yes 4/4 ... yes 10/7 ... yes 9/9 ... yes 8/11 ... yes 18/12 ... yes 18/13 ... yes 5/14 ... yes 3/15 ... yes 21/16 ... yes 18/17 ... yes 22/18 ... yes 12/19 ... yes 3/20 ... yes 25/23 ... yes 25/24 ... yes 25/25 ... yes 25/26 ... yes 25/27 ... yes 25/28 ... yes 25/29 ... yes 25/30 ... yes 24/31 ... yes 12/32 ... yes 16/33 ... yes 8/35 ... yes 16/37 ... yes 10/38 ... yes 10/39 ... yes 34/40 ... yes 34/41 ... yes 25/42 ... yes 25/43 ... yes 25/44 ... yes 25/45 ... yes 25/46 ... yes 25/47 ... yes 35/48 ... yes 36/49 ... yes 37/50 ... yes 16/51 ... yes 39/52 ... yes 40/53 ... yes 6/54 ... yes 10/55 ... yes 10/56 ... yes 10/57 ... yes 36/58 ... yes 50/59 ... yes 10/60 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 30 Elasticsearch version 5.6 - 6.x? ... skipped (elasticsearch is disabled)
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished