Skip to content
代码片段 群组 项目
提交 4cbd01b1 编辑于 作者: Patrick Bajao's avatar Patrick Bajao
浏览文件

Nullify merge_request_metrics pipeline_id on pipeline deletion

Before, when a pipeline is deleted, the associated
`merge_request_metrics` record will be deleted as well. This is a
destructive thing as `merge_request_metrics` include other data
not related to a pipeline.

To fix this issue, instead of deleting the association record, we
nullify the `pipeline_id` on `merge_request_metrics` instead. When
this happens, related build data (`latest_build_started_at` and
`latest_build_finished_at`) will be nullified as well. This is to
ensure that when those data are requested, it'll still behave the
same way as before.

Changelog: fixed
上级 4a2daee2
No related branches found
No related tags found
无相关合并请求
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册