Commit 92c31ec5 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents 2eaf79fb 3796bbd1
...@@ -90,6 +90,7 @@ class List { ...@@ -90,6 +90,7 @@ class List {
this.id = data.id; this.id = data.id;
this.type = data.list_type; this.type = data.list_type;
this.position = data.position; this.position = data.position;
this.label = data.label;
return this.getIssues(); return this.getIssues();
}); });
......
---
title: Resolve issue where list labels did not have the correct text color on creation
merge_request: 26794
author: Tucker Chapman
type: fixed
...@@ -7,6 +7,7 @@ module Gitlab ...@@ -7,6 +7,7 @@ module Gitlab
ERROR_MESSAGE = 'LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".'.freeze ERROR_MESSAGE = 'LFS objects are missing. Ensure LFS is properly set up or try a manual "git lfs push --all".'.freeze
def validate! def validate!
return unless Feature.enabled?(:lfs_check, default_enabled: true)
return unless project.lfs_enabled? return unless project.lfs_enabled?
return if skip_lfs_integrity_check return if skip_lfs_integrity_check
......
...@@ -45,6 +45,7 @@ describe('List model', () => { ...@@ -45,6 +45,7 @@ describe('List model', () => {
id: _.random(10000), id: _.random(10000),
title: 'test', title: 'test',
color: 'red', color: 'red',
text_color: 'white',
}, },
}); });
list.save(); list.save();
...@@ -53,6 +54,8 @@ describe('List model', () => { ...@@ -53,6 +54,8 @@ describe('List model', () => {
expect(list.id).toBe(listObj.id); expect(list.id).toBe(listObj.id);
expect(list.type).toBe('label'); expect(list.type).toBe('label');
expect(list.position).toBe(0); expect(list.position).toBe(0);
expect(list.label.color).toBe('red');
expect(list.label.textColor).toBe('white');
done(); done();
}, 0); }, 0);
}); });
......
...@@ -16,6 +16,7 @@ export const listObj = { ...@@ -16,6 +16,7 @@ export const listObj = {
title: 'Testing', title: 'Testing',
color: 'red', color: 'red',
description: 'testing;', description: 'testing;',
textColor: 'white',
}, },
}; };
......
...@@ -27,6 +27,18 @@ describe Gitlab::Checks::LfsCheck do ...@@ -27,6 +27,18 @@ describe Gitlab::Checks::LfsCheck do
allow(project).to receive(:lfs_enabled?).and_return(true) allow(project).to receive(:lfs_enabled?).and_return(true)
end end
context 'with lfs_check feature disabled' do
before do
stub_feature_flags(lfs_check: false)
end
it 'skips integrity check' do
expect_any_instance_of(Gitlab::Git::LfsChanges).not_to receive(:new_pointers)
subject.validate!
end
end
context 'deletion' do context 'deletion' do
let(:changes) { { oldrev: oldrev, ref: ref } } let(:changes) { { oldrev: oldrev, ref: ref } }
......
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