Skip to content
代码片段 群组 项目
提交 2c12c0f8 编辑于 作者: Nicolas Dular's avatar Nicolas Dular
浏览文件

Force syncing updated_by from work item

We want to force update `update_by_id` from the work item side to ensure
it is synced correctly. This aligns the behaviour that we have from the
epic to work item sync.
上级 9dbf7f9b
No related branches found
No related tags found
无相关合并请求
......@@ -57,7 +57,7 @@ def update_params(work_item)
.index_with { |attr| work_item[attr] }
.merge(color_params(work_item))
.merge(dates_params(work_item))
.merge(updated_at: work_item.updated_at)
.merge(updated_at: work_item.updated_at, updated_by_id: work_item.updated_by_id)
end
def base_attributes_params(work_item)
......
......@@ -365,7 +365,10 @@
end
context 'with a synced epic' do
let_it_be(:work_item, refind: true) { create(:work_item, :epic_with_legacy_epic, namespace: group) }
let_it_be(:work_item, refind: true) do
create(:work_item, :epic_with_legacy_epic, namespace: group, updated_by: create(:user))
end
let_it_be(:epic) { work_item.synced_epic }
let(:start_date) { (Time.current + 1.day).to_date }
let(:due_date) { (Time.current + 2.days).to_date }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册