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

Duplicate alerts in graphQL results #107

Open
PasiSalenius opened this issue Jan 8, 2017 · 0 comments
Open

Duplicate alerts in graphQL results #107

PasiSalenius opened this issue Jan 8, 2017 · 0 comments

Comments

@PasiSalenius
Copy link

PasiSalenius commented Jan 8, 2017

The following query

{
  alerts {
    id
    route {
      gtfsId
    }
    effectiveStartDate
    effectiveEndDate
  }
}

just returned two duplicates (alerts for lines 7A and 7B), as shown below. Also alert identifiers and effective dates are same so they seem to refer to same alert instance.

{
  "data": {
    "alerts": [
      {
        "id": "QWxlcnQ6NTM3ODAgSFNMIDEwNzUgdHJ1ZSAzICBudWxsICAxMDc1XzIwMTYxMjI2X1N1XzFfMTUzNg==",
        "route": {
          "gtfsId": "HSL:1075"
        },
        "effectiveStartDate": 1483882980,
        "effectiveEndDate": 1483886160
      },
      {
        "id": "QWxlcnQ6NTM0MjkgSFNMIDIyMDZBIHRydWUgMyAgbnVsbCAgIG51bGwg",
        "route": {
          "gtfsId": "HSL:2206A"
        },
        "effectiveStartDate": 1483453023,
        "effectiveEndDate": 1484316600
      },
      {
        "id": "QWxlcnQ6NTM3MDYgSFNMIDEwMDdCIHRydWUgMCAgbnVsbCAgIG51bGwg",
        "route": {
          "gtfsId": "HSL:1007B"
        },
        "effectiveStartDate": 1483884000,
        "effectiveEndDate": 1483912740
      },
      {
        "id": "QWxlcnQ6NTM3MDUgSFNMIDEwMDdBIHRydWUgMCAgbnVsbCAgIG51bGwg",
        "route": {
          "gtfsId": "HSL:1007A"
        },
        "effectiveStartDate": 1483884000,
        "effectiveEndDate": 1483912740
      },
      {
        "id": "QWxlcnQ6NTM0MjkgSFNMIDIyMTIgdHJ1ZSAzICBudWxsICAgbnVsbCA=",
        "route": {
          "gtfsId": "HSL:2212"
        },
        "effectiveStartDate": 1483453023,
        "effectiveEndDate": 1484316600
      },
      {
        "id": "QWxlcnQ6NTM3MDYgSFNMIDEwMDdBIHRydWUgMCAgbnVsbCAgIG51bGwg",
        "route": {
          "gtfsId": "HSL:1007A"
        },
        "effectiveStartDate": 1483884000,
        "effectiveEndDate": 1483912740
      },
      {
        "id": "QWxlcnQ6NTM0MjkgSFNMIDIyMTMgdHJ1ZSAzICBudWxsICAgbnVsbCA=",
        "route": {
          "gtfsId": "HSL:2213"
        },
        "effectiveStartDate": 1483453023,
        "effectiveEndDate": 1484316600
      },
      {
        "id": "QWxlcnQ6NTM0MjkgSFNMIDIyMDYgdHJ1ZSAzICBudWxsICAgbnVsbCA=",
        "route": {
          "gtfsId": "HSL:2206"
        },
        "effectiveStartDate": 1483453023,
        "effectiveEndDate": 1484316600
      },
      {
        "id": "QWxlcnQ6NTM3MDUgSFNMIDEwMDdCIHRydWUgMCAgbnVsbCAgIG51bGwg",
        "route": {
          "gtfsId": "HSL:1007B"
        },
        "effectiveStartDate": 1483884000,
        "effectiveEndDate": 1483912740
      }
    ]
  }
}
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