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

Duplicates in response for certain measures (Regionalatlas) #215

Open
sjockers opened this issue Jul 15, 2020 · 1 comment
Open

Duplicates in response for certain measures (Regionalatlas) #215

sjockers opened this issue Jul 15, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sjockers
Copy link
Member

Certain queries, particularly for "Regionalatlas" statistics, respond with duplicate data.

Example query:

query {
  region (id: "06") {
    name
    AI0803 (year: 2009){
      id
      year
      value
      source{
        title_de
        periodicity
        valid_from
        url
        name
      }
    }
  }
}

Example response:

{
  "data": {
    "region": {
      "name": "Hessen",
      "AI0803": [
        {
          "id": "769b3e1f583304747e80ed57fe4585fcd23c0640",
          "year": 2009,
          "value": 6.7,
          "source": {
            "title_de": "Regionalatlas Deutschland",
            "periodicity": "JAEHRLICH",
            "valid_from": "1995-01-01T00:00:00",
            "url": null,
            "name": "99910"
          }
        },
        {
          "id": "0aecc948d67502120eef510a30db600522a30c35",
          "year": 2009,
          "value": 6.7,
          "source": {
            "title_de": "Regionalatlas Deutschland",
            "periodicity": "JAEHRLICH",
            "valid_from": "1995-01-01T00:00:00",
            "url": null,
            "name": "99910"
          }
        }
      ]
    }
  }
}

Expected behavior: The value should only appear once.

@sjockers sjockers added the bug Something isn't working label Jul 15, 2020
@dpprdan
Copy link

dpprdan commented Jul 15, 2020

Probably related to datenguide/genesapi-tabular#8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants