Conversation
Replaced endsWith with equals to avoid unwanted matches e.g. stop_areas.txt being used instead of areas.txt
… generic unit tests which uses
…ator with OS derived reference Test should now work on Linux
…atch what will be provided):
…entities will be returned
… the route network table The route id is unique to the route table has well. This prevents duplicate key failures
… export to separate files
… test to include stop area ids
…cations to check subdirectories
Merge stop areas into stops
…fare leg join rule and rider ca
Updated all classes to include new param as well as unit tests
…d argument This was removed by mistake
miles-grant-ibigroup
left a comment
There was a problem hiding this comment.
So much boilerplate wow... this looks really good! Just 2 small things
miles-grant-ibigroup
left a comment
There was a problem hiding this comment.
This looks great! Because of the scope of these changes I couldn't review as carefully as I could for a smaller PR, but everything seems to work well and the changes look clean
binh-dam-ibigroup
left a comment
There was a problem hiding this comment.
First round of comments just from reading some of the files. More to come.
binh-dam-ibigroup
left a comment
There was a problem hiding this comment.
Just a few refactor requests for now, and I still need to run the code with the other stuff,
mainly split CsvReaderUtil.getCsvReaderFromMergedFiles, inling a few return, and cleaning up dead code. The other suggestions and comment additions would be nice to have.
| /* | ||
| Check referential integrity without storing references. | ||
| */ | ||
| getRefField(AREA_ID_NAME, true, feed.areas); |
There was a problem hiding this comment.
What happens here if the referential integrity fails?
There was a problem hiding this comment.
A ReferentialIntegrityError is flagged. Processing is not halted.
| @@ -84,107 +78,146 @@ void canDoRoundTripLoadAndWriteToZipFile() throws IOException { | |||
| feed.toFile(outZip.getAbsolutePath()); | |||
| feed.close(); | |||
| assertTrue(outZip.exists()); | |||
|
|
|||
| // assert that rows of data were written to files within the zipfile | |||
| ZipFile zip = new ZipFile(outZip); | |||
There was a problem hiding this comment.
Move this code to the actual test.
| */ | ||
| @ParameterizedTest(name = "{1}") | ||
| @MethodSource("createFileTestCases") | ||
| void canDoRoundTripLoadAndWriteToZipFile(ZipFile zip, TestUtils.FileTestCase fileTestCase) throws IOException { |
There was a problem hiding this comment.
Remove the zip parameter, and move the creation of the zip file in this function.
|
|
||
| @Override | ||
| public String toString() { | ||
| return "FileTestCase{" + |
binh-dam-ibigroup
left a comment
There was a problem hiding this comment.
One more small change in the tests, then I will approve. The other changes seem fine and appear to work with datatools-server.
Checklist
devbefore they can be merged tomaster)Description
Update to include fares v2 based on design:
https://docs.google.com/document/d/1EBMoxfXscPhFWyrn4fyGR6foQ7JGBWvMWeodrvo7DPw/edit