Skip to content
Snippets Groups Projects
Commit 43d14c32 authored by Luke Duncalfe's avatar Luke Duncalfe :red_circle: Committed by Natalia Tepluhina
Browse files

Expose diff_refs and full_path for DesignType

parent bfad0163
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,9 @@ class DesignType < BaseObject
field :project, Types::ProjectType, null: false
field :issue, Types::IssueType, null: false
field :filename, GraphQL::STRING_TYPE, null: false
field :full_path, GraphQL::STRING_TYPE, null: false
field :image, GraphQL::STRING_TYPE, null: false, extras: [:parent]
field :diff_refs, Types::DiffRefsType, null: false
field :versions,
Types::DesignManagement::VersionType.connection_type,
resolver: Resolvers::DesignManagement::VersionResolver,
......
......@@ -8,7 +8,7 @@
it { expect(described_class.interfaces).to include(Types::Notes::NoteableType.to_graphql) }
it 'exposes the expected fields' do
expected_fields = [:id, :project, :issue, :filename, :image, :versions, :discussions, :notes]
expected_fields = [:id, :project, :issue, :filename, :image, :versions, :discussions, :notes, :diff_refs, :full_path]
is_expected.to have_graphql_fields(*expected_fields)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment