Skip to content

Draft: Add designs widget wrapper

Abhilash Kotte requested to merge 387552-add-designs-widget into master

What does this MR do and why?

Add designs widget wrapper

Issue: #387552 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

GraphQl Query

{
  workItem(id: "gid://gitlab/WorkItem/526") {
    id,
    workItemType {
      id,
      name
    },
    widgets {
      type
      ... on WorkItemWidgetDesigns {
        		__typename,
        designCollection {
        __typename
        copyState
        designs {
          __typename
          nodes {
            __typename
            id
            event
            filename
            notesCount
            image
            imageV432x230
            currentUserTodos(state: pending) {
              __typename
              nodes {
                __typename
                id
              }
            }
          }
        }
        versions {
          __typename
          nodes {
            __typename
            id
            sha
            createdAt
            author {
              __typename
              id
              name
              avatarUrl
            }
          }
        }
      }
      }
    }
  }
}
Response
{
  workItem(id: "gid://gitlab/WorkItem/526") {
    id,
    workItemType {
      id,
      name
    },
    widgets {
      type
      ... on WorkItemWidgetDesigns {
        		__typename,
        designCollection {
        __typename
        copyState
        designs {
          __typename
          nodes {
            __typename
            id
            event
            filename
            notesCount
            image
            imageV432x230
            currentUserTodos(state: pending) {
              __typename
              nodes {
                __typename
                id
              }
            }
          }
        }
        versions {
          __typename
          nodes {
            __typename
            id
            sha
            createdAt
            author {
              __typename
              id
              name
              avatarUrl
            }
          }
        }
      }
      }
    }
  }
}

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #387552 (closed)

Edited by Abhilash Kotte

Merge request reports

Loading