Skip to content

Do not overwrite TripPattern ids#3202

Merged
hannesj merged 3 commits into
2.0-rcfrom
rt-fix
Oct 6, 2020
Merged

Do not overwrite TripPattern ids#3202
hannesj merged 3 commits into
2.0-rcfrom
rt-fix

Conversation

@hannesj

@hannesj hannesj commented Oct 1, 2020

Copy link
Copy Markdown
Contributor

Do not overwrite id on TripPattern, but rather leave the generated id as is. This will fix the issue below, as there are no longer collisions in fetching Timetables for TripPatterns, as the hash and equals are based on the id.

Also fix a bug in date comparison when removing old data.

To be completed by pull request submitter:

To be completed by @opentripplanner/plc:

  • reviews and approvals by 2 members, ideally from different organizations
  • after merging: update the relevant card on the roadmap

@hannesj hannesj requested a review from a team October 1, 2020 11:28

@t2gran t2gran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks ok.

@hannesj hannesj merged commit db4fbe4 into 2.0-rc Oct 6, 2020
@hannesj

hannesj commented Oct 6, 2020

Copy link
Copy Markdown
Contributor Author

@sven4all Can you test if this works now?

@hannesj hannesj deleted the rt-fix branch October 6, 2020 08:36
@sven4all

sven4all commented Oct 6, 2020

Copy link
Copy Markdown
Contributor

I tested it and it seems to work for me as well.

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

Successfully merging this pull request may close these issues.

3 participants