Users cannot create/update a Release entry from the deprecated tag creation form
https://sentry.gitlab.net/gitlab/gitlabcom/issues/833312/
ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: null value in column "released_at" violates not-null constraint
PG::NotNullViolation: ERROR: null value in column "released_at" violates not-null constraint
DETAIL: Failing row contains (848913, v1.0.0, This is the initial release. , 11479690, 2019-07-05 01:07:46.851302, 2019-07-05 01:07:46.851302, <p data-sourcepos="1:1-1:29" dir="auto">This is the initial rele..., 1048576, 350424, v1.0.0, 82e37f8a630a496d24f0a652e5d4a418e2d2391d, null).
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/peek.rb:18:in `async_exec_params'
super(*args)
/opt/gitlab/embedded/service/gitlab-rails/config/initializers/peek.rb:18:in `exec_params'
super(*args)
active_record/connection_adapters/postgresql_adapter.rb:624:in `block (2 levels) in exec_no_cache'
@connection.exec_params(sql, type_casted_binds)
active_support/dependencies/interlock.rb:46:in `block in permit_concurrent_loads'
yield
active_support/concurrency/share_lock.rb:185:in `yield_shares'
yield
...
(190 additional frame(s) were not displayed)
ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: null value in column "released_at" violates not-null constraint
DETAIL: Failing row contains (848913, v1.0.0, This is the initial release. , 11479690, 2019-07-05 01:07:46.851302, 2019-07-05 01:07:46.851302, <p data-sourcepos="1:1-1:29" dir="auto">This is the initial rele..., 1048576, 350424, v1.0.0, 82e37f8a630a496d24f0a652e5d4a418e2d2391d, null).
: INSERT INTO "releases" ("tag", "description", "project_id", "created_at", "updated_at", "description_html", "cached_markdown_version", "author_id", "name", "sha") VALUES ('v1.0.0', 'This is the initial release. ', 11479690, '2019-07-05 01:07:46.851302', '2019-07-05 01:07:46.851302', '<p data-sourcepos="1:1-1:29" dir="auto">This is the initial release.</p>', 1048576, 350424, 'v1.0.0', '82e37f8a630a496d24f0a652e5d4a418e2d2391d') RETURNING "id"
ActiveRecord::NotNullViolation: PG::NotNullViolation: ERROR: null value in column "released_at" violates not-null constraint
DETAIL: Failing row contains (848913, v1.0.0, This is the initial release. , 11479690, 2019-07-05 01:07:46.851302, 2019-07-05 01:07:46.851302, <p data-sourcepos="1:1-1:29" dir="auto">This is the initial rele..., 1048576, 350424, v1.0.0, 82e37f8a630a496d24f0a652e5d4a418e2d2391d, null).
: INSERT INTO "releases" ("tag", "description", "project_id", "created_at", "updated_at", "description_html", "cached_markdown_version", "author_id", "name", "sha") VALUES ('v1.0.0', 'This is the initial release. ', 11479690, '2019-07-05 01:07:46.851302', '2019-07-05 01:07:46.851302', '<p data-sourcepos="1:1-1:29" dir="auto">This is the initial release.</p>', 1048576, 350424, 'v1.0.0', '82e37f8a630a496d24f0a652e5d4a418e2d2391d') RETURNING "id"
Edited by Shinya Maeda