-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Expected behavior
When a journey is added through SIRI data (having <ExtraJourney>true</ExtraJourney>), the transmodel API should:
- Let
tripAlterationtake the enum valueextraJourney. - Retain
RealtimeStateof "Added"
Observed behavior
tripAlterationis nullRealtimeStatechanges to "Updated" if a later SIRI update changes this journey
Note: Whether 2 is viable to fix is debatable, as it's not possible from the latest SIRI data to distinguish whether the realtime update is the first addition or a later update to an existing journey. Therefore, an OTP instance my change the value of RealtimeState when restarted, and if multiple instances are running in parallel, they may report different RealtimeState given the same query.
Version of OTP used (exact commit hash or JAR name)
dev-2.x
Steps to reproduce the problem
Entur reproduction link (valid 5. march)
Example query used for a valid extra journey:
{
datedServiceJourney(id:"GOA:DatedServiceJourney:B709-7_20260305-AUD_AUD") {
estimatedCalls {
realtimeState
}
tripAlteration
}
}Result:
{
"data": {
"datedServiceJourney": {
"estimatedCalls": [
{
"realtimeState": "Added"
},
{
"realtimeState": "Added"
},
{
"realtimeState": "Added"
}
],
"tripAlteration": null
}
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels