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

Include the optional LongName attribute in the XML encoded output. #308

Merged
merged 10 commits into from
Jan 8, 2023

Conversation

laxmi-lal-menaria
Copy link
Contributor

Added a property which include the Long Name in Encoded XML

@laxmi-lal-menaria
Copy link
Contributor Author

How it can merge to master?

@milkshakeuk
Copy link
Member

@lmenaria I haven't had a chance to fully review the changes yet but I have noticed there are no unit tests, Can you add some unit test please, I'll hopefully get a chance to do a proper review soon.

Copy link
Member

@milkshakeuk milkshakeuk left a comment

Choose a reason for hiding this comment

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

Also @lmenaria not sure if you saw but there are a lot of static code analysis warnings which need fixing.

src/NHapi.Base/Parser/XMLParser.cs Outdated Show resolved Hide resolved
src/NHapi.Base/Parser/XMLParser.cs Outdated Show resolved Hide resolved
src/NHapi.Base/Parser/XMLParser.cs Outdated Show resolved Hide resolved
@milkshakeuk
Copy link
Member

@lmenaria have you seen this yet?

@laxmi-lal-menaria
Copy link
Contributor Author

yes, but how we can use parserOptions in those both methods,we need to pass or create private variable for it and assign?

what do you think?

@milkshakeuk
Copy link
Member

@lmenaria I would say pass it down, have a look at how the PipeParser uses it.

@github-actions
Copy link

github-actions bot commented Jul 9, 2022

Unit Test Results

1 372 tests   1 284 ✔️  4s ⏱️
       3 suites       88 💤
       3 files           0

Results for commit 6054823.

♻️ This comment has been updated with latest results.

@milkshakeuk
Copy link
Member

milkshakeuk commented Jul 11, 2022

@lmenaria a bunch of code style issues need fixing, see automated comments in PR.

Also I feel some of the xml doc comments need updating, from the scan I did anyway.

Also still no unit tests for these changes.

@milkshakeuk
Copy link
Member

@lmenaria still a bunch of static analysis warnings which need fixing:

image

@laxmi-lal-menaria
Copy link
Contributor Author

Fixed this warning.

@milkshakeuk
Copy link
Member

milkshakeuk commented Jul 19, 2022

@lmenaria hi, thanks for that, however that wasn't the only static code analysis warning, if you look through the Files Changed you will see more easy to fix warnings.

Also there are still no unit tests to cover the new functionality, could you please add the appropriate unit tests.

Thank you.

@laxmi-lal-menaria
Copy link
Contributor Author

Anything more need to do?

@milkshakeuk
Copy link
Member

Anything more need to do?

@laxmi-lal-menaria yes please, can you add appropriate unit tests for the new functionality.

@milkshakeuk milkshakeuk self-requested a review July 29, 2022 10:10
@milkshakeuk
Copy link
Member

@laxmi-lal-menaria did you notice the failed build?

@milkshakeuk
Copy link
Member

@laxmi-lal-menaria failed again.

@milkshakeuk
Copy link
Member

@milkshakeuk
Copy link
Member

@laxmi-lal-menaria
Copy link
Contributor Author

Testcases passed on Windows but not at ubuntu, I don't have any setup to fix that, if anyone can do it will be great help.

@milkshakeuk
Copy link
Member

@laxmi-lal-menaria I fixed the issues with your PR, not sure if we need more/better tests (better as in obviouse what the test is doing).

@milkshakeuk
Copy link
Member

@AMCN41R could you look at this? does it need anything more?

milkshakeuk added a commit that referenced this pull request Dec 23, 2022
* Port `hapi` version of `XMLParser` and `DefaultXMLParser` - `nHapi` versions of these were years behind `hapi`.
* Keep old implementations as `LegacyXMLParser` and `LegacyDefaultXMLParser` for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Dec 23, 2022
* Port `hapi` version of `XMLParser` and `DefaultXMLParser` - `nHapi` versions of these were years behind `hapi`.
* Keep old implementations as `LegacyXMLParser` and `LegacyDefaultXMLParser` for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Dec 23, 2022
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Dec 30, 2022
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Dec 30, 2022
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Dec 30, 2022
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Dec 31, 2022
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Jan 5, 2023
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Jan 5, 2023
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
milkshakeuk added a commit that referenced this pull request Jan 6, 2023
* Port hapi version of XMLParser and DefaultXMLParser - nHapi versions of these were years behind hapi.
* Keep old implementations as LegacyXMLParser and LegacyDefaultXMLParser for people or depend on old imperfect behaviour
* Add Unit tests for changes
* Fix some code styling warnings
* Improve XML Documentation
* Update some Nuget packages
* Unblocks #308
* Closes some Dependabot pull requests
Added a property which include the Long Name in Encoded XML
Make 'includeLongNameInEncodedXML' private.
Make this field 'private' and encapsulate it in a 'public' property.
Comments for ignoring error
Removed this initialization to '_includeLongNameInEncodedXML'
@milkshakeuk
Copy link
Member

@laxmi-lal-menaria okay I have rebased this PR based on what is now in master (makes this PR much smaller).

@AMCN41R @PhantomGrazzler could you give a quick once over - it's only a small PR.

src/NHapi.Base/Parser/ParserOptions.cs Outdated Show resolved Hide resolved
Moved IncludeLongNameInEncodedXml to ParserOptions, instead of public property.
Removed unused methods
Added summary for new variable
change new position
laxmi-lal-menaria and others added 4 commits January 6, 2023 15:47
Added Testcase for IncludeLongNameInEncodedXML.
Test Method for Encode
Test Method for Parser
Casting issue fix with new message
removed not supported property in every versions.
@milkshakeuk milkshakeuk merged commit c2d9c04 into nHapiNET:master Jan 8, 2023
@milkshakeuk milkshakeuk added this to the v3.2.0 milestone Jan 20, 2023
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.

Include the optional LongName attribute in the XML encoded output.
4 participants