Commit 91f693c0 authored by Long Nguyen's avatar Long Nguyen
Browse files

Update changelog, improve specs

parent a3e180163b60
Please view this file on the master branch, on stable branches it's out of date.
v 8.8.0 (unreleased)
- Assign labels and milestone to target project when moving issue. !3934
- Assign labels and milestone to target project when moving issue. !3934 (Long Nguyen)
- Remove future dates from contribution calendar graph.
- Fix error when visiting commit builds page before build was updated
- Add 'l' shortcut to open Label dropdown on issuables and 'i' to create new issue on a project
......@@ -46,7 +46,7 @@ def create_new_issue
project: @new_project, author:,
description: rewrite_content(@old_issue.description) }
new_params = @old_issue.serializable_hash.merge(new_params)
new_params = @old_issue.serializable_hash.symbolize_keys.merge(new_params), @current_user, new_params).execute
......@@ -7,9 +7,7 @@
let(:description) { 'Some issue description' }
let(:old_project) { create(:project) }
let(:new_project) { create(:project) }
let!(:milestone1) do
create(:milestone, project_id:, title: 'v9.0')
let(:milestone1) { create(:milestone, project_id:, title: 'v9.0') }
let(:old_issue) do
create(:issue, title: title, description: description,
......@@ -57,6 +55,7 @@
it 'assigns milestone to new issue' do
expect(new_issue.reload.milestone.title).to eq 'v9.0'
expect(new_issue.reload.milestone).to eq(milestone2)
it 'assign labels to new issue' do
......@@ -64,6 +63,11 @@
expect(expected_label_titles).to include 'label1'
expect(expected_label_titles).to include 'label2'
expect(expected_label_titles.size).to eq 2
new_issue.labels.each do |label|
expect(new_project.labels).to include(label)
expect(old_project.labels).not_to include(label)
it 'rewrites issue title' do
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment