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

sensor/gtfs: add sanity check, origin earlier than destination #2265

Merged
merged 1 commit into from
Jun 10, 2016

Conversation

imrehg
Copy link
Contributor

@imrehg imrehg commented Jun 10, 2016

Description:

Previously experienced issues on routes where services operate in both directions. The query picked up not just paths where service goes from Origin -> Destination, but trips going Destination -> Origin,
and shown bogus results.

Ensure that this doesn't happen by requiring the origin station's stop_sequence value to be lower than the destination station.

Checklist:

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

Previously experienced issues on routes where services operate in both
directions. The query picked up not just paths where service goes
from Origin ->  Destination, but trips going Destination -> Origin,
and shown bogus results.

Ensure that this doesn't happen by requiring the origin station's
stop_sequence value to be lower than the destination station.
@balloob
Copy link
Member

balloob commented Jun 10, 2016

Thanks!

@robbiet480 could you review this?

It makes sense to me but I have not enough knowledge about this part.

@robbiet480
Copy link
Member

Ah yeah, this fix is great! I must have missed this by only testing with BART. Thanks @imrehg!

@robbiet480 robbiet480 merged commit abc353c into home-assistant:dev Jun 10, 2016
balloob pushed a commit that referenced this pull request Jun 12, 2016
Previously experienced issues on routes where services operate in both
directions. The query picked up not just paths where service goes
from Origin ->  Destination, but trips going Destination -> Origin,
and shown bogus results.

Ensure that this doesn't happen by requiring the origin station's
stop_sequence value to be lower than the destination station.
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants