diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-20 18:10:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-20 18:10:24 +0300 |
commit | c70a70ea42e3f8742623e690dcd74d17c7c3b0ed (patch) | |
tree | e60d0a3728112b773e1330a9926e1a6c6d058d53 /app/assets/javascripts/design_management | |
parent | b70394d26f7349ecfa4a740d7d7b115d738eff8e (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/design_management')
3 files changed, 18 insertions, 2 deletions
diff --git a/app/assets/javascripts/design_management/graphql/fragments/version.fragment.graphql b/app/assets/javascripts/design_management/graphql/fragments/version.fragment.graphql index 7eb40b12f51..b715633a9f2 100644 --- a/app/assets/javascripts/design_management/graphql/fragments/version.fragment.graphql +++ b/app/assets/javascripts/design_management/graphql/fragments/version.fragment.graphql @@ -1,4 +1,11 @@ fragment VersionListItem on DesignVersion { id sha + createdAt + author { + __typename + id + name + avatarUrl + } } diff --git a/app/assets/javascripts/design_management/graphql/mutations/upload_design.mutation.graphql b/app/assets/javascripts/design_management/graphql/mutations/upload_design.mutation.graphql index 84aeb374351..111f5ac18a7 100644 --- a/app/assets/javascripts/design_management/graphql/mutations/upload_design.mutation.graphql +++ b/app/assets/javascripts/design_management/graphql/mutations/upload_design.mutation.graphql @@ -1,13 +1,15 @@ #import "../fragments/design.fragment.graphql" +#import "../fragments/version.fragment.graphql" mutation uploadDesign($files: [Upload!]!, $projectPath: ID!, $iid: ID!) { designManagementUpload(input: { projectPath: $projectPath, iid: $iid, files: $files }) { designs { ...DesignItem versions { + __typename nodes { - id - sha + __typename + ...VersionListItem } } } diff --git a/app/assets/javascripts/design_management/utils/design_management_utils.js b/app/assets/javascripts/design_management/utils/design_management_utils.js index 05b220801f2..7470f3d259b 100644 --- a/app/assets/javascripts/design_management/utils/design_management_utils.js +++ b/app/assets/javascripts/design_management/utils/design_management_utils.js @@ -85,6 +85,13 @@ export const designUploadOptimisticResponse = (files) => { __typename: 'DesignVersion', id: -uniqueId(), sha: -uniqueId(), + createdAt: '', + author: { + __typename: 'UserCore', + id: -uniqueId(), + name: '', + avatarUrl: '', + }, }, }, })); |