Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL query responses show default language versions only #1168

Open
DevNils opened this issue Feb 18, 2021 · 0 comments
Open

GraphQL query responses show default language versions only #1168

DevNils opened this issue Feb 18, 2021 · 0 comments

Comments

@DevNils
Copy link

DevNils commented Feb 18, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant