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

119 lines
3 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: {
2022-01-26 12:08:38 +05:30
id: 'user-1',
2021-06-08 01:23:25 +05:30
name: 'John Doe18',
__typename: 'UserCore',
},
spentAt: '2020-05-01T00:00:00Z',
note: {
2022-01-26 12:08:38 +05:30
id: 'note-1',
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: {
2022-01-26 12:08:38 +05:30
id: 'user-2',
2021-06-08 01:23:25 +05:30
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: {
2022-01-26 12:08:38 +05:30
id: 'user-2',
2021-06-08 01:23:25 +05:30
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-05-01T00:00:00Z',
note: {
2022-01-26 12:08:38 +05:30
id: 'note-2',
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: {
2022-01-26 12:08:38 +05:30
id: 'user-1',
2021-06-08 01:23:25 +05:30
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-05-07T14:44:55Z',
note: {
2022-01-26 12:08:38 +05:30
id: 'note-1',
2021-06-08 01:23:25 +05:30
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: {
2022-01-26 12:08:38 +05:30
id: 'user-1',
2021-06-08 01:23:25 +05:30
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: {
2022-01-26 12:08:38 +05:30
id: 'user-1',
2021-06-08 01:23:25 +05:30
name: 'Administrator',
__typename: 'UserCore',
},
spentAt: '2021-03-10T00:00:00Z',
note: {
2022-01-26 12:08:38 +05:30
id: 'note-2',
2021-06-08 01:23:25 +05:30
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',
},
},
},
};