debian-mirror-gitlab/spec/frontend/sidebar/components/time_tracking/mock_data.js

109 lines
2.7 KiB
JavaScript
Raw Normal View History

2021-06-08 01:23:25 +05:30
export const getIssueTimelogsQueryResponse = {
data: {
issuable: {
__typename: 'Issue',
id: 'gid://gitlab/Issue/148',
title:
'Est perferendis dicta expedita ipsum adipisci laudantium omnis consequatur consequatur et.',
timelogs: {
nodes: [
{
__typename: 'Timelog',
timeSpent: 14400,
user: {
name: 'John Doe18',
__typename: 'UserCore',
},
spentAt: '2020-05-01T00:00:00Z',
note: {
2021-10-27 15:23:28 +05:30
body: 'A note',
2021-06-08 01:23:25 +05:30
__typename: 'Note',
},
2021-10-27 15:23:28 +05:30
summary: 'A summary',
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
timeSpent: 1800,
user: {
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-05-07T13:19:01Z',
note: null,
2021-10-27 15:23:28 +05:30
summary: 'A summary',
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
timeSpent: 14400,
user: {
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-05-01T00:00:00Z',
note: {
2021-10-27 15:23:28 +05:30
body: 'A note',
2021-06-08 01:23:25 +05:30
__typename: 'Note',
},
2021-10-27 15:23:28 +05:30
summary: null,
2021-06-08 01:23:25 +05:30
},
],
__typename: 'TimelogConnection',
},
},
},
};
export const getMrTimelogsQueryResponse = {
data: {
issuable: {
__typename: 'MergeRequest',
id: 'gid://gitlab/MergeRequest/29',
title: 'Esse amet perspiciatis voluptas et sed praesentium debitis repellat.',
timelogs: {
nodes: [
{
__typename: 'Timelog',
timeSpent: 1800,
user: {
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-05-07T14:44:55Z',
note: {
body: 'Thirty minutes!',
__typename: 'Note',
},
2021-10-27 15:23:28 +05:30
summary: null,
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
timeSpent: 3600,
user: {
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-05-07T14:44:39Z',
note: null,
2021-10-27 15:23:28 +05:30
summary: null,
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
timeSpent: 300,
user: {
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-03-10T00:00:00Z',
note: {
body: 'A note with some time',
__typename: 'Note',
},
2021-10-27 15:23:28 +05:30
summary: null,
2021-06-08 01:23:25 +05:30
},
],
__typename: 'TimelogConnection',
},
},
},
};