Duplicate alerts in graphQL results
Opened this issue · 0 comments
PasiSalenius commented
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
}
]
}
}