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

Move GTFS field names from table loader to entity classes #1274

Merged
merged 3 commits into from
Oct 22, 2022

Conversation

aababilov
Copy link
Collaborator

E.g., now use GtfsStop.STOP_ID_FIELD_NAME instead of GtfsStopTableLoader.STOP_ID_FIELD_NAME.

Motivation

  1. Table loader classes should be only used for loading data tables. They should not be used by validator classes.
  2. Our final goal is to stop generating table loader classes and instead make them usual classes that use a GTFS schema as a parameter. GTFS field names have to be generated, so we move them to entity classes that are generated anyway.

E.g., now use of GtfsStop.STOP_ID_FIELD_NAME instead of
GtfsStopTableLoader.STOP_ID_FIELD_NAME.

Motivation

1. Table loader classes should be only used for loading data tables.
   They should not be used by validator classes.
2. Our final goal is to stop generating table loader classes and instead
   make them usual classes that use a GTFS schema as a parameter. GTFS
   field names have to be generated, so we move them to entity classes
   that are generated anyway.
Copy link
Collaborator

@asvechnikov2 asvechnikov2 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@aababilov aababilov merged commit 35bf825 into MobilityData:master Oct 22, 2022
@aababilov aababilov deleted the field-names-entity-classes branch October 22, 2022 10:20
@aababilov
Copy link
Collaborator Author

Thanks for reviewing!

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.

None yet

2 participants