mesh icon indicating copy to clipboard operation
mesh copied to clipboard

GraphQL query responses show default language versions only

Open DevNils opened this issue 4 years ago • 0 comments

Gentics Mesh Version, operating system, or hardware.

  • v1.7.6

Operating System

  • MacOSX (Docker)

JVM

  • Open JDK 1.8.0_100

Problem

If you use GraphQL in a multi language scenario, it will always give you the node's "versions" of the default language, no matter wich language you query. You can not query the version history of other languages.

Reproducer

  • Create a Node
  • Make some changes in the default language
  • Add a new language to the node
  • Make a different number of changes then you did in the default language
  • Query the versions
{
  node(uuid: "06ca1bfb099c4d4580976995e6f594f0", lang: "de") {
    version
    versions {
      version
    }
  }
}
{
  node(uuid: "06ca1bfb099c4d4580976995e6f594f0", lang: "en") {
    version
    versions {
      version
    }
  }
}

Expected behaviour and actual behaviour

It should list different stacks of versions but it shows always the "versions" of "de" "de" -->

{
  "data": {
    "node": {
      "version": "1.0",
      "versions": [
        {
          "version": "1.0"
        },
        {
          "version": "0.1"
        }
      ]
    }
  }
}

"en" -->

{
  "data": {
    "node": {
      "version": "0.2",
      "versions": [
        {
          "version": "1.0"
        },
        {
          "version": "0.1"
        }
      ]
    }
  }
}

See: https://github.com/gentics/mesh/issues/971

DevNils avatar Feb 18 '21 09:02 DevNils