We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Summary:
Updating route_id updates AgencyAndId object and not the route's id, leading to have the agency code postfixed to the new route id.
route_id
Steps to reproduce:
@Test public void testUpdateRouteId() throws Exception { _factory.addModificationsFromString("{'op':'update', " + "'match':{'file':'routes.txt'}, " + "'update':{'route_id':'s/r/route/'}}"); GtfsTransformStrategy transform = _transformer.getLastTransform(); TransformContext context = new TransformContext(); GtfsMutableRelationalDao dao = new GtfsRelationalDaoImpl(); Route route = new Route(); route.setId(new AgencyAndId("a0", "r0")); dao.saveEntity(route); transform.run(context, dao); assertEquals("route0", route.getId().getId()); }
Expected behavior:
It should transforms r0 into route0
r0
route0
Observed behavior:
It transforms r0 into a0_route0
a0_route0
Platform:
macOS 10.15.5 openjdk version "13.0.2" 2020-01-14 OpenJDK Runtime Environment (build 13.0.2+8) OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing) onebusaway-gtfs-modules 1.3.89-SNAPSHOT
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary:
Updating
route_id
updates AgencyAndId object and not the route's id, leading to have the agency code postfixed to the new route id.Steps to reproduce:
Expected behavior:
It should transforms
r0
intoroute0
Observed behavior:
It transforms
r0
intoa0_route0
Platform:
macOS 10.15.5
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
onebusaway-gtfs-modules 1.3.89-SNAPSHOT
The text was updated successfully, but these errors were encountered: