Skip to content

NeTEx import - #2769

Merged
t2gran merged 103 commits into
opentripplanner:dev-2.xfrom
entur:otp2_netex_import
Sep 4, 2019
Merged

t2gran merged 103 commits into
opentripplanner:dev-2.xfrom
entur:otp2_netex_import

Conversation

@t2gran

@t2gran t2gran commented May 21, 2019 •

Copy link
Copy Markdown
Member

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

@t2gran
t2gran requested a review from a team May 21, 2019 14:55
@t2gran

t2gran commented May 21, 2019

Copy link
Copy Markdown
Member Author

This PR need more unit tests.

@t2gran
t2gran force-pushed the otp2_netex_import branch from 51dbc53 to 3001c2c Compare May 21, 2019 15:27
@t2gran

t2gran commented May 29, 2019 •

Copy link
Copy Markdown
Member Author

I have added TODO OTP2 tags on everything I mean needs to be fixed in this PR. There is 67 TODOs to be fixed. I could have commented on them here at GitHub, but that would be a lot of unnecessary noice.

In addition we should create a NeTEX/Transmodel support documentation page - when this is done I will remove the WIP tag.

@abyrd abyrd 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.

I have added some comments primarily to the top-level code that sets up and orchestrates the loading/mapping. The mapper logic that actually converts Netex to the internal model all looks good. Nice to see a lot of tests. The tests might benefit from some concise documentation on the individual tests, but one could argue that the test code is more "self documenting" than other code.

Comment thread pom.xml Resolved
Comment thread pom.xml Resolved
Comment thread pom.xml Resolved
Comment thread pom.xml Resolved
@t2gran
t2gran force-pushed the otp2_netex_import branch from 7a48ec5 to caea88e Compare June 12, 2019 19:25
t2gran added a commit to entur/OpenTripPlanner-LegacyHSLFork that referenced this pull request Aug 6, 2019
t2gran added a commit to entur/OpenTripPlanner-LegacyHSLFork that referenced this pull request Aug 7, 2019
  - Fix some of the issues/comments from Andrew.
  - Jet another refactoring of the NetexBundle; Add NetexConfig(DI),
    Merge Bundle and Loader, extract XML and ZipFile pluming.
  - Fix ServiceDate toString.
t2gran added a commit to entur/OpenTripPlanner-LegacyHSLFork that referenced this pull request Aug 7, 2019
@t2gran

t2gran commented Aug 7, 2019

Copy link
Copy Markdown
Member Author

We have not provided any documentation on NeTEx import, but I added it to the #2757 Issue, we should probably create a separate issue for this, but for now it is just a bullet on the above mentioned issue.

@t2gran
t2gran force-pushed the otp2_netex_import branch from 1fc217b to fd61e3e Compare August 8, 2019 14:28
t2gran added a commit to entur/OpenTripPlanner-LegacyHSLFork that referenced this pull request Aug 8, 2019
t2gran added a commit to entur/OpenTripPlanner-LegacyHSLFork that referenced this pull request Aug 8, 2019
  - Fix some of the issues/comments from Andrew.
  - Jet another refactoring of the NetexBundle; Add NetexConfig(DI),
    Merge Bundle and Loader, extract XML and ZipFile pluming.
  - Fix ServiceDate toString.
t2gran added a commit to entur/OpenTripPlanner-LegacyHSLFork that referenced this pull request Aug 8, 2019
@t2gran
t2gran force-pushed the otp2_netex_import branch from fd61e3e to 4f3ec2f Compare August 10, 2019 16:53
abyrd
abyrd previously approved these changes Aug 26, 2019

@abyrd abyrd 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.

Due to the size of the PR, for most of the actual Netex loading code I was just able to review the Javadoc and get familiar with it. I looked in more detail at the points where that code interfaces with existing OTP. It looks good to me, I think this is ready to merge. I just left a few comments about names, style, and other minor details.

Comment thread pom.xml Resolved
Comment thread pom.xml Resolved
boolean hasOSM = builderParams.streets && !osmFiles.isEmpty();
boolean hasGTFS = builderParams.transit && !gtfsFiles.isEmpty();
if ( ! ( hasOSM || hasGTFS )) {
boolean hasNETEX = builderParams.transit && !netexFiles.isEmpty();

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.

I do find the names you suggested (hasOsm, hasGtfs, hasNetex) easier to read, and that post you linked to is good. We should reference that post in our coding guidelines. There is no pressing need to refactor now - the all-caps versions are also readable and capitalization is not consistent throughout the OTP project. But if you have time, we can start the new convention here with a change to this PR.

@t2gran

t2gran commented Aug 29, 2019

Copy link
Copy Markdown
Member Author

I am not sure why the CI says "Pending", the CI build is green.

@t2gran
t2gran requested a review from abyrd September 3, 2019 08:55
@t2gran
t2gran merged commit 996e582 into opentripplanner:dev-2.x Sep 4, 2019
@t2gran
t2gran deleted the otp2_netex_import branch September 13, 2019 08:01
@abyrd abyrd added this to the 2.0 milestone Oct 13, 2020
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.

Support for import of NeTEx - Nordic profile

3 participants