diff options
Diffstat (limited to 'spec/frontend/work_items/mock_data.js')
-rw-r--r-- | spec/frontend/work_items/mock_data.js | 353 |
1 files changed, 353 insertions, 0 deletions
diff --git a/spec/frontend/work_items/mock_data.js b/spec/frontend/work_items/mock_data.js index 05c6a21bb38..93f24cf2337 100644 --- a/spec/frontend/work_items/mock_data.js +++ b/spec/frontend/work_items/mock_data.js @@ -1879,6 +1879,10 @@ export const mockWorkItemNotesResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/36', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -1924,6 +1928,10 @@ export const mockWorkItemNotesResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/76', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -1968,6 +1976,10 @@ export const mockWorkItemNotesResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/71', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2073,6 +2085,10 @@ export const mockWorkItemNotesByIidResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/72', + descriptionVersion: null, + }, author: { id: 'gid://gitlab/User/1', avatarUrl: @@ -2120,6 +2136,10 @@ export const mockWorkItemNotesByIidResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/76', + descriptionVersion: null, + }, author: { id: 'gid://gitlab/User/1', avatarUrl: @@ -2168,6 +2188,10 @@ export const mockWorkItemNotesByIidResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/22', + descriptionVersion: null, + }, author: { id: 'gid://gitlab/User/1', avatarUrl: @@ -2274,6 +2298,10 @@ export const mockMoreWorkItemNotesResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/16', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2321,6 +2349,10 @@ export const mockMoreWorkItemNotesResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/96', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2366,6 +2398,10 @@ export const mockMoreWorkItemNotesResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/56', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2430,6 +2466,7 @@ export const createWorkItemNoteResponse = { webUrl: 'http://127.0.0.1:3000/root', __typename: 'UserCore', }, + systemNoteMetadata: null, userPermissions: { adminNote: true, awardEmoji: true, @@ -2479,6 +2516,7 @@ export const mockWorkItemCommentNote = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: null, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', id: 'gid://gitlab/User/1', @@ -2564,6 +2602,7 @@ export const mockWorkItemNotesResponseWithComments = { webUrl: 'http://127.0.0.1:3000/root', __typename: 'UserCore', }, + systemNoteMetadata: null, userPermissions: { adminNote: true, awardEmoji: true, @@ -2601,6 +2640,7 @@ export const mockWorkItemNotesResponseWithComments = { webUrl: 'http://127.0.0.1:3000/root', __typename: 'UserCore', }, + systemNoteMetadata: null, userPermissions: { adminNote: true, awardEmoji: true, @@ -2646,6 +2686,7 @@ export const mockWorkItemNotesResponseWithComments = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: null, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2716,6 +2757,10 @@ export const workItemNotesCreateSubscriptionResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/65', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2739,6 +2784,10 @@ export const workItemNotesCreateSubscriptionResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/26', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2778,6 +2827,10 @@ export const workItemNotesUpdateSubscriptionResponse = { repositionNote: true, __typename: 'NotePermissions', }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/46', + descriptionVersion: null, + }, author: { avatarUrl: 'https://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', @@ -2801,3 +2854,303 @@ export const workItemNotesDeleteSubscriptionResponse = { }, }, }; + +export const workItemSystemNoteWithMetadata = { + id: 'gid://gitlab/Note/1651', + body: 'changed the description', + bodyHtml: '<p data-sourcepos="1:1-1:23" dir="auto">changed the description</p>', + system: true, + internal: false, + systemNoteIconName: 'pencil', + createdAt: '2023-05-05T07:19:37Z', + lastEditedAt: '2023-05-05T07:19:37Z', + url: 'https://gdk.test:3443/flightjs/Flight/-/work_items/46#note_1651', + lastEditedBy: null, + discussion: { + id: 'gid://gitlab/Discussion/7d4a46ea0525e2eeed451f7b718b0ebe73205374', + __typename: 'Discussion', + }, + author: { + id: 'gid://gitlab/User/1', + avatarUrl: + 'https://secure.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', + name: 'Administrator', + username: 'root', + webUrl: 'https://gdk.test:3443/root', + __typename: 'UserCore', + }, + userPermissions: { + adminNote: false, + awardEmoji: true, + readNote: true, + createNote: true, + resolveNote: true, + repositionNote: false, + __typename: 'NotePermissions', + }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/670', + descriptionVersion: { + id: 'gid://gitlab/DescriptionVersion/167', + description: '5th May 90 987', + diff: '<span class="idiff">5th May 90</span><span class="idiff addition"> 987</span>', + diffPath: '/flightjs/Flight/-/issues/46/descriptions/167/diff', + deletePath: '/flightjs/Flight/-/issues/46/descriptions/167', + canDelete: true, + deleted: false, + startVersionId: '', + __typename: 'DescriptionVersion', + }, + __typename: 'SystemNoteMetadata', + }, + __typename: 'Note', +}; + +export const workItemNotesWithSystemNotesWithChangedDescription = { + data: { + workspace: { + id: 'gid://gitlab/Project/4', + workItems: { + nodes: [ + { + id: 'gid://gitlab/WorkItem/733', + iid: '79', + widgets: [ + { + __typename: 'WorkItemWidgetAssignees', + }, + { + __typename: 'WorkItemWidgetLabels', + }, + { + __typename: 'WorkItemWidgetDescription', + }, + { + __typename: 'WorkItemWidgetHierarchy', + }, + { + __typename: 'WorkItemWidgetMilestone', + }, + { + type: 'NOTES', + discussions: { + pageInfo: { + hasNextPage: false, + hasPreviousPage: false, + startCursor: null, + endCursor: null, + __typename: 'PageInfo', + }, + nodes: [ + { + id: 'gid://gitlab/Discussion/aa72f4c2f3eef66afa6d79a805178801ce4bd89f', + notes: { + nodes: [ + { + id: 'gid://gitlab/Note/1687', + body: 'changed the description', + bodyHtml: + '<p data-sourcepos="1:1-1:23" dir="auto">changed the description</p>', + system: true, + internal: false, + systemNoteIconName: 'pencil', + createdAt: '2023-05-10T05:21:01Z', + lastEditedAt: '2023-05-10T05:21:01Z', + url: 'https://gdk.test:3443/gnuwget/Wget2/-/work_items/79#note_1687', + lastEditedBy: null, + discussion: { + id: + 'gid://gitlab/Discussion/aa72f4c2f3eef66afa6d79a805178801ce4bd89f', + __typename: 'Discussion', + }, + author: { + id: 'gid://gitlab/User/1', + avatarUrl: + 'https://secure.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', + name: 'Administrator', + username: 'root', + webUrl: 'https://gdk.test:3443/root', + __typename: 'UserCore', + }, + userPermissions: { + adminNote: false, + awardEmoji: true, + readNote: true, + createNote: true, + resolveNote: true, + repositionNote: false, + __typename: 'NotePermissions', + }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/703', + descriptionVersion: { + id: 'gid://gitlab/DescriptionVersion/198', + description: 'Desc1', + diff: '<span class="idiff addition">Desc1</span>', + diffPath: '/gnuwget/Wget2/-/issues/79/descriptions/198/diff', + deletePath: '/gnuwget/Wget2/-/issues/79/descriptions/198', + canDelete: true, + deleted: false, + __typename: 'DescriptionVersion', + }, + __typename: 'SystemNoteMetadata', + }, + __typename: 'Note', + }, + ], + __typename: 'NoteConnection', + }, + __typename: 'Discussion', + }, + { + id: 'gid://gitlab/Discussion/a7d3cf7bd72f7a98f802845f538af65cb11a02cc', + notes: { + nodes: [ + { + id: 'gid://gitlab/Note/1688', + body: 'changed the description', + bodyHtml: + '<p data-sourcepos="1:1-1:23" dir="auto">changed the description</p>', + system: true, + internal: false, + systemNoteIconName: 'pencil', + createdAt: '2023-05-10T05:21:05Z', + lastEditedAt: '2023-05-10T05:21:05Z', + url: 'https://gdk.test:3443/gnuwget/Wget2/-/work_items/79#note_1688', + lastEditedBy: null, + discussion: { + id: + 'gid://gitlab/Discussion/a7d3cf7bd72f7a98f802845f538af65cb11a02cc', + __typename: 'Discussion', + }, + author: { + id: 'gid://gitlab/User/1', + avatarUrl: + 'https://secure.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', + name: 'Administrator', + username: 'root', + webUrl: 'https://gdk.test:3443/root', + __typename: 'UserCore', + }, + userPermissions: { + adminNote: false, + awardEmoji: true, + readNote: true, + createNote: true, + resolveNote: true, + repositionNote: false, + __typename: 'NotePermissions', + }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/704', + descriptionVersion: { + id: 'gid://gitlab/DescriptionVersion/199', + description: 'Desc2', + diff: + '<span class="idiff">Desc</span><span class="idiff deletion">1</span><span class="idiff addition">2</span>', + diffPath: '/gnuwget/Wget2/-/issues/79/descriptions/199/diff', + deletePath: '/gnuwget/Wget2/-/issues/79/descriptions/199', + canDelete: true, + deleted: false, + __typename: 'DescriptionVersion', + }, + __typename: 'SystemNoteMetadata', + }, + __typename: 'Note', + }, + ], + __typename: 'NoteConnection', + }, + __typename: 'Discussion', + }, + { + id: 'gid://gitlab/Discussion/391eed1ee0a258cc966a51dde900424f3b51b95d', + notes: { + nodes: [ + { + id: 'gid://gitlab/Note/1689', + body: 'changed the description', + bodyHtml: + '<p data-sourcepos="1:1-1:23" dir="auto">changed the description</p>', + system: true, + internal: false, + systemNoteIconName: 'pencil', + createdAt: '2023-05-10T05:21:08Z', + lastEditedAt: '2023-05-10T05:21:08Z', + url: 'https://gdk.test:3443/gnuwget/Wget2/-/work_items/79#note_1689', + lastEditedBy: null, + discussion: { + id: + 'gid://gitlab/Discussion/391eed1ee0a258cc966a51dde900424f3b51b95d', + __typename: 'Discussion', + }, + author: { + id: 'gid://gitlab/User/1', + avatarUrl: + 'https://secure.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80&d=identicon', + name: 'Administrator', + username: 'root', + webUrl: 'https://gdk.test:3443/root', + __typename: 'UserCore', + }, + userPermissions: { + adminNote: false, + awardEmoji: true, + readNote: true, + createNote: true, + resolveNote: true, + repositionNote: false, + __typename: 'NotePermissions', + }, + systemNoteMetadata: { + id: 'gid://gitlab/SystemNoteMetadata/705', + descriptionVersion: { + id: 'gid://gitlab/DescriptionVersion/200', + description: 'Desc3', + diff: + '<span class="idiff">Desc</span><span class="idiff deletion">2</span><span class="idiff addition">3</span>', + diffPath: '/gnuwget/Wget2/-/issues/79/descriptions/200/diff', + deletePath: '/gnuwget/Wget2/-/issues/79/descriptions/200', + canDelete: true, + deleted: false, + __typename: 'DescriptionVersion', + }, + __typename: 'SystemNoteMetadata', + }, + __typename: 'Note', + }, + ], + __typename: 'NoteConnection', + }, + __typename: 'Discussion', + }, + ], + __typename: 'DiscussionConnection', + }, + __typename: 'WorkItemWidgetNotes', + }, + { + __typename: 'WorkItemWidgetHealthStatus', + }, + { + __typename: 'WorkItemWidgetProgress', + }, + { + __typename: 'WorkItemWidgetNotifications', + }, + { + __typename: 'WorkItemWidgetCurrentUserTodos', + }, + { + __typename: 'WorkItemWidgetAwardEmoji', + }, + ], + __typename: 'WorkItem', + }, + ], + __typename: 'WorkItemConnection', + }, + __typename: 'Project', + }, + }, +}; |