Skip to content

Remove and prevent releases with a NULL tag

What does this MR do and why?

Removes releases with NULL tags and adds a NULL constraint to keep this from happening again

This currently deletes 155 rows on production, 0 on staging

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Execute these in the rails console

  1. Note the number of releases for a group Release.count
  2. Create a release with a NULL tag Release.new(author: User.first, project: Project.first, tag: nil).save(validate: false)
  3. Run the migrations
  4. Note the number of releases is the same as in step 1 (or lower) `Release.count

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #31869 (closed)

Edited by Allen Cook

Merge request reports

Loading