2021-02-22 17:27:13 +05:30
|
|
|
import { unwrapPipelineData } from '~/pipelines/components/graph/utils';
|
|
|
|
|
|
|
|
export const mockPipelineResponse = {
|
|
|
|
data: {
|
|
|
|
project: {
|
|
|
|
__typename: 'Project',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '1',
|
2021-02-22 17:27:13 +05:30
|
|
|
pipeline: {
|
|
|
|
__typename: 'Pipeline',
|
|
|
|
id: 163,
|
|
|
|
iid: '22',
|
2021-06-08 01:23:25 +05:30
|
|
|
complete: true,
|
2021-04-29 21:17:54 +05:30
|
|
|
usesNeeds: true,
|
2021-02-22 17:27:13 +05:30
|
|
|
downstream: null,
|
|
|
|
upstream: null,
|
2021-09-30 23:02:18 +05:30
|
|
|
userPermissions: {
|
|
|
|
__typename: 'PipelinePermissions',
|
|
|
|
updatePipeline: true,
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
stages: {
|
|
|
|
__typename: 'CiStageConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiStage',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '2',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build',
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '3',
|
2021-02-22 17:27:13 +05:30
|
|
|
action: null,
|
2018-05-09 12:01:36 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
groups: {
|
|
|
|
__typename: 'CiGroupConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '4',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
size: 1,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '5',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '6',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '7',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1482',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '8',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1482/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-05-09 12:01:36 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
|
|
|
name: 'build_b',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '9',
|
2021-02-22 17:27:13 +05:30
|
|
|
size: 1,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '10',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '11',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_b',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '12',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1515',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '13',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1515/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-05-09 12:01:36 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '14',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_c',
|
|
|
|
size: 1,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '15',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '16',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_c',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '17',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1484',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '18',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1484/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '19',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d',
|
|
|
|
size: 3,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '20',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '21',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 1/3',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '22',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1485',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '23',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1485/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '24',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 2/3',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '25',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1486',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '26',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1486/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '27',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 3/3',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '28',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1487',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '29',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1487/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2018-05-09 12:01:36 +05:30
|
|
|
},
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
{
|
|
|
|
__typename: 'CiStage',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '30',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test',
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '31',
|
2021-02-22 17:27:13 +05:30
|
|
|
action: null,
|
|
|
|
},
|
|
|
|
groups: {
|
|
|
|
__typename: 'CiGroupConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '32',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_a',
|
|
|
|
size: 1,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '33',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '34',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_a',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '35',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1514',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '36',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1514/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '37',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_c',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '38',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '39',
|
2021-02-22 17:27:13 +05:30
|
|
|
name:
|
|
|
|
'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '37',
|
|
|
|
name: 'build_c',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '38',
|
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '39',
|
|
|
|
name:
|
|
|
|
'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '40',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_b',
|
|
|
|
size: 2,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '41',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '42',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_b 1/2',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '43',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1489',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '44',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1489/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '45',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 3/3',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '46',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 2/3',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '47',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 1/3',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '48',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '49',
|
2021-02-22 17:27:13 +05:30
|
|
|
name:
|
|
|
|
'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '45',
|
|
|
|
name: 'build_d 3/3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '46',
|
|
|
|
name: 'build_d 2/3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '47',
|
|
|
|
name: 'build_d 1/3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '48',
|
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '49',
|
|
|
|
name:
|
|
|
|
'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '67',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_b 2/2',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '50',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/jobs/1490',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '51',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/abcd-dag/-/jobs/1490/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '52',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 3/3',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '53',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 2/3',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '54',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_d 1/3',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '55',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '56',
|
2021-02-22 17:27:13 +05:30
|
|
|
name:
|
|
|
|
'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '52',
|
|
|
|
name: 'build_d 3/3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '53',
|
|
|
|
name: 'build_d 2/3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '54',
|
|
|
|
name: 'build_d 1/3',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '55',
|
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '56',
|
|
|
|
name:
|
|
|
|
'build_a_nlfjkdnlvskfnksvjknlfdjvlvnjdkjdf_nvjkenjkrlngjeknjkl',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
|
|
|
name: 'test_c',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '57',
|
2021-02-22 17:27:13 +05:30
|
|
|
size: 1,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '58',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: null,
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '59',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_c',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '60',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: null,
|
2022-04-04 11:22:00 +05:30
|
|
|
label: null,
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/kinder-pipe/-/pipelines/154',
|
|
|
|
group: 'success',
|
|
|
|
action: null,
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-04-29 21:17:54 +05:30
|
|
|
nodes: [],
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
__typename: 'CiGroup',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '61',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_d',
|
|
|
|
size: 1,
|
|
|
|
status: {
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '62',
|
2021-02-22 17:27:13 +05:30
|
|
|
__typename: 'DetailedStatus',
|
|
|
|
label: null,
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
jobs: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '53',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_d',
|
|
|
|
scheduledAt: null,
|
|
|
|
status: {
|
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '64',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: null,
|
2022-04-04 11:22:00 +05:30
|
|
|
label: null,
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/abcd-dag/-/pipelines/153',
|
|
|
|
group: 'success',
|
|
|
|
action: null,
|
|
|
|
},
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeed',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '65',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
__typename: 'CiBuildNeed',
|
|
|
|
id: '65',
|
|
|
|
name: 'build_b',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2018-05-09 12:01:36 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
],
|
2018-05-09 12:01:36 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
],
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
export const downstream = {
|
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
id: 175,
|
|
|
|
iid: '31',
|
|
|
|
path: '/root/elemenohpee/-/pipelines/175',
|
|
|
|
status: {
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '70',
|
2021-02-22 17:27:13 +05:30
|
|
|
group: 'success',
|
|
|
|
label: 'passed',
|
|
|
|
icon: 'status_success',
|
|
|
|
__typename: 'DetailedStatus',
|
|
|
|
},
|
|
|
|
sourceJob: {
|
|
|
|
name: 'test_c',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '71',
|
2021-02-22 17:27:13 +05:30
|
|
|
__typename: 'CiJob',
|
|
|
|
},
|
|
|
|
project: {
|
|
|
|
id: 'gid://gitlab/Project/25',
|
|
|
|
name: 'elemenohpee',
|
|
|
|
fullPath: 'root/elemenohpee',
|
|
|
|
__typename: 'Project',
|
|
|
|
},
|
|
|
|
__typename: 'Pipeline',
|
|
|
|
multiproject: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
id: 181,
|
|
|
|
iid: '27',
|
|
|
|
path: '/root/abcd-dag/-/pipelines/181',
|
|
|
|
status: {
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '72',
|
2021-02-22 17:27:13 +05:30
|
|
|
group: 'success',
|
|
|
|
label: 'passed',
|
|
|
|
icon: 'status_success',
|
|
|
|
__typename: 'DetailedStatus',
|
|
|
|
},
|
|
|
|
sourceJob: {
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '73',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'test_d',
|
|
|
|
__typename: 'CiJob',
|
|
|
|
},
|
|
|
|
project: {
|
|
|
|
id: 'gid://gitlab/Project/23',
|
|
|
|
name: 'abcd-dag',
|
|
|
|
fullPath: 'root/abcd-dag',
|
|
|
|
__typename: 'Project',
|
|
|
|
},
|
|
|
|
__typename: 'Pipeline',
|
|
|
|
multiproject: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
};
|
|
|
|
|
|
|
|
export const upstream = {
|
|
|
|
id: 161,
|
|
|
|
iid: '24',
|
|
|
|
path: '/root/abcd-dag/-/pipelines/161',
|
|
|
|
status: {
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '74',
|
2021-02-22 17:27:13 +05:30
|
|
|
group: 'success',
|
|
|
|
label: 'passed',
|
|
|
|
icon: 'status_success',
|
|
|
|
__typename: 'DetailedStatus',
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
sourceJob: null,
|
|
|
|
project: {
|
|
|
|
id: 'gid://gitlab/Project/23',
|
|
|
|
name: 'abcd-dag',
|
|
|
|
fullPath: 'root/abcd-dag',
|
|
|
|
__typename: 'Project',
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
__typename: 'Pipeline',
|
|
|
|
multiproject: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const wrappedPipelineReturn = {
|
|
|
|
data: {
|
|
|
|
project: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'Project',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '75',
|
2021-02-22 17:27:13 +05:30
|
|
|
pipeline: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'Pipeline',
|
2021-02-22 17:27:13 +05:30
|
|
|
id: 'gid://gitlab/Ci::Pipeline/175',
|
|
|
|
iid: '38',
|
2021-06-08 01:23:25 +05:30
|
|
|
complete: true,
|
2021-04-29 21:17:54 +05:30
|
|
|
usesNeeds: true,
|
2021-09-30 23:02:18 +05:30
|
|
|
userPermissions: {
|
|
|
|
__typename: 'PipelinePermissions',
|
|
|
|
updatePipeline: true,
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
downstream: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'PipelineConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
|
|
|
upstream: {
|
|
|
|
id: 'gid://gitlab/Ci::Pipeline/174',
|
|
|
|
iid: '37',
|
|
|
|
path: '/root/elemenohpee/-/pipelines/174',
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'Pipeline',
|
2021-02-22 17:27:13 +05:30
|
|
|
status: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '77',
|
2021-02-22 17:27:13 +05:30
|
|
|
group: 'success',
|
|
|
|
label: 'passed',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
sourceJob: {
|
|
|
|
name: 'test_c',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '78',
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiJob',
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
project: {
|
|
|
|
id: 'gid://gitlab/Project/25',
|
|
|
|
name: 'elemenohpee',
|
|
|
|
fullPath: 'root/elemenohpee',
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'Project',
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
},
|
|
|
|
stages: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiStageConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [
|
|
|
|
{
|
|
|
|
name: 'build',
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiStage',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '79',
|
2021-02-22 17:27:13 +05:30
|
|
|
status: {
|
|
|
|
action: null,
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '80',
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'DetailedStatus',
|
2021-02-22 17:27:13 +05:30
|
|
|
},
|
|
|
|
groups: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiGroupConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiGroup',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '81',
|
2021-02-22 17:27:13 +05:30
|
|
|
status: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '82',
|
2021-02-22 17:27:13 +05:30
|
|
|
label: 'passed',
|
|
|
|
group: 'success',
|
|
|
|
icon: 'status_success',
|
|
|
|
},
|
|
|
|
name: 'build_n',
|
|
|
|
size: 1,
|
|
|
|
jobs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiJobConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [
|
|
|
|
{
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiJob',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '83',
|
2021-02-22 17:27:13 +05:30
|
|
|
name: 'build_n',
|
|
|
|
scheduledAt: null,
|
|
|
|
needs: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'CiBuildNeedConnection',
|
2021-02-22 17:27:13 +05:30
|
|
|
nodes: [],
|
|
|
|
},
|
2022-03-02 08:16:31 +05:30
|
|
|
previousStageJobsOrNeeds: {
|
|
|
|
__typename: 'CiJobConnection',
|
|
|
|
nodes: [],
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
status: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'DetailedStatus',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '84',
|
2021-02-22 17:27:13 +05:30
|
|
|
icon: 'status_success',
|
|
|
|
tooltip: 'passed',
|
2022-04-04 11:22:00 +05:30
|
|
|
label: 'passed',
|
2021-02-22 17:27:13 +05:30
|
|
|
hasDetails: true,
|
|
|
|
detailsPath: '/root/elemenohpee/-/jobs/1662',
|
|
|
|
group: 'success',
|
|
|
|
action: {
|
2021-03-08 18:12:59 +05:30
|
|
|
__typename: 'StatusAction',
|
2022-01-26 12:08:38 +05:30
|
|
|
id: '85',
|
2021-02-22 17:27:13 +05:30
|
|
|
buttonTitle: 'Retry this job',
|
|
|
|
icon: 'retry',
|
|
|
|
path: '/root/elemenohpee/-/jobs/1662/retry',
|
|
|
|
title: 'Retry',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2017-08-17 22:00:37 +05:30
|
|
|
},
|
|
|
|
},
|
2021-02-22 17:27:13 +05:30
|
|
|
};
|
|
|
|
|
|
|
|
export const generateResponse = (raw, mockPath) => unwrapPipelineData(mockPath, raw.data);
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
export const pipelineWithUpstreamDownstream = (base) => {
|
2021-02-22 17:27:13 +05:30
|
|
|
const pip = { ...base };
|
|
|
|
pip.data.project.pipeline.downstream = downstream;
|
|
|
|
pip.data.project.pipeline.upstream = upstream;
|
|
|
|
|
|
|
|
return generateResponse(pip, 'root/abcd-dag');
|
2017-08-17 22:00:37 +05:30
|
|
|
};
|
2021-06-08 01:23:25 +05:30
|
|
|
|
|
|
|
export const mapCallouts = (callouts) =>
|
|
|
|
callouts.map((callout) => {
|
|
|
|
return { featureName: callout, __typename: 'UserCallout' };
|
|
|
|
});
|
|
|
|
|
|
|
|
export const mockCalloutsResponse = (mappedCallouts) => ({
|
|
|
|
data: {
|
|
|
|
currentUser: {
|
|
|
|
id: 45,
|
|
|
|
__typename: 'User',
|
|
|
|
callouts: {
|
|
|
|
id: 5,
|
|
|
|
__typename: 'UserCalloutConnection',
|
|
|
|
nodes: mappedCallouts,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|