Skip to content
Snippets Groups Projects
Unverified Commit 8e51d98c authored by Florie Guibert's avatar Florie Guibert Committed by GitLab
Browse files

Merge branch...

Merge branch '411822-expand-caret-should-not-be-displayed-if-there-are-no-epics-to-display-on-roadmap' into 'master' 

Roadmap - Expand caret does not display if no children in timeframe

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/156595



Merged-by: default avatarFlorie Guibert <fguibert@gitlab.com>
Approved-by: default avatarAnastasia Khomchenko <akhomchenko@gitlab.com>
Approved-by: default avatarNatalia Tepluhina <ntepluhina@gitlab.com>
Approved-by: default avatarNick Brandt <nbrandt@gitlab.com>
parents 935f9593 8db995ef
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -73,7 +73,7 @@ export default {
return this.currentGroupId !== this.epicGroupId;
},
isExpandIconHidden() {
return !this.epic.hasChildren;
return !this.epic.hasChildrenWithinTimeframe;
},
isEmptyChildrenWithFilter() {
return this.isExpanded && this.hasFiltersApplied && this.isChildrenEmpty;
Loading
Loading
Loading
Loading
@@ -8,6 +8,7 @@ fragment BaseEpic on Epic {
startDate
dueDate
hasChildren
hasChildrenWithinTimeframe
hasParent
confidential
blocked
Loading
Loading
Loading
Loading
@@ -167,7 +167,7 @@ describe('EpicItemDetails', () => {
describe('when epic has no child epics', () => {
beforeEach(() => {
const epic = createMockEpic({
hasChildren: false,
hasChildrenWithinTimeframe: false,
descendantCounts: {
openedEpics: 0,
closedEpics: 0,
Loading
Loading
@@ -189,7 +189,7 @@ describe('EpicItemDetails', () => {
let epic;
beforeEach(() => {
epic = createMockEpic({
hasChildren: true,
hasChildrenWithinTimeframe: true,
children: {
edges: [mockFormattedChildEpic1],
},
Loading
Loading
Loading
Loading
@@ -234,6 +234,7 @@ export const mockRawEpic = {
dueDate: '2018-03-10',
webUrl: 'http://gdk.test:3000/groups/gitlab-org/marketing/-/epics/1',
hasChildren: false,
hasChildrenWithinTimeframe: false,
hasParent: false,
confidential: false,
descendantWeightSum: {
Loading
Loading
@@ -656,6 +657,7 @@ export const mockAncestorEpicNode = {
webUrl: 'http://gdk.test:3000/groups/gitlab-org/marketing/-/epics/3',
hasChildren: true,
hasParent: false,
hasChildrenWithinTimeframe: true,
confidential: false,
descendantWeightSum: {
closedIssues: 3,
Loading
Loading
@@ -688,6 +690,7 @@ export const mockEpicNode1 = {
dueDate: '2018-02-15',
webUrl: 'http://gdk.test:3000/groups/gitlab-org/marketing/-/epics/1',
hasChildren: false,
hasChildrenWithinTimeframe: false,
hasParent: false,
confidential: false,
color: '#ff0000',
Loading
Loading
@@ -724,6 +727,7 @@ export const mockEpicNode2 = {
dueDate: '2018-03-10',
state: 'opened',
hasChildren: false,
hasChildrenWithinTimeframe: false,
hasParent: false,
confidential: false,
webUrl: 'http://gdk.test:3000/groups/gitlab-org/marketing/-/epics/2',
Loading
Loading
@@ -805,6 +809,7 @@ export const mockChildEpicNode1 = {
startDate: null,
dueDate: null,
hasChildren: false,
hasChildrenWithinTimeframe: false,
hasParent: true,
confidential: false,
blocked: false,
Loading
Loading
@@ -843,6 +848,7 @@ export const mockEpicChildEpicsQueryResponse = {
id: 'gid://gitlab/Epic/1',
title: 'Error omnis quos consequatur',
hasChildren: true,
hasChildrenWithinTimeframe: true,
children: {
nodes: [mockChildEpicNode1],
__typename: 'EpicConnection',
Loading
Loading
@@ -863,6 +869,7 @@ export const mockEpicChildEpicsWithColorQueryResponse = {
id: 'gid://gitlab/Epic/1',
title: 'Error omnis quos consequatur',
hasChildren: true,
hasChildrenWithinTimeframe: true,
children: {
nodes: [
{
Loading
Loading
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