Skip to content

GraphQL query responses show default language versions only #1168

@DevNils

Description

@DevNils

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: #971

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions