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

change for adding multiple isa loops per file #12

Merged
merged 8 commits into from
Feb 21, 2019

Conversation

coolhusker
Copy link
Contributor

Here are the changes I suggest to allow for multiple ISA loops inside a single X12 request/response

@ctmay4
Copy link
Member

ctmay4 commented Feb 8, 2019

One other thing. We have same fake files to for our unit tests. Could you add a new file to the tests that have multiple ISA loops so that the new code is well tested?

@coolhusker
Copy link
Contributor Author

Sure...let me see what I can come up with

@ctmay4
Copy link
Member

ctmay4 commented Feb 8, 2019

Sorry, but I haven't touched this project in a while and I did another cleanup pass and caused a minor merge conflict. I am done making changes now.

@angelaszek
Copy link
Collaborator

I took a look at the changes as well. Things looks good to me. I agree that adding an additional test for files with multiple ISAs is a good idea just to make sure everything is still working as expected.

@coolhusker
Copy link
Contributor Author

coolhusker commented Feb 8, 2019 via email

@coolhusker
Copy link
Contributor Author

I have updated the unit tests and fixed a bug identified during the testing. Please let me know what you think or if I need to add any more to it

@ctmay4
Copy link
Member

ctmay4 commented Feb 8, 2019

I'm going to take a look at it soon, but might not get to it until next week.

Couple of things:

  1. Please merge master into your branch. I had a bug in our CI script and code quality plugins like Checkstyle and Spotbugs were not running. I fixed it and you just need to merge master into your request.
  2. Please follow the coding standards (some of which will be enforced by Checkstyle). Not the location of brackets and general spacing.

Thanks for all your work and if all goes well we can release this soon.

@ctmay4
Copy link
Member

ctmay4 commented Feb 8, 2019

Ok, the CI builds really were not working. I actually fixed them this time and verified by running against your PR. There are not failing checkstyle errors. Please merge master into your branch and you will see them on the next commit.

Sorry about all this. I never actually set this project up correctly before this. All should be good now.

@coolhusker
Copy link
Contributor Author

coolhusker commented Feb 8, 2019 via email

// Determine if we have started a new loop
loopId = getMatchedLoop(line.split(Pattern.quote(separators.getElement().toString())), previousLoopId);
if (loopId != null) {
if( loopId.equals( _definition.getLoop().getXid() ) ) {
if( null!=currentLoopId ) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

currentLoopId != null is the standard way to do this check

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can make the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants