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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

151 lines
4.1 KiB
JavaScript
Raw Normal View History

2022-07-23 23:45:48 +05:30
export const timelogToRemoveId = 'gid://gitlab/Timelog/18';
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',
2022-07-23 23:45:48 +05:30
id: timelogToRemoveId,
2021-06-08 01:23:25 +05:30
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',
2022-07-23 23:45:48 +05:30
userPermissions: {
adminTimelog: true,
__typename: 'TimelogPermissions',
},
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
2022-07-16 23:28:13 +05:30
id: 'gid://gitlab/Timelog/20',
2021-06-08 01:23:25 +05:30
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',
2022-07-23 23:45:48 +05:30
userPermissions: {
adminTimelog: false,
__typename: 'TimelogPermissions',
},
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
2022-07-16 23:28:13 +05:30
id: 'gid://gitlab/Timelog/25',
2021-06-08 01:23:25 +05:30
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,
2022-07-23 23:45:48 +05:30
userPermissions: {
adminTimelog: false,
__typename: 'TimelogPermissions',
},
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',
2022-07-16 23:28:13 +05:30
id: 'gid://gitlab/Timelog/13',
2021-06-08 01:23:25 +05:30
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,
2022-07-23 23:45:48 +05:30
userPermissions: {
adminTimelog: true,
__typename: 'TimelogPermissions',
},
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
2022-07-16 23:28:13 +05:30
id: 'gid://gitlab/Timelog/22',
2021-06-08 01:23:25 +05:30
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,
2022-07-23 23:45:48 +05:30
userPermissions: {
adminTimelog: true,
__typename: 'TimelogPermissions',
},
2021-06-08 01:23:25 +05:30
},
{
__typename: 'Timelog',
2022-07-16 23:28:13 +05:30
id: 'gid://gitlab/Timelog/64',
2021-06-08 01:23:25 +05:30
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,
2022-07-23 23:45:48 +05:30
userPermissions: {
adminTimelog: true,
__typename: 'TimelogPermissions',
},
2021-06-08 01:23:25 +05:30
},
],
__typename: 'TimelogConnection',
},
},
},
};