Skip to content

Add system notes metadata to GraphQL NoteType

Alexandru Croitor requested to merge add-system-note-metadata-to-notes into master

What does this MR do and why?

Adds description version changes diff and some temporary REST API backward compatibility data to the corresponding system notes data.

Sample GraphQL query
{
  workItem(id: "gid://gitlab/WorkItem/81435") {
    widgets {
      ... on WorkItemWidgetNotes {
        type
        discussions {
          nodes {
            id
            notes {
              nodes {
                id
                body
                bodyHtml
                systemNoteIconName
                createdAt
                systemNoteMetadata {
                  id
                  action
                  descriptionVersion {
                    id
                    description
                    diff
                    diffPath
                    deletePath
                    canDelete
                    deleted
                  }
                }
                author {
                  id
                  avatarUrl
                  name
                  username
                  webUrl
                }
              }
            }
          }
        }
      }
    }
  }
}

#385535 (comment 1207525117)

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

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

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alexandru Croitor

Merge request reports