Skip to content

Show design boards at previous versions in GraphQL

Luke Duncalfe requested to merge 9491-graphql-view-design-board-at-version into master

What does this MR do?

This MR allows design boards to be viewed at previous versions.

When a particular version is chosen, design records are filtered to only those that existed at that version and the images reflect what they were at that version.

The GraphQL designs query can take a new atVersion argument:

designs(atVersion: "gid://gitlab/DesignManagement::Version/1") {
  edges {
    node {
      image
    }
  }
}

A new finder can filter designs to only those that existed at the given version.

DesignTypes can access the atVersion argument passed to the parent connection in order to include the version sha in the image URI it presents.

Does this MR meet the acceptance criteria?

Conformity

Performance and testing

Edited by 🤖 GitLab Bot 🤖

Merge request reports