Redirect editing release notes to proper forms
What does this MR do and why?
We have obsolete "edit release notes" which was deprecated a long time ago.
This commit directs users to the proper new release or edit release form.
It also adds support of passing the default tag name to the "new release" form in the URL.
Screenshots or screen recordings
https://www.loom.com/share/0ab892fa047f459e8dde784947417c73
How to set up and validate locally
# git checkout 362339-tag-edit-button-should-lead-to-the-release-page
# ./bin/rails c
--------------------------------------------------------------------------------
Ruby: ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-linux]
GitLab: 15.2.0-pre (83b2714da34) EE
GitLab Shell: 14.7.4
PostgreSQL: 12.9
------------------------------------------------------------[ booted in 11.14s ]
Loading development environment (Rails 6.1.4.7)
[1] pry(main)> Feature.enable(:edit_tag_release_notes_via_release_page)
- create a few tags, with and without release notes
- visit tags page
- click on the
pencel button
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #362339 (closed)
Edited by Vladimir Shushlin