Commit 28a278a4 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab-ce master

parents ef2c4553 ef82859d
---
title: Autosave description in epics
merge_request: 27296
author:
type: added
......@@ -5,7 +5,7 @@ describe 'GitlabSchema configurations' do
it 'shows an error if complexity is too high' do
project = create(:project, :repository)
query = graphql_query_for('project', { 'fullPath' => project.full_path }, "id\nname\ndescription")
query = graphql_query_for('project', { 'fullPath' => project.full_path }, %w(id name description))
allow(GitlabSchema).to receive(:max_query_complexity).and_return 1
......
......@@ -83,7 +83,8 @@ module GraphqlHelpers
end
def wrap_fields(fields)
return unless fields.strip.present?
fields = Array.wrap(fields).join("\n")
return unless fields.present?
<<~FIELDS
{
......
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