Commit 3e6e2ef6 authored by Filipa Lacerda's avatar Filipa Lacerda

Removes eslint disabled comments

parent 9b76d851
/* global BoardService */ /* global BoardService */
/* eslint-disable comma-dangle, no-unused-vars, quote-props */
import _ from 'underscore';
export const listObj = { export const listObj = {
id: 300, id: 300,
position: 0, position: 0,
...@@ -11,8 +8,8 @@ export const listObj = { ...@@ -11,8 +8,8 @@ export const listObj = {
id: 5000, id: 5000,
title: 'Testing', title: 'Testing',
color: 'red', color: 'red',
description: 'testing;' description: 'testing;',
} },
}; };
export const listObjDuplicate = { export const listObjDuplicate = {
...@@ -24,35 +21,37 @@ export const listObjDuplicate = { ...@@ -24,35 +21,37 @@ export const listObjDuplicate = {
id: listObj.label.id, id: listObj.label.id,
title: 'Testing', title: 'Testing',
color: 'red', color: 'red',
description: 'testing;' description: 'testing;',
} },
}; };
export const BoardsMockData = { export const BoardsMockData = {
'GET': { GET: {
'/test/-/boards/1/lists/300/issues?id=300&page=1&=': { '/test/-/boards/1/lists/300/issues?id=300&page=1&=': {
issues: [{ issues: [
title: 'Testing', {
id: 1, title: 'Testing',
iid: 1, id: 1,
confidential: false, iid: 1,
labels: [], confidential: false,
assignees: [], labels: [],
}], assignees: [],
} },
],
},
},
POST: {
'/test/-/boards/1/lists': listObj,
}, },
'POST': { PUT: {
'/test/-/boards/1/lists': listObj '/test/issue-boards/board/1/lists{/id}': {},
}, },
'PUT': { DELETE: {
'/test/issue-boards/board/1/lists{/id}': {} '/test/issue-boards/board/1/lists{/id}': {},
}, },
'DELETE': {
'/test/issue-boards/board/1/lists{/id}': {}
}
}; };
export const boardsMockInterceptor = (config) => { export const boardsMockInterceptor = config => {
const body = BoardsMockData[config.method.toUpperCase()][config.url]; const body = BoardsMockData[config.method.toUpperCase()][config.url];
return [200, body]; return [200, body];
}; };
......
/* eslint-disable */
import * as constants from '~/droplab/constants'; import * as constants from '~/droplab/constants';
describe('constants', function () { describe('constants', function() {
describe('DATA_TRIGGER', function () { describe('DATA_TRIGGER', function() {
it('should be `data-dropdown-trigger`', function() { it('should be `data-dropdown-trigger`', function() {
expect(constants.DATA_TRIGGER).toBe('data-dropdown-trigger'); expect(constants.DATA_TRIGGER).toBe('data-dropdown-trigger');
}); });
}); });
describe('DATA_DROPDOWN', function () { describe('DATA_DROPDOWN', function() {
it('should be `data-dropdown`', function() { it('should be `data-dropdown`', function() {
expect(constants.DATA_DROPDOWN).toBe('data-dropdown'); expect(constants.DATA_DROPDOWN).toBe('data-dropdown');
}); });
}); });
describe('SELECTED_CLASS', function () { describe('SELECTED_CLASS', function() {
it('should be `droplab-item-selected`', function() { it('should be `droplab-item-selected`', function() {
expect(constants.SELECTED_CLASS).toBe('droplab-item-selected'); expect(constants.SELECTED_CLASS).toBe('droplab-item-selected');
}); });
}); });
describe('ACTIVE_CLASS', function () { describe('ACTIVE_CLASS', function() {
it('should be `droplab-item-active`', function() { it('should be `droplab-item-active`', function() {
expect(constants.ACTIVE_CLASS).toBe('droplab-item-active'); expect(constants.ACTIVE_CLASS).toBe('droplab-item-active');
}); });
}); });
describe('TEMPLATE_REGEX', function () { describe('TEMPLATE_REGEX', function() {
it('should be a handlebars templating syntax regex', function() { it('should be a handlebars templating syntax regex', function() {
expect(constants.TEMPLATE_REGEX).toEqual(/\{\{(.+?)\}\}/g); expect(constants.TEMPLATE_REGEX).toEqual(/\{\{(.+?)\}\}/g);
}); });
}); });
describe('IGNORE_CLASS', function () { describe('IGNORE_CLASS', function() {
it('should be `droplab-item-ignore`', function() { it('should be `droplab-item-ignore`', function() {
expect(constants.IGNORE_CLASS).toBe('droplab-item-ignore'); expect(constants.IGNORE_CLASS).toBe('droplab-item-ignore');
}); });
......
/* eslint-disable */
export const notesDataMock = { export const notesDataMock = {
discussionsPath: '/gitlab-org/gitlab-ce/issues/26/discussions.json', discussionsPath: '/gitlab-org/gitlab-ce/issues/26/discussions.json',
lastFetchedAt: 1501862675, lastFetchedAt: 1501862675,
...@@ -43,7 +42,8 @@ export const noteableDataMock = { ...@@ -43,7 +42,8 @@ export const noteableDataMock = {
milestone: null, milestone: null,
milestone_id: null, milestone_id: null,
moved_to_id: null, moved_to_id: null,
preview_note_path: '/gitlab-org/gitlab-ce/preview_markdown?quick_actions_target_id=98&quick_actions_target_type=Issue', preview_note_path:
'/gitlab-org/gitlab-ce/preview_markdown?quick_actions_target_id=98&quick_actions_target_type=Issue',
project_id: 2, project_id: 2,
state: 'opened', state: 'opened',
time_estimate: 0, time_estimate: 0,
...@@ -60,465 +60,504 @@ export const individualNote = { ...@@ -60,465 +60,504 @@ export const individualNote = {
expanded: true, expanded: true,
id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd', id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd',
individual_note: true, individual_note: true,
notes: [{ notes: [
id: 1390, {
attachment: { id: 1390,
url: null, attachment: {
filename: null, url: null,
image: false, filename: null,
}, image: false,
author: { },
id: 1, author: {
name: 'Root', id: 1,
username: 'root', name: 'Root',
state: 'active', username: 'root',
avatar_url: 'test', state: 'active',
path: '/root', avatar_url: 'test',
path: '/root',
},
created_at: '2017-08-01T17: 09: 33.762Z',
updated_at: '2017-08-01T17: 09: 33.762Z',
system: false,
noteable_id: 98,
noteable_type: 'Issue',
type: null,
human_access: 'Owner',
note: 'sdfdsaf',
note_html: "<p dir='auto'>sdfdsaf</p>",
current_user: { can_edit: true },
discussion_id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd',
emoji_awardable: true,
award_emoji: [
{ name: 'baseball', user: { id: 1, name: 'Root', username: 'root' } },
{ name: 'art', user: { id: 1, name: 'Root', username: 'root' } },
],
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1390/toggle_award_emoji',
report_abuse_path:
'/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1390&user_id=1',
path: '/gitlab-org/gitlab-ce/notes/1390',
}, },
created_at: '2017-08-01T17: 09: 33.762Z', ],
updated_at: '2017-08-01T17: 09: 33.762Z',
system: false,
noteable_id: 98,
noteable_type: 'Issue',
type: null,
human_access: 'Owner',
note: 'sdfdsaf',
note_html: '<p dir=\'auto\'>sdfdsaf</p>',
current_user: { can_edit: true },
discussion_id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd',
emoji_awardable: true,
award_emoji: [
{ name: 'baseball', user: { id: 1, name: 'Root', username: 'root' } },
{ name: 'art', user: { id: 1, name: 'Root', username: 'root' } },
],
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1390/toggle_award_emoji',
report_abuse_path: '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1390&user_id=1',
path: '/gitlab-org/gitlab-ce/notes/1390',
}],
reply_id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd', reply_id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd',
}; };
export const note = { export const note = {
"id": 546, id: 546,
"attachment": { attachment: {
"url": null, url: null,
"filename": null, filename: null,
"image": false image: false,
}, },
"author": { author: {
"id": 1, id: 1,
"name": "Administrator", name: 'Administrator',
"username": "root", username: 'root',
"state": "active", state: 'active',
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", avatar_url: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
"path": "/root" path: '/root',
}, },
"created_at": "2017-08-10T15:24:03.087Z", created_at: '2017-08-10T15:24:03.087Z',
"updated_at": "2017-08-10T15:24:03.087Z", updated_at: '2017-08-10T15:24:03.087Z',
"system": false, system: false,
"noteable_id": 67, noteable_id: 67,
"noteable_type": "Issue", noteable_type: 'Issue',
"noteable_iid": 7, noteable_iid: 7,
"type": null, type: null,
"human_access": "Owner", human_access: 'Owner',
"note": "Vel id placeat reprehenderit sit numquam.", note: 'Vel id placeat reprehenderit sit numquam.',
"note_html": "<p dir=\"auto\">Vel id placeat reprehenderit sit numquam.</p>", note_html: '<p dir="auto">Vel id placeat reprehenderit sit numquam.</p>',
"current_user": { current_user: {
"can_edit": true can_edit: true,
}, },
"discussion_id": "d3842a451b7f3d9a5dfce329515127b2d29a4cd0", discussion_id: 'd3842a451b7f3d9a5dfce329515127b2d29a4cd0',
"emoji_awardable": true, emoji_awardable: true,
"award_emoji": [{ award_emoji: [
"name": "baseball", {
"user": { name: 'baseball',
"id": 1, user: {
"name": "Administrator", id: 1,
"username": "root" name: 'Administrator',
} username: 'root',
}, { },
"name": "bath_tone3", },
"user": { {
"id": 1, name: 'bath_tone3',
"name": "Administrator", user: {
"username": "root" id: 1,
} name: 'Administrator',
}], username: 'root',
"toggle_award_path": "/gitlab-org/gitlab-ce/notes/546/toggle_award_emoji", },
"report_abuse_path": "/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F7%23note_546&user_id=1", },
"path": "/gitlab-org/gitlab-ce/notes/546" ],
} toggle_award_path: '/gitlab-org/gitlab-ce/notes/546/toggle_award_emoji',
report_abuse_path:
'/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F7%23note_546&user_id=1',
path: '/gitlab-org/gitlab-ce/notes/546',
};
export const discussionMock = { export const discussionMock = {
id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1', id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1',
reply_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1', reply_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1',
expanded: true, expanded: true,
notes: [{ notes: [
id: 1395, {
attachment: { id: 1395,
url: null, attachment: {
filename: null, url: null,
image: false, filename: null,
}, image: false,
author: { },
id: 1, author: {
name: 'Root', id: 1,
username: 'root', name: 'Root',
state: 'active', username: 'root',
avatar_url: null, state: 'active',
path: '/root', avatar_url: null,
}, path: '/root',
created_at: '2017-08-02T10:51:58.559Z', },
updated_at: '2017-08-02T10:51:58.559Z', created_at: '2017-08-02T10:51:58.559Z',
system: false, updated_at: '2017-08-02T10:51:58.559Z',
noteable_id: 98, system: false,
noteable_type: 'Issue', noteable_id: 98,
type: 'DiscussionNote', noteable_type: 'Issue',
human_access: 'Owner', type: 'DiscussionNote',
note: 'THIS IS A DICUSSSION!', human_access: 'Owner',
note_html: '<p dir=\'auto\'>THIS IS A DICUSSSION!</p>', note: 'THIS IS A DICUSSSION!',
current_user: { note_html: "<p dir='auto'>THIS IS A DICUSSSION!</p>",
can_edit: true, current_user: {
}, can_edit: true,
discussion_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1', },
emoji_awardable: true, discussion_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1',
award_emoji: [], emoji_awardable: true,
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1395/toggle_award_emoji', award_emoji: [],
report_abuse_path: '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1395&user_id=1', toggle_award_path: '/gitlab-org/gitlab-ce/notes/1395/toggle_award_emoji',
path: '/gitlab-org/gitlab-ce/notes/1395', report_abuse_path:
}, { '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1395&user_id=1',
id: 1396, path: '/gitlab-org/gitlab-ce/notes/1395',
attachment: {
url: null,
filename: null,
image: false,
},
author: {
id: 1,
name: 'Root',
username: 'root',
state: 'active',
avatar_url: null,
path: '/root',
},
created_at: '2017-08-02T10:56:50.980Z',
updated_at: '2017-08-03T14:19:35.691Z',
system: false,
noteable_id: 98,
noteable_type: 'Issue',
type: 'DiscussionNote',
human_access: 'Owner',
note: 'sadfasdsdgdsf',
note_html: '<p dir=\'auto\'>sadfasdsdgdsf</p>',
last_edited_at: '2017-08-03T14:19:35.691Z',
last_edited_by: {
id: 1,
name: 'Root',
username: 'root',
state: 'active',
avatar_url: null,
path: '/root',
},
current_user: {
can_edit: true,
}, },
discussion_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1', {
emoji_awardable: true, id: 1396,
award_emoji: [], attachment: {
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1396/toggle_award_emoji', url: null,
report_abuse_path: '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1396&user_id=1', filename: null,
path: '/gitlab-org/gitlab-ce/notes/1396', image: false,
}, { },
id: 1437, author: {
attachment: { id: 1,
url: null, name: 'Root',
filename: null, username: 'root',
image: false, state: 'active',
avatar_url: null,
path: '/root',
},
created_at: '2017-08-02T10:56:50.980Z',
updated_at: '2017-08-03T14:19:35.691Z',
system: false,
noteable_id: 98,
noteable_type: 'Issue',
type: 'DiscussionNote',
human_access: 'Owner',
note: 'sadfasdsdgdsf',
note_html: "<p dir='auto'>sadfasdsdgdsf</p>",
last_edited_at: '2017-08-03T14:19:35.691Z',
last_edited_by: {
id: 1,
name: 'Root',
username: 'root',
state: 'active',
avatar_url: null,
path: '/root',
},
current_user: {
can_edit: true,
},
discussion_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1',
emoji_awardable: true,
award_emoji: [],
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1396/toggle_award_emoji',
report_abuse_path:
'/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1396&user_id=1',
path: '/gitlab-org/gitlab-ce/notes/1396',
}, },
author: { {
id: 1, id: 1437,
name: 'Root', attachment: {
username: 'root', url: null,
state: 'active', filename: null,
avatar_url: null, image: false,
path: '/root', },
author: {
id: 1,
name: 'Root',
username: 'root',
state: 'active',
avatar_url: null,
path: '/root',
},
created_at: '2017-08-03T18:11:18.780Z',
updated_at: '2017-08-04T09:52:31.062Z',
system: false,
noteable_id: 98,
noteable_type: 'Issue',
type: 'DiscussionNote',
human_access: 'Owner',
note: 'adsfasf Should disappear',
note_html: "<p dir='auto'>adsfasf Should disappear</p>",
last_edited_at: '2017-08-04T09:52:31.062Z',
last_edited_by: {
id: 1,
name: 'Root',
username: 'root',
state: 'active',
avatar_url: null,
path: '/root',
},
current_user: {
can_edit: true,
},
discussion_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1',
emoji_awardable: true,
award_emoji: [],
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1437/toggle_award_emoji',
report_abuse_path:
'/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1437&user_id=1',
path: '/gitlab-org/gitlab-ce/notes/1437',
}, },
created_at: '2017-08-03T18:11:18.780Z', ],
updated_at: '2017-08-04T09:52:31.062Z', individual_note: false,
system: false, };
noteable_id: 98,
noteable_type: 'Issue', export const loggedOutnoteableData = {
type: 'DiscussionNote', id: 98,
human_access: 'Owner', iid: 26,
note: 'adsfasf Should disappear', author_id: 1,
note_html: '<p dir=\'auto\'>adsfasf Should disappear</p>', description: '',
last_edited_at: '2017-08-04T09:52:31.062Z', lock_version: 1,
last_edited_by: { milestone_id: null,
state: 'opened',
title: 'asdsa',
updated_by_id: 1,
created_at: '2017-02-07T10:11:18.395Z',
updated_at: '2017-08-08T10:22:51.564Z',
time_estimate: 0,
total_time_spent: 0,
human_time_estimate: null,
human_total_time_spent: null,
milestone: null,
labels: [],
branch_name: null,
confidential: false,
assignees: [
{
id: 1, id: 1,
name: 'Root', name: 'Root',
username: 'root', username: 'root',
state: 'active', state: 'active',
avatar_url: null, avatar_url: null,
path: '/root', web_url: 'http://localhost:3000/root',
}, },
current_user: { ],
can_edit: true, due_date: null,
}, moved_to_id: null,
discussion_id: '9e3bd2f71a01de45fd166e6719eb380ad9f270b1', project_id: 2,
emoji_awardable: true, web_url: '/gitlab-org/gitlab-ce/issues/26',
award_emoji: [], current_user: {
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1437/toggle_award_emoji', can_create_note: false,
report_abuse_path: '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1437&user_id=1', can_update: false,
path: '/gitlab-org/gitlab-ce/notes/1437',
}],
individual_note: false,
};
export const loggedOutnoteableData = {
"id": 98,
"iid": 26,
"author_id": 1,
"description": "",
"lock_version": 1,
"milestone_id": null,
"state": "opened",
"title": "asdsa",
"updated_by_id": 1,
"created_at": "2017-02-07T10:11:18.395Z",
"updated_at": "2017-08-08T10:22:51.564Z",
"time_estimate": 0,
"total_time_spent": 0,
"human_time_estimate": null,
"human_total_time_spent": null,
"milestone": null,
"labels": [],
"branch_name": null,
"confidential": false,
"assignees": [{
"id": 1,
"name": "Root",
"username": "root",
"state": "active",
"avatar_url": null,
"web_url": "http://localhost:3000/root"
}],
"due_date": null,
"moved_to_id": null,
"project_id": 2,
"web_url": "/gitlab-org/gitlab-ce/issues/26",
"current_user": {
"can_create_note": false,
"can_update": false
}, },
"create_note_path": "/gitlab-org/gitlab-ce/notes?target_id=98&target_type=issue", create_note_path: '/gitlab-org/gitlab-ce/notes?target_id=98&target_type=issue',
"preview_note_path": "/gitlab-org/gitlab-ce/preview_markdown?quick_actions_target_id=98&quick_actions_target_type=Issue" preview_note_path:
} '/gitlab-org/gitlab-ce/preview_markdown?quick_actions_target_id=98&quick_actions_target_type=Issue',
};
export const INDIVIDUAL_NOTE_RESPONSE_MAP = { export const INDIVIDUAL_NOTE_RESPONSE_MAP = {
'GET': { GET: {
'/gitlab-org/gitlab-ce/issues/26/discussions.json': [{ '/gitlab-org/gitlab-ce/issues/26/discussions.json': [
"id": "0fb4e0e3f9276e55ff32eb4195add694aece4edd", {
"reply_id": "0fb4e0e3f9276e55ff32eb4195add694aece4edd", id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd',
"expanded": true, reply_id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd',
"notes": [{ expanded: true,
"id": 1390, notes: [
"attachment": { {
"url": null, id: 1390,
"filename": null, attachment: {
"image": false url: null,
}, filename: null,
"author": { image: false,
"id": 1, },
"name": "Root", author: {
"username": "root", id: 1,
"state": "active", name: 'Root',
"avatar_url": null, username: 'root',
"path": "/root" state: 'active',
}, avatar_url: null,
"created_at": "2017-08-01T17:09:33.762Z", path: '/root',
"updated_at": "2017-08-01T17:09:33.762Z", },
"system": false, created_at: '2017-08-01T17:09:33.762Z',
"noteable_id": 98, updated_at: '2017-08-01T17:09:33.762Z',
"noteable_type": "Issue", system: false,
"type": null, noteable_id: 98,
"human_access": "Owner", noteable_type: 'Issue',
"note": "sdfdsaf", type: null,
"note_html": "\u003cp dir=\"auto\"\u003esdfdsaf\u003c/p\u003e", human_access: 'Owner',
"current_user": { note: 'sdfdsaf',
"can_edit": true note_html: '\u003cp dir="auto"\u003esdfdsaf\u003c/p\u003e',
}, current_user: {
"discussion_id": "0fb4e0e3f9276e55ff32eb4195add694aece4edd", can_edit: true,
"emoji_awardable": true, },
"award_emoji": [{ discussion_id: '0fb4e0e3f9276e55ff32eb4195add694aece4edd',
"name": "baseball", emoji_awardable: true,
"user": { award_emoji: [
"id": 1, {
"name": "Root", name: 'baseball',
"username": "root" user: {
} id: 1,
}, { name: 'Root',
"name": "art", username: 'root',
"user": { },
"id": 1, },
"name": "Root", {
"username": "root" name: 'art',
} user: {
}], id: 1,
"toggle_award_path": "/gitlab-org/gitlab-ce/notes/1390/toggle_award_emoji", name: 'Root',
"report_abuse_path": "/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1390\u0026user_id=1", username: 'root',
"path": "/gitlab-org/gitlab-ce/notes/1390" },
}], },
"individual_note": true ],
}, { toggle_award_path: '/gitlab-org/gitlab-ce/notes/1390/toggle_award_emoji',
"id": "70d5c92a4039a36c70100c6691c18c27e4b0a790", report_abuse_path:
"reply_id": "70d5c92a4039a36c70100c6691c18c27e4b0a790", '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1390\u0026user_id=1',
"expanded": true, path: '/gitlab-org/gitlab-ce/notes/1390',
"notes": [{ },
"id": 1391, ],
"attachment": { individual_note: true,
"url": null, },
"filename": null, {
"image": false id: '70d5c92a4039a36c70100c6691c18c27e4b0a790',
}, reply_id: '70d5c92a4039a36c70100c6691c18c27e4b0a790',
"author": { expanded: true,
"id": 1, notes: [
"name": "Root", {
"username": "root", id: 1391,
"state": "active", attachment: {
"avatar_url": null, url: null,
"path": "/root" filename: null,
}, image: false,
"created_at": "2017-08-02T10:51:38.685Z", },
"updated_at": "2017-08-02T10:51:38.685Z", author: {
"system": false, id: 1,
"noteable_id": 98, name: 'Root',
"noteable_type": "Issue", username: 'root',
"type": null, state: 'active',
"human_access": "Owner", avatar_url: null,
"note": "New note!", path: '/root',
"note_html": "\u003cp dir=\"auto\"\u003eNew note!\u003c/p\u003e", },
"current_user": { created_at: '2017-08-02T10:51:38.685Z',
"can_edit": true updated_at: '2017-08-02T10:51:38.685Z',
}, system: false,
"discussion_id": "70d5c92a4039a36c70100c6691c18c27e4b0a790", noteable_id: 98,
"emoji_awardable": true, noteable_type: 'Issue',
"award_emoji": [], type: null,
"toggle_award_path": "/gitlab-org/gitlab-ce/notes/1391/toggle_award_emoji", human_access: 'Owner',
"report_abuse_path": "/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1391\u0026user_id=1", note: 'New note!',
"path": "/gitlab-org/gitlab-ce/notes/1391" note_html: '\u003cp dir="auto"\u003eNew note!\u003c/p\u003e',
}], current_user: {
"individual_note": true can_edit: true,
}], },
discussion_id: '70d5c92a4039a36c70100c6691c18c27e4b0a790',
emoji_awardable: true,
award_emoji: [],
toggle_award_path: '/gitlab-org/gitlab-ce/notes/1391/toggle_award_emoji',
report_abuse_path:
'/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F26%23note_1391\u0026user_id=1',
path: '/gitlab-org/gitlab-ce/notes/1391',
},
],
individual_note: true,
},
],
'/gitlab-org/gitlab-ce/noteable/issue/98/notes': { '/gitlab-org/gitlab-ce/noteable/issue/98/notes': {
last_fetched_at: 1512900838, last_fetched_at: 1512900838,
notes: [], notes: [],
}, },
}, },
'PUT': { PUT: {
'/gitlab-org/gitlab-ce/notes/1471': { '/gitlab-org/gitlab-ce/notes/1471': {
"commands_changes": null, commands_changes: null,
"valid": true, valid: true,
"id": 1471, id: 1471,
"attachment": null, attachment: null,
"author": { author: {
"id": 1, id: 1,
"name": "Root", name: 'Root',
"username": "root", username: 'root',
"state": "active", state: 'active',
"avatar_url": null, avatar_url: null,
"path": "/root" path: '/root',
}, },
"created_at": "2017-08-08T16:53:00.666Z", created_at: '2017-08-08T16:53:00.666Z',
"updated_at": "2017-12-10T11:03:21.876Z", updated_at: '2017-12-10T11:03:21.876Z',
"system": false, system: false,
"noteable_id": 124, noteable_id: 124,
"noteable_type": "Issue", noteable_type: 'Issue',
"noteable_iid": 29, noteable_iid: 29,
"type": "DiscussionNote", type: 'DiscussionNote',
"human_access": "Owner", human_access: 'Owner',
"note": "Adding a comment", note: 'Adding a comment',
"note_html": "\u003cp dir=\"auto\"\u003eAdding a comment\u003c/p\u003e", note_html: '\u003cp dir="auto"\u003eAdding a comment\u003c/p\u003e',
"last_edited_at": "2017-12-10T11:03:21.876Z", last_edited_at: '2017-12-10T11:03:21.876Z',
"last_edited_by": { last_edited_by: {
"id": 1, id: 1,
"name": 'Root', name: 'Root',
"username": 'root', username: 'root',
"state": 'active', state: 'active',
"avatar_url": null, avatar_url: null,
"path": '/root', path: '/root',
}, },
"current_user": { current_user: {
"can_edit": true can_edit: true,
}, },
"discussion_id": "a3ed36e29b1957efb3b68c53e2d7a2b24b1df052", discussion_id: 'a3ed36e29b1957efb3b68c53e2d7a2b24b1df052',
"emoji_awardable": true, emoji_awardable: true,
"award_emoji": [], award_emoji: [],
"toggle_award_path": "/gitlab-org/gitlab-ce/notes/1471/toggle_award_emoji", toggle_award_path: '/gitlab-org/gitlab-ce/notes/1471/toggle_award_emoji',
"report_abuse_path": "/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F29%23note_1471\u0026user_id=1", report_abuse_path:
"path": "/gitlab-org/gitlab-ce/notes/1471" '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F29%23note_1471\u0026user_id=1',
path: '/gitlab-org/gitlab-ce/notes/1471',
}, },
} },
}; };
export const DISCUSSION_NOTE_RESPONSE_MAP = { export const DISCUSSION_NOTE_RESPONSE_MAP = {
...INDIVIDUAL_NOTE_RESPONSE_MAP, ...INDIVIDUAL_NOTE_RESPONSE_MAP,
'GET': { GET: {
...INDIVIDUAL_NOTE_RESPONSE_MAP.GET, ...INDIVIDUAL_NOTE_RESPONSE_MAP.GET,
'/gitlab-org/gitlab-ce/issues/26/discussions.json': [{ '/gitlab-org/gitlab-ce/issues/26/discussions.json': [
"id": "a3ed36e29b1957efb3b68c53e2d7a2b24b1df052", {
"reply_id": "a3ed36e29b1957efb3b68c53e2d7a2b24b1df052", id: 'a3ed36e29b1957efb3b68c53e2d7a2b24b1df052',
"expanded": true, reply_id: 'a3ed36e29b1957efb3b68c53e2d7a2b24b1df052',
"notes": [{ expanded: true,
"id": 1471, notes: [
"attachment": { {
"url": null, id: 1471,
"filename": null, attachment: {
"image": false url: null,
}, filename: null,
"author": { image: false,
"id": 1, },
"name": "Root", author: {
"username": "root", id: 1,
"state": "active", name: 'Root',
"avatar_url": null, username: 'root',
"path": "/root" state: 'active',
}, avatar_url: null,
"created_at": "2017-08-08T16:53:00.666Z", path: '/root',
"updated_at": "2017-08-08T16:53:00.666Z", },
"system": false, created_at: '2017-08-08T16:53:00.666Z',
"noteable_id": 124, updated_at: '2017-08-08T16:53:00.666Z',
"noteable_type": "Issue", system: false,
"noteable_iid": 29, noteable_id: 124,
"type": "DiscussionNote", noteable_type: 'Issue',
"human_access": "Owner", noteable_iid: 29,
"note": "Adding a comment", type: 'DiscussionNote',
"note_html": "\u003cp dir=\"auto\"\u003eAdding a comment\u003c/p\u003e", human_access: 'Owner',
"current_user": { note: 'Adding a comment',
"can_edit": true note_html: '\u003cp dir="auto"\u003eAdding a comment\u003c/p\u003e',
}, current_user: {
"discussion_id": "a3ed36e29b1957efb3b68c53e2d7a2b24b1df052", can_edit: true,
"emoji_awardable": true, },
"award_emoji": [], discussion_id: 'a3ed36e29b1957efb3b68c53e2d7a2b24b1df052',
"toggle_award_path": "/gitlab-org/gitlab-ce/notes/1471/toggle_award_emoji", emoji_awardable: true,
"report_abuse_path": "/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F29%23note_1471\u0026user_id=1", award_emoji: [],
"path": "/gitlab-org/gitlab-ce/notes/1471" toggle_award_path: '/gitlab-org/gitlab-ce/notes/1471/toggle_award_emoji',
}], report_abuse_path:
"individual_note": false '/abuse_reports/new?ref_url=http%3A%2F%2Flocalhost%3A3000%2Fgitlab-org%2Fgitlab-ce%2Fissues%2F29%23note_1471\u0026user_id=1',
}], path: '/gitlab-org/gitlab-ce/notes/1471',
},
],
individual_note: false,
},
],
}, },
}; };
export function individualNoteInterceptor(request, next) { export function individualNoteInterceptor(request, next) {
const body = INDIVIDUAL_NOTE_RESPONSE_MAP[request.method.toUpperCase()][request.url]; const body = INDIVIDUAL_NOTE_RESPONSE_MAP[request.method.toUpperCase()][request.url];
next(request.respondWith(JSON.stringify(body), { next(
status: 200, request.respondWith(JSON.stringify(body), {
})); status: 200,
}),
);
} }
export function discussionNoteInterceptor(request, next) { export function discussionNoteInterceptor(request, next) {
const body = DISCUSSION_NOTE_RESPONSE_MAP[request.method.toUpperCase()][request.url]; const body = DISCUSSION_NOTE_RESPONSE_MAP[request.method.toUpperCase()][request.url];
next(request.respondWith(JSON.stringify(body), { next(
status: 200, request.respondWith(JSON.stringify(body), {
})); status: 200,
}),
);
} }
/* eslint-disable quote-props, quotes, comma-dangle */
export default { export default {
"id": 123, id: 123,
"user": { user: {
"name": "Root", name: 'Root',
"username": "root", username: 'root',
"id": 1, id: 1,
"state": "active", state: 'active',
"avatar_url": null, avatar_url: null,
"web_url": "http://localhost:3000/root" web_url: 'http://localhost:3000/root',
}, },
"active": false, active: false,
"coverage": null, coverage: null,
"path": "/root/ci-mock/pipelines/123", path: '/root/ci-mock/pipelines/123',
"details": { details: {
"status": { status: {
"icon": "icon_status_success", icon: 'icon_status_success',
"text": "passed", text: 'passed',
"label": "passed", label: 'passed',
"group": "success", group: 'success',
"has_details": true, has_details: true,
"details_path": "/root/ci-mock/pipelines/123", details_path: '/root/ci-mock/pipelines/123',
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico" favicon:
'/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
}, },
"duration": 9, duration: 9,
"finished_at": "2017-04-19T14:30:27.542Z", finished_at: '2017-04-19T14:30:27.542Z',
"stages": [{ stages: [
"name": "test", {
"title": "test: passed", name: 'test',
"groups": [{ title: 'test: passed',
"name": "test", groups: [
"size": 1, {
"status": { name: 'test',
"icon": "icon_status_success", size: 1,
"text": "passed", status: {
"label": "passed", icon: 'icon_status_success',
"group": "success", text: 'passed',
"has_details": true, label: 'passed',
"details_path": "/root/ci-mock/builds/4153", group: 'success',
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico", has_details: true,
"action": { details_path: '/root/ci-mock/builds/4153',
"icon": "retry", favicon:
"title": "Retry", '/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
"path": "/root/ci-mock/builds/4153/retry", action: {
"method": "post" icon: 'retry',
} title: 'Retry',
path: '/root/ci-mock/builds/4153/retry',
method: 'post',
},
},
jobs: [
{
id: 4153,
name: 'test',
build_path: '/root/ci-mock/builds/4153',
retry_path: '/root/ci-mock/builds/4153/retry',
playable: false,
created_at: '2017-04-13T09:25:18.959Z',
updated_at: '2017-04-13T09:25:23.118Z',
status: {
icon: 'icon_status_success',
text: 'passed',
label: 'passed',
group: 'success',
has_details: true,
details_path: '/root/ci-mock/builds/4153',
favicon:
'/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
action: {
icon: 'retry',
title: 'Retry',
path: '/root/ci-mock/builds/4153/retry',
method: 'post',
},
},
},
],
},
],
status: {
icon: 'icon_status_success',
text: 'passed',
label: 'passed',
group: 'success',
has_details: true,
details_path: '/root/ci-mock/pipelines/123#test',
favicon:
'/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
}, },
"jobs": [{ path: '/root/ci-mock/pipelines/123#test',
"id": 4153, dropdown_path: '/root/ci-mock/pipelines/123/stage.json?stage=test',
"name": "test",
"build_path": "/root/ci-mock/builds/4153",
"retry_path": "/root/ci-mock/builds/4153/retry",
"playable": false,
"created_at": "2017-04-13T09:25:18.959Z",
"updated_at": "2017-04-13T09:25:23.118Z",
"status": {
"icon": "icon_status_success",
"text": "passed",
"label": "passed",
"group": "success",
"has_details": true,
"details_path": "/root/ci-mock/builds/4153",
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico",
"action": {
"icon": "retry",
"title": "Retry",
"path": "/root/ci-mock/builds/4153/retry",
"method": "post"
}
}
}]
}],
"status": {
"icon": "icon_status_success",
"text": "passed",
"label": "passed",
"group": "success",
"has_details": true,
"details_path": "/root/ci-mock/pipelines/123#test",
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico"
}, },
"path": "/root/ci-mock/pipelines/123#test", {
"dropdown_path": "/root/ci-mock/pipelines/123/stage.json?stage=test" name: 'deploy',
}, { title: 'deploy: passed',
"name": "deploy", groups: [
"title": "deploy: passed", {
"groups": [{ name: 'deploy to production',
"name": "deploy to production", size: 1,
"size": 1, status: {
"status": { icon: 'icon_status_success',
"icon": "icon_status_success", text: 'passed',
"text": "passed", label: 'passed',
"label": "passed", group: 'success',
"group": "success", has_details: true,
"has_details": true, details_path: '/root/ci-mock/builds/4166',
"details_path": "/root/ci-mock/builds/4166", favicon:
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico", '/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
"action": { action: {
"icon": "retry", icon: 'retry',
"title": "Retry", title: 'Retry',
"path": "/root/ci-mock/builds/4166/retry", path: '/root/ci-mock/builds/4166/retry',
"method": "post" method: 'post',
} },
},
jobs: [
{
id: 4166,
name: 'deploy to production',
build_path: '/root/ci-mock/builds/4166',
retry_path: '/root/ci-mock/builds/4166/retry',
playable: false,
created_at: '2017-04-19T14:29:46.463Z',
updated_at: '2017-04-19T14:30:27.498Z',
status: {
icon: 'icon_status_success',
text: 'passed',
label: 'passed',
group: 'success',
has_details: true,
details_path: '/root/ci-mock/builds/4166',
favicon:
'/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
action: {
icon: 'retry',
title: 'Retry',
path: '/root/ci-mock/builds/4166/retry',
method: 'post',
},
},
},
],
},
{
name: 'deploy to staging',
size: 1,
status: {
icon: 'icon_status_success',
text: 'passed',
label: 'passed',
group: 'success',
has_details: true,
details_path: '/root/ci-mock/builds/4159',
favicon:
'/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
action: {
icon: 'retry',
title: 'Retry',
path: '/root/ci-mock/builds/4159/retry',
method: 'post',
},
},
jobs: [
{
id: 4159,
name: 'deploy to staging',
build_path: '/root/ci-mock/builds/4159',
retry_path: '/root/ci-mock/builds/4159/retry',
playable: false,
created_at: '2017-04-18T16:32:08.420Z',
updated_at: '2017-04-18T16:32:12.631Z',
status: {
icon: 'icon_status_success',
text: 'passed',
label: 'passed',
group: 'success',
has_details: true,
details_path: '/root/ci-mock/builds/4159',
favicon:
'/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
action: {
icon: 'retry',
title: 'Retry',
path: '/root/ci-mock/builds/4159/retry',
method: 'post',
},
},
},
],
},
],
status: {
icon: 'icon_status_success',
text: 'passed',
label: 'passed',
group: 'success',
has_details: true,
details_path: '/root/ci-mock/pipelines/123#deploy',
favicon:
'/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico',
}, },
"jobs": [{ path: '/root/ci-mock/pipelines/123#deploy',
"id": 4166, dropdown_path: '/root/ci-mock/pipelines/123/stage.json?stage=deploy',
"name": "deploy to production", },
"build_path": "/root/ci-mock/builds/4166", ],
"retry_path": "/root/ci-mock/builds/4166/retry", artifacts: [],
"playable": false, manual_actions: [
"created_at": "2017-04-19T14:29:46.463Z", {
"updated_at": "2017-04-19T14:30:27.498Z", name: 'deploy to production',
"status": { path: '/root/ci-mock/builds/4166/play',
"icon": "icon_status_success", playable: false,
"text": "passed",
"label": "passed",
"group": "success",
"has_details": true,
"details_path": "/root/ci-mock/builds/4166",
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico",
"action": {
"icon": "retry",
"title": "Retry",
"path": "/root/ci-mock/builds/4166/retry",
"method": "post"
}
}
}]
}, {
"name": "deploy to staging",
"size": 1,
"status": {
"icon": "icon_status_success",
"text": "passed",
"label": "passed",
"group": "success",
"has_details": true,
"details_path": "/root/ci-mock/builds/4159",
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico",
"action": {
"icon": "retry",
"title": "Retry",
"path": "/root/ci-mock/builds/4159/retry",
"method": "post"
}
},
"jobs": [{
"id": 4159,
"name": "deploy to staging",
"build_path": "/root/ci-mock/builds/4159",
"retry_path": "/root/ci-mock/builds/4159/retry",
"playable": false,
"created_at": "2017-04-18T16:32:08.420Z",
"updated_at": "2017-04-18T16:32:12.631Z",
"status": {
"icon": "icon_status_success",
"text": "passed",
"label": "passed",
"group": "success",
"has_details": true,
"details_path": "/root/ci-mock/builds/4159",
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico",
"action": {
"icon": "retry",
"title": "Retry",
"path": "/root/ci-mock/builds/4159/retry",
"method": "post"
}
}
}]
}],
"status": {
"icon": "icon_status_success",
"text": "passed",
"label": "passed",
"group": "success",
"has_details": true,
"details_path": "/root/ci-mock/pipelines/123#deploy",
"favicon": "/assets/ci_favicons/dev/favicon_status_success-308b4fc054cdd1b68d0865e6cfb7b02e92e3472f201507418f8eddb74ac11a59.ico"
}, },
"path": "/root/ci-mock/pipelines/123#deploy", ],
"dropdown_path": "/root/ci-mock/pipelines/123/stage.json?stage=deploy"
}],
"artifacts": [],
"manual_actions": [{
"name": "deploy to production",
"path": "/root/ci-mock/builds/4166/play",
"playable": false
}]
}, },
"flags": { flags: {
"latest": true, latest: true,
"triggered": false, triggered: false,
"stuck": false, stuck: false,
"yaml_errors": false, yaml_errors: false,
"retryable": false, retryable: false,
"cancelable": false cancelable: false,
}, },
"ref": { ref: {
"name": "master", name: 'master',
"path": "/root/ci-mock/tree/master", path: '/root/ci-mock/tree/master',
"tag": false, tag: false,
"branch": true branch: true,
}, },
"commit": { commit: {
"id": "798e5f902592192afaba73f4668ae30e56eae492", id: '798e5f902592192afaba73f4668ae30e56eae492',
"short_id": "798e5f90", short_id: '798e5f90',
"title": "Merge branch 'new-branch' into 'master'\r", title: "Merge branch 'new-branch' into 'master'\r",
"created_at": "2017-04-13T10:25:17.000+01:00", created_at: '2017-04-13T10:25:17.000+01:00',
"parent_ids": ["54d483b1ed156fbbf618886ddf7ab023e24f8738", "c8e2d38a6c538822e81c57022a6e3a0cfedebbcc"], parent_ids: [
"message": "Merge branch 'new-branch' into 'master'\r\n\r\nAdd new file\r\n\r\nSee merge request !1", '54d483b1ed156fbbf618886ddf7ab023e24f8738',
"author_name": "Root", 'c8e2d38a6c538822e81c57022a6e3a0cfedebbcc',
"author_email": "admin@example.com", ],
"authored_date": "2017-04-13T10:25:17.000+01:00", message:
"committer_name": "Root", "Merge branch 'new-branch' into 'master'\r\n\r\nAdd new file\r\n\r\nSee merge request !1",
"committer_email": "admin@example.com", author_name: 'Root',
"committed_date": "2017-04-13T10:25:17.000+01:00", author_email: 'admin@example.com',
"author": { authored_date: '2017-04-13T10:25:17.000+01:00',
"name": "Root", committer_name: 'Root',
"username": "root", committer_email: 'admin@example.com',
"id": 1, committed_date: '2017-04-13T10:25:17.000+01:00',
"state": "active", author: {
"avatar_url": null, name: 'Root',
"web_url": "http://localhost:3000/root" username: 'root',
id: 1,
state: 'active',
avatar_url: null,
web_url: 'http://localhost:3000/root',
}, },
"author_gravatar_url": null, author_gravatar_url: null,
"commit_url": "http://localhost:3000/root/ci-mock/commit/798e5f902592192afaba73f4668ae30e56eae492", commit_url:
"commit_path": "/root/ci-mock/commit/798e5f902592192afaba73f4668ae30e56eae492" 'http://localhost:3000/root/ci-mock/commit/798e5f902592192afaba73f4668ae30e56eae492',
commit_path: '/root/ci-mock/commit/798e5f902592192afaba73f4668ae30e56eae492',
}, },
"created_at": "2017-04-13T09:25:18.881Z", created_at: '2017-04-13T09:25:18.881Z',
"updated_at": "2017-04-19T14:30:27.561Z" updated_at: '2017-04-19T14:30:27.561Z',
}; };
/* eslint-disable quote-props*/
const RESPONSE_MAP = { const RESPONSE_MAP = {
'GET': { GET: {
'/gitlab-org/gitlab-shell/issues/5.json': { '/gitlab-org/gitlab-shell/issues/5.json': {
id: 45, id: 45,
iid: 5, iid: 5,
...@@ -27,7 +25,8 @@ const RESPONSE_MAP = { ...@@ -27,7 +25,8 @@ const RESPONSE_MAP = {
username: 'user0', username: 'user0',
id: 22, id: 22,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/52e4ce24a915fb7e51e1ad3b57f4b00a?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/52e4ce24a915fb7e51e1ad3b57f4b00a?s=80\u0026d=identicon',
web_url: 'http: //localhost:3001/user0', web_url: 'http: //localhost:3001/user0',
}, },
{ {
...@@ -35,7 +34,8 @@ const RESPONSE_MAP = { ...@@ -35,7 +34,8 @@ const RESPONSE_MAP = {
username: 'tajuana', username: 'tajuana',
id: 18, id: 18,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/4852a41fb41616bf8f140d3701673f53?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/4852a41fb41616bf8f140d3701673f53?s=80\u0026d=identicon',
web_url: 'http: //localhost:3001/tajuana', web_url: 'http: //localhost:3001/tajuana',
}, },
{ {
...@@ -43,7 +43,8 @@ const RESPONSE_MAP = { ...@@ -43,7 +43,8 @@ const RESPONSE_MAP = {
username: 'michaele.will', username: 'michaele.will',
id: 16, id: 16,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/e301827eb03be955c9c172cb9a8e4e8a?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/e301827eb03be955c9c172cb9a8e4e8a?s=80\u0026d=identicon',
web_url: 'http: //localhost:3001/michaele.will', web_url: 'http: //localhost:3001/michaele.will',
}, },
], ],
...@@ -72,7 +73,8 @@ const RESPONSE_MAP = { ...@@ -72,7 +73,8 @@ const RESPONSE_MAP = {
username: 'user0', username: 'user0',
id: 22, id: 22,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/52e4ce24a915fb7e51e1ad3b57f4b00a?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/52e4ce24a915fb7e51e1ad3b57f4b00a?s=80\u0026d=identicon',
web_url: 'http://localhost:3001/user0', web_url: 'http://localhost:3001/user0',
}, },
{ {
...@@ -80,7 +82,8 @@ const RESPONSE_MAP = { ...@@ -80,7 +82,8 @@ const RESPONSE_MAP = {
username: 'tajuana', username: 'tajuana',
id: 18, id: 18,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/4852a41fb41616bf8f140d3701673f53?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/4852a41fb41616bf8f140d3701673f53?s=80\u0026d=identicon',
web_url: 'http://localhost:3001/tajuana', web_url: 'http://localhost:3001/tajuana',
}, },
{ {
...@@ -88,7 +91,8 @@ const RESPONSE_MAP = { ...@@ -88,7 +91,8 @@ const RESPONSE_MAP = {
username: 'michaele.will', username: 'michaele.will',
id: 16, id: 16,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/e301827eb03be955c9c172cb9a8e4e8a?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/e301827eb03be955c9c172cb9a8e4e8a?s=80\u0026d=identicon',
web_url: 'http://localhost:3001/michaele.will', web_url: 'http://localhost:3001/michaele.will',
}, },
], ],
...@@ -100,7 +104,8 @@ const RESPONSE_MAP = { ...@@ -100,7 +104,8 @@ const RESPONSE_MAP = {
username: 'user0', username: 'user0',
id: 22, id: 22,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/52e4ce24a915fb7e51e1ad3b57f4b00a?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/52e4ce24a915fb7e51e1ad3b57f4b00a?s=80\u0026d=identicon',
web_url: 'http://localhost:3001/user0', web_url: 'http://localhost:3001/user0',
}, },
{ {
...@@ -108,7 +113,8 @@ const RESPONSE_MAP = { ...@@ -108,7 +113,8 @@ const RESPONSE_MAP = {
username: 'tajuana', username: 'tajuana',
id: 18, id: 18,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/4852a41fb41616bf8f140d3701673f53?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/4852a41fb41616bf8f140d3701673f53?s=80\u0026d=identicon',
web_url: 'http://localhost:3001/tajuana', web_url: 'http://localhost:3001/tajuana',
}, },
{ {
...@@ -116,7 +122,8 @@ const RESPONSE_MAP = { ...@@ -116,7 +122,8 @@ const RESPONSE_MAP = {
username: 'michaele.will', username: 'michaele.will',
id: 16, id: 16,
state: 'active', state: 'active',
avatar_url: 'https://www.gravatar.com/avatar/e301827eb03be955c9c172cb9a8e4e8a?s=80\u0026d=identicon', avatar_url:
'https://www.gravatar.com/avatar/e301827eb03be955c9c172cb9a8e4e8a?s=80\u0026d=identicon',
web_url: 'http://localhost:3001/michaele.will', web_url: 'http://localhost:3001/michaele.will',
}, },
], ],
...@@ -126,20 +133,21 @@ const RESPONSE_MAP = { ...@@ -126,20 +133,21 @@ const RESPONSE_MAP = {
}, },
'/autocomplete/projects?project_id=15': [ '/autocomplete/projects?project_id=15': [
{ {
'id': 0, id: 0,
'name_with_namespace': 'No project', name_with_namespace: 'No project',
}, { },
'id': 20, {
'name_with_namespace': 'foo / bar', id: 20,
name_with_namespace: 'foo / bar',
}, },
], ],
}, },
'PUT': { PUT: {
'/gitlab-org/gitlab-shell/issues/5.json': { '/gitlab-org/gitlab-shell/issues/5.json': {
data: {}, data: {},
}, },
}, },
'POST': { POST: {
'/gitlab-org/gitlab-shell/issues/5/move': { '/gitlab-org/gitlab-shell/issues/5/move': {
id: 123, id: 123,
iid: 5, iid: 5,
...@@ -182,7 +190,8 @@ const mockData = { ...@@ -182,7 +190,8 @@ const mockData = {
id: 1, id: 1,
name: 'Administrator', name: 'Administrator',
username: 'root', username: 'root',
avatar_url: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', avatar_url:
'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
}, },
rootPath: '/', rootPath: '/',
fullPath: '/gitlab-org/gitlab-shell', fullPath: '/gitlab-org/gitlab-shell',
...@@ -201,12 +210,14 @@ const mockData = { ...@@ -201,12 +210,14 @@ const mockData = {
}, },
}; };
mockData.sidebarMockInterceptor = function (request, next) { mockData.sidebarMockInterceptor = function(request, next) {
const body = this.responseMap[request.method.toUpperCase()][request.url]; const body = this.responseMap[request.method.toUpperCase()][request.url];
next(request.respondWith(JSON.stringify(body), { next(
status: 200, request.respondWith(JSON.stringify(body), {
})); status: 200,
}),
);
}.bind(mockData); }.bind(mockData);
export default mockData; export default mockData;
/* eslint-disable */
export default { export default {
"id": 132, id: 132,
"iid": 22, iid: 22,
"assignee_id": null, assignee_id: null,
"author_id": 1, author_id: 1,
"description": "", description: '',
"lock_version": null, lock_version: null,
"milestone_id": null, milestone_id: null,
"position": 0, position: 0,
"state": "merged", state: 'merged',
"title": "Update README.md", title: 'Update README.md',
"updated_by_id": null, updated_by_id: null,
"created_at": "2017-04-07T12:27:26.718Z", created_at: '2017-04-07T12:27:26.718Z',
"updated_at": "2017-04-07T15:39:25.852Z", updated_at: '2017-04-07T15:39:25.852Z',
"time_estimate": 0, time_estimate: 0,
"total_time_spent": 0, total_time_spent: 0,
"human_time_estimate": null, human_time_estimate: null,
"human_total_time_spent": null, human_total_time_spent: null,
"in_progress_merge_commit_sha": null, in_progress_merge_commit_sha: null,
"merge_commit_sha": "53027d060246c8f47e4a9310fb332aa52f221775", merge_commit_sha: '53027d060246c8f47e4a9310fb332aa52f221775',
"merge_error": null, merge_error: null,
"merge_params": { merge_params: {
"force_remove_source_branch": null force_remove_source_branch: null,
}, },
"merge_status": "can_be_merged", merge_status: 'can_be_merged',
"merge_user_id": null, merge_user_id: null,
"merge_when_pipeline_succeeds": false, merge_when_pipeline_succeeds: false,
"source_branch": "daaaa", source_branch: 'daaaa',
"source_branch_link": "daaaa", source_branch_link: 'daaaa',
"source_project_id": 19, source_project_id: 19,
"target_branch": "master", target_branch: 'master',
"target_project_id": 19, target_project_id: 19,
"metrics": { metrics: {
"merged_by": { merged_by: {
"name": "Administrator", name: 'Administrator',
"username": "root", username: 'root',
"id": 1, id: 1,
"state": "active", state: 'active',
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", avatar_url:
"web_url": "http://localhost:3000/root" 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
web_url: 'http://localhost:3000/root',
}, },
"merged_at": "2017-04-07T15:39:25.696Z", merged_at: '2017-04-07T15:39:25.696Z',
"closed_by": null, closed_by: null,
"closed_at": null closed_at: null,
}, },
"author": { author: {
"name": "Administrator", name: 'Administrator',
"username": "root", username: 'root',
"id": 1, id: 1,
"state": "active", state: 'active',
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", avatar_url: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
"web_url": "http://localhost:3000/root" web_url: 'http://localhost:3000/root',
}, },
"merge_user": null, merge_user: null,
"diff_head_sha": "104096c51715e12e7ae41f9333e9fa35b73f385d", diff_head_sha: '104096c51715e12e7ae41f9333e9fa35b73f385d',
"diff_head_commit_short_id": "104096c5", diff_head_commit_short_id: '104096c5',
"merge_commit_message": "Merge branch 'daaaa' into 'master'\n\nUpdate README.md\n\nSee merge request !22", merge_commit_message:
"pipeline": { "Merge branch 'daaaa' into 'master'\n\nUpdate README.md\n\nSee merge request !22",
"id": 172, pipeline: {
"user": { id: 172,
"name": "Administrator", user: {
"username": "root", name: 'Administrator',
"id": 1, username: 'root',
"state": "active", id: 1,
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", state: 'active',
"web_url": "http://localhost:3000/root" avatar_url:
'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
web_url: 'http://localhost:3000/root',
}, },
"active": false, active: false,
"coverage": "92.16", coverage: '92.16',
"path": "/root/acets-app/pipelines/172", path: '/root/acets-app/pipelines/172',
"details": { details: {
"status": { status: {
"icon": "icon_status_success", icon: 'icon_status_success',
"favicon": "favicon_status_success", favicon: 'favicon_status_success',
"text": "passed", text: 'passed',
"label": "passed", label: 'passed',
"group": "success", group: 'success',
"has_details": true, has_details: true,
"details_path": "/root/acets-app/pipelines/172" details_path: '/root/acets-app/pipelines/172',
}, },
"duration": null, duration: null,
"finished_at": "2017-04-07T14:00:14.256Z", finished_at: '2017-04-07T14:00:14.256Z',
"stages": [ stages: [
{ {
"name": "build", name: 'build',
"title": "build: failed", title: 'build: failed',
"status": { status: {
"icon": "icon_status_failed", icon: 'icon_status_failed',
"favicon": "favicon_status_failed", favicon: 'favicon_status_failed',
"text": "failed", text: 'failed',
"label": "failed", label: 'failed',
"group": "failed", group: 'failed',
"has_details": true, has_details: true,
"details_path": "/root/acets-app/pipelines/172#build" details_path: '/root/acets-app/pipelines/172#build',
}, },
"path": "/root/acets-app/pipelines/172#build", path: '/root/acets-app/pipelines/172#build',
"dropdown_path": "/root/acets-app/pipelines/172/stage.json?stage=build" dropdown_path: '/root/acets-app/pipelines/172/stage.json?stage=build',
}, },
{ {
"name": "review", name: 'review',
"title": "review: skipped", title: 'review: skipped',
"status": { status: {
"icon": "icon_status_skipped", icon: 'icon_status_skipped',
"favicon": "favicon_status_skipped", favicon: 'favicon_status_skipped',
"text": "skipped", text: 'skipped',
"label": "skipped", label: 'skipped',
"group": "skipped", group: 'skipped',
"has_details": true, has_details: true,
"details_path": "/root/acets-app/pipelines/172#review" details_path: '/root/acets-app/pipelines/172#review',
}, },
"path": "/root/acets-app/pipelines/172#review", path: '/root/acets-app/pipelines/172#review',
"dropdown_path": "/root/acets-app/pipelines/172/stage.json?stage=review" dropdown_path: '/root/acets-app/pipelines/172/stage.json?stage=review',
} },
],
"artifacts": [
], ],
"manual_actions": [ artifacts: [],
manual_actions: [
{ {
"name": "stop_review", name: 'stop_review',
"path": "/root/acets-app/builds/1427/play", path: '/root/acets-app/builds/1427/play',
"playable": false playable: false,
} },
] ],
}, },
"flags": { flags: {
"latest": false, latest: false,
"triggered": false, triggered: false,
"stuck": false, stuck: false,
"yaml_errors": false, yaml_errors: false,
"retryable": true, retryable: true,
"cancelable": false cancelable: false,
}, },
"ref": { ref: {
"name": "daaaa", name: 'daaaa',
"path": "/root/acets-app/tree/daaaa", path: '/root/acets-app/tree/daaaa',
"tag": false, tag: false,
"branch": true branch: true,
}, },
"commit": { commit: {
"id": "104096c51715e12e7ae41f9333e9fa35b73f385d", id: '104096c51715e12e7ae41f9333e9fa35b73f385d',
"short_id": "104096c5", short_id: '104096c5',
"title": "Update README.md", title: 'Update README.md',
"created_at": "2017-04-07T15:27:18.000+03:00", created_at: '2017-04-07T15:27:18.000+03:00',
"parent_ids": [ parent_ids: ['2396536178668d8930c29d904e53bd4d06228b32'],
"2396536178668d8930c29d904e53bd4d06228b32" message: 'Update README.md',
], author_name: 'Administrator',
"message": "Update README.md", author_email: 'admin@example.com',
"author_name": "Administrator", authored_date: '2017-04-07T15:27:18.000+03:00',
"author_email": "admin@example.com", committer_name: 'Administrator',
"authored_date": "2017-04-07T15:27:18.000+03:00", committer_email: 'admin@example.com',
"committer_name": "Administrator", committed_date: '2017-04-07T15:27:18.000+03:00',
"committer_email": "admin@example.com", author: {
"committed_date": "2017-04-07T15:27:18.000+03:00", name: 'Administrator',
"author": { username: 'root',
"name": "Administrator", id: 1,
"username": "root", state: 'active',
"id": 1, avatar_url:
"state": "active", 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
"avatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", web_url: 'http://localhost:3000/root',
"web_url": "http://localhost:3000/root"
}, },
"author_gravatar_url": "https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon", author_gravatar_url:
"commit_url": "http://localhost:3000/root/acets-app/commit/104096c51715e12e7ae41f9333e9fa35b73f385d", 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon',
"commit_path": "/root/acets-app/commit/104096c51715e12e7ae41f9333e9fa35b73f385d" commit_url:
'http://localhost:3000/root/acets-app/commit/104096c51715e12e7ae41f9333e9fa35b73f385d',
commit_path: '/root/acets-app/commit/104096c51715e12e7ae41f9333e9fa35b73f385d',
}, },
"retry_path": "/root/acets-app/pipelines/172/retry", retry_path: '/root/acets-app/pipelines/172/retry',
"created_at": "2017-04-07T12:27:19.520Z", created_at: '2017-04-07T12:27:19.520Z',
"updated_at": "2017-04-07T15:28:44.800Z" updated_at: '2017-04-07T15:28:44.800Z',
}, },
"work_in_progress": false, work_in_progress: false,
"source_branch_exists": false, source_branch_exists: false,
"mergeable_discussions_state": true, mergeable_discussions_state: true,
"conflicts_can_be_resolved_in_ui": false, conflicts_can_be_resolved_in_ui: false,
"branch_missing": true, branch_missing: true,
"commits_count": 1, commits_count: 1,
"has_conflicts": false, has_conflicts: false,
"can_be_merged": true, can_be_merged: true,
"has_ci": true, has_ci: true,
"ci_status": "success", ci_status: 'success',
"pipeline_status_path": "/root/acets-app/merge_requests/22/pipeline_status", pipeline_status_path: '/root/acets-app/merge_requests/22/pipeline_status',
"issues_links": { issues_links: {
"closing": "", closing: '',
"mentioned_but_not_closing": "" mentioned_but_not_closing: '',
}, },
"current_user": { current_user: {
"can_resolve_conflicts": true, can_resolve_conflicts: true,
"can_remove_source_branch": false, can_remove_source_branch: false,
"can_revert_on_current_merge_request": true, can_revert_on_current_merge_request: true,
"can_cherry_pick_on_current_merge_request": true can_cherry_pick_on_current_merge_request: true,
}, },
"target_branch_path": "/root/acets-app/branches/master", target_branch_path: '/root/acets-app/branches/master',
"source_branch_path": "/root/acets-app/branches/daaaa", source_branch_path: '/root/acets-app/branches/daaaa',
"conflict_resolution_ui_path": "/root/acets-app/merge_requests/22/conflicts", conflict_resolution_ui_path: '/root/acets-app/merge_requests/22/conflicts',
"remove_wip_path": "/root/acets-app/merge_requests/22/remove_wip", remove_wip_path: '/root/acets-app/merge_requests/22/remove_wip',
"cancel_merge_when_pipeline_succeeds_path": "/root/acets-app/merge_requests/22/cancel_merge_when_pipeline_succeeds", cancel_merge_when_pipeline_succeeds_path:
"create_issue_to_resolve_discussions_path": "/root/acets-app/issues/new?merge_request_to_resolve_discussions_of=22", '/root/acets-app/merge_requests/22/cancel_merge_when_pipeline_succeeds',
"merge_path": "/root/acets-app/merge_requests/22/merge", create_issue_to_resolve_discussions_path:
"cherry_pick_in_fork_path": "/root/acets-app/forks?continue%5Bnotice%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+has+been+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.+Try+to+revert+this+commit+again.&continue%5Bnotice_now%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+is+being+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.&continue%5Bto%5D=%2Froot%2Facets-app%2Fmerge_requests%2F22&namespace_key=1", '/root/acets-app/issues/new?merge_request_to_resolve_discussions_of=22',
"revert_in_fork_path": "/root/acets-app/forks?continue%5Bnotice%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+has+been+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.+Try+to+cherry-pick+this+commit+again.&continue%5Bnotice_now%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+is+being+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.&continue%5Bto%5D=%2Froot%2Facets-app%2Fmerge_requests%2F22&namespace_key=1", merge_path: '/root/acets-app/merge_requests/22/merge',
"email_patches_path": "/root/acets-app/merge_requests/22.patch", cherry_pick_in_fork_path:
"plain_diff_path": "/root/acets-app/merge_requests/22.diff", '/root/acets-app/forks?continue%5Bnotice%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+has+been+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.+Try+to+revert+this+commit+again.&continue%5Bnotice_now%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+is+being+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.&continue%5Bto%5D=%2Froot%2Facets-app%2Fmerge_requests%2F22&namespace_key=1',
"status_path": "/root/acets-app/merge_requests/22.json", revert_in_fork_path:
"merge_check_path": "/root/acets-app/merge_requests/22/merge_check", '/root/acets-app/forks?continue%5Bnotice%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+has+been+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.+Try+to+cherry-pick+this+commit+again.&continue%5Bnotice_now%5D=You%27re+not+allowed+to+make+changes+to+this+project+directly.+A+fork+of+this+project+is+being+created+that+you+can+make+changes+in%2C+so+you+can+submit+a+merge+request.&continue%5Bto%5D=%2Froot%2Facets-app%2Fmerge_requests%2F22&namespace_key=1',
"ci_environments_status_url": "/root/acets-app/merge_requests/22/ci_environments_status", email_patches_path: '/root/acets-app/merge_requests/22.patch',
"project_archived": false, plain_diff_path: '/root/acets-app/merge_requests/22.diff',
"merge_commit_message_with_description": "Merge branch 'daaaa' into 'master'\n\nUpdate README.md\n\nSee merge request !22", status_path: '/root/acets-app/merge_requests/22.json',
"diverged_commits_count": 0, merge_check_path: '/root/acets-app/merge_requests/22/merge_check',
"only_allow_merge_if_pipeline_succeeds": false, ci_environments_status_url: '/root/acets-app/merge_requests/22/ci_environments_status',
"commit_change_content_path": "/root/acets-app/merge_requests/22/commit_change_content" project_archived: false,
} merge_commit_message_with_description:
"Merge branch 'daaaa' into 'master'\n\nUpdate README.md\n\nSee merge request !22",
diverged_commits_count: 0,
only_allow_merge_if_pipeline_succeeds: false,
commit_change_content_path: '/root/acets-app/merge_requests/22/commit_change_content',
};
/* eslint-disable */
export const mockMetrics = [ export const mockMetrics = [
[1493716685, '4.30859375'], [1493716685, '4.30859375'],
[1493716745, '4.30859375'], [1493716745, '4.30859375'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment