Skip to content

Transit package removal#388

Merged
br648 merged 4 commits intogtfs-spec-updatesfrom
transit-package-removal
Jun 11, 2021
Merged

Transit package removal#388
br648 merged 4 commits intogtfs-spec-updatesfrom
transit-package-removal

Conversation

@br648
Copy link
Copy Markdown
Contributor

@br648 br648 commented Jun 4, 2021

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

This PR seeks to remove the now redundant transit package. This includes all containing classes and all depended classes and methods.

Note

The unit tests MergeFeedsJobTest.canMergeRegional and MergeFeedsJobTest.canMergeBARTFeeds are failing the new conditional checks (fare_rules - ForeignRefExistsCheck) introduced as part of the GTFS-lib update. Both are failing with over 4500k ref checks errors! A decision on the best approach to resolve is to be decided. Potential options are:

  1. Fix all the ref check errors.
  2. Remove the ref check.
  3. Update the ref check to exclude the FareRule entity type.

Copy link
Copy Markdown
Contributor

@evansiroky evansiroky left a comment

Choose a reason for hiding this comment

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

Approved with the assumption that the failing tests are resolved in #387.

@evansiroky evansiroky removed their assignment Jun 5, 2021
Copy link
Copy Markdown
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

LGTM. Should com.conveyal.datatools.editor.utils.JacksonSerializers.java be deleted in favor of/merged into com.conveyal.gtfs.util.json.JacksonSerializers @evansiroky @landonreed?

@binh-dam-ibigroup binh-dam-ibigroup removed their assignment Jun 7, 2021
Copy link
Copy Markdown
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

After closer look, I recommend merging the two classes as mentioned in my comment #388 (review).

Copy link
Copy Markdown
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Approval still stands with one refactor comment.


@Override
public LocalDate deserialize(JsonParser jp, DeserializationContext arg1) throws IOException {
LocalDate date;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Remove this declaration and inline all instances of date.

@br648 br648 removed their assignment Jun 9, 2021
Copy link
Copy Markdown
Contributor

@landonreed landonreed left a comment

Choose a reason for hiding this comment

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

Looks good. I would perhaps have marked the package removal commit with a BREAKING CHANGE note, but that functionality is long since unsupported and only used for converting old MapDB databases to Postgres (so perhaps it's not useful to mark it as such).

In any case, let's be sure to mark a breaking change in #387 when we update gtfs-lib to the latest release.

@landonreed landonreed assigned br648 and unassigned landonreed Jun 11, 2021
@br648 br648 merged commit 3e0167e into gtfs-spec-updates Jun 11, 2021
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.

4 participants