Commit 496d339b authored by Florie Guibert's avatar Florie Guibert

Fix Incident sidebar on issue boards

Review feedback
parent 743ee5d6
#import "~/graphql_shared/fragments/milestone.fragment.graphql" #import "~/graphql_shared/fragments/issue.fragment.graphql"
#import "~/graphql_shared/fragments/user.fragment.graphql"
fragment IssueNode on Issue { fragment Issue on Issue {
id id
iid ...IssueNode
title
referencePath: reference(full: true)
dueDate
timeEstimate
totalTimeSpent
humanTimeEstimate
humanTotalTimeSpent
emailsDisabled
confidential
hidden
webUrl
relativePosition
type
severity
milestone {
...MilestoneFragment
}
assignees {
nodes {
...User
}
}
labels {
nodes {
id
title
color
description
}
}
} }
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
mutation CreateIssue($input: CreateIssueInput!) { mutation CreateIssue($input: CreateIssueInput!) {
createIssue(input: $input) { createIssue(input: $input) {
issue { issue {
...IssueNode ...Issue
} }
errors errors
} }
......
...@@ -21,7 +21,7 @@ mutation issueMoveList( ...@@ -21,7 +21,7 @@ mutation issueMoveList(
} }
) { ) {
issue { issue {
...IssueNode ...Issue
} }
errors errors
} }
......
...@@ -22,7 +22,7 @@ query BoardListsEE( ...@@ -22,7 +22,7 @@ query BoardListsEE(
issues(first: $first, filters: $filters, after: $after) { issues(first: $first, filters: $filters, after: $after) {
edges { edges {
node { node {
...IssueNode ...Issue
} }
} }
pageInfo { pageInfo {
...@@ -46,7 +46,7 @@ query BoardListsEE( ...@@ -46,7 +46,7 @@ query BoardListsEE(
issues(first: $first, filters: $filters, after: $after) { issues(first: $first, filters: $filters, after: $after) {
edges { edges {
node { node {
...IssueNode ...Issue
} }
} }
pageInfo { pageInfo {
......
#import "~/graphql_shared/fragments/milestone.fragment.graphql"
#import "~/graphql_shared/fragments/user.fragment.graphql"
fragment IssueNode on Issue {
id
iid
title
referencePath: reference(full: true)
dueDate
timeEstimate
totalTimeSpent
humanTimeEstimate
humanTotalTimeSpent
emailsDisabled
confidential
hidden
webUrl
relativePosition
type
severity
milestone {
...MilestoneFragment
}
assignees {
nodes {
...User
}
}
labels {
nodes {
id
title
color
description
}
}
}
#import "~/graphql_shared/fragments/milestone.fragment.graphql" #import "~/graphql_shared/fragments/issue.fragment.graphql"
#import "~/graphql_shared/fragments/user.fragment.graphql"
fragment IssueNode on Issue { fragment Issue on Issue {
...IssueNode
id id
iid
title
referencePath: reference(full: true)
dueDate
timeEstimate
totalTimeSpent
humanTimeEstimate
humanTotalTimeSpent
weight weight
confidential
hidden
webUrl
blocked blocked
blockedByCount blockedByCount
relativePosition
type
severity
epic { epic {
id id
} }
assignees {
nodes {
...User
}
}
milestone {
...MilestoneFragment
}
iteration { iteration {
id id
title title
...@@ -39,12 +17,4 @@ fragment IssueNode on Issue { ...@@ -39,12 +17,4 @@ fragment IssueNode on Issue {
title title
} }
} }
labels {
nodes {
id
title
color
description
}
}
} }
...@@ -23,7 +23,7 @@ mutation issueMoveListEE( ...@@ -23,7 +23,7 @@ mutation issueMoveListEE(
} }
) { ) {
issue { issue {
...IssueNode ...Issue
} }
errors errors
} }
......
...@@ -97,7 +97,7 @@ describe('ee/BoardContentSidebar', () => { ...@@ -97,7 +97,7 @@ describe('ee/BoardContentSidebar', () => {
}); });
it('matches the snapshot', () => { it('matches the snapshot', () => {
expect(wrapper.find(GlDrawer).element).toMatchSnapshot(); expect(wrapper.findComponent(GlDrawer).element).toMatchSnapshot();
}); });
}); });
...@@ -110,7 +110,7 @@ describe('ee/BoardContentSidebar', () => { ...@@ -110,7 +110,7 @@ describe('ee/BoardContentSidebar', () => {
}); });
it('matches the snapshot', () => { it('matches the snapshot', () => {
expect(wrapper.find(GlDrawer).element).toMatchSnapshot(); expect(wrapper.findComponent(GlDrawer).element).toMatchSnapshot();
}); });
}); });
}); });
...@@ -97,7 +97,7 @@ describe('BoardContentSidebar', () => { ...@@ -97,7 +97,7 @@ describe('BoardContentSidebar', () => {
}); });
it('confirms we render MountingPortal', () => { it('confirms we render MountingPortal', () => {
expect(wrapper.find(MountingPortal).props()).toMatchObject({ expect(wrapper.findComponent(MountingPortal).props()).toMatchObject({
mountTo: '#js-right-sidebar-portal', mountTo: '#js-right-sidebar-portal',
append: true, append: true,
name: 'board-content-sidebar', name: 'board-content-sidebar',
...@@ -143,7 +143,7 @@ describe('BoardContentSidebar', () => { ...@@ -143,7 +143,7 @@ describe('BoardContentSidebar', () => {
}); });
it('does not render SidebarSeverity', () => { it('does not render SidebarSeverity', () => {
expect(wrapper.find(SidebarSeverity).exists()).toBe(false); expect(wrapper.findComponent(SidebarSeverity).exists()).toBe(false);
}); });
describe('when we emit close', () => { describe('when we emit close', () => {
...@@ -175,7 +175,7 @@ describe('BoardContentSidebar', () => { ...@@ -175,7 +175,7 @@ describe('BoardContentSidebar', () => {
}); });
it('renders SidebarSeverity', () => { it('renders SidebarSeverity', () => {
expect(wrapper.find(SidebarSeverity).exists()).toBe(true); expect(wrapper.findComponent(SidebarSeverity).exists()).toBe(true);
}); });
}); });
}); });
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