-
Notifications
You must be signed in to change notification settings - Fork 43
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
Switch to jackson library from org.json #272
Conversation
Codecov Report
@@ Coverage Diff @@
## master #272 +/- ##
============================================
- Coverage 54.48% 54.11% -0.38%
- Complexity 565 575 +10
============================================
Files 95 96 +1
Lines 3232 3284 +52
Branches 307 340 +33
============================================
+ Hits 1761 1777 +16
- Misses 1349 1368 +19
- Partials 122 139 +17
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
data/src/main/java/com/microsoft/azure/kusto/data/ClientImpl.java
Outdated
Show resolved
Hide resolved
data/src/main/java/com/microsoft/azure/kusto/data/ClientImpl.java
Outdated
Show resolved
Hide resolved
data/src/main/java/com/microsoft/azure/kusto/data/ClientImpl.java
Outdated
Show resolved
Hide resolved
ingest/src/test/java/com/microsoft/azure/kusto/ingest/E2ETest.java
Outdated
Show resolved
Hide resolved
data/src/main/java/com/microsoft/azure/kusto/data/exceptions/DataWebException.java
Outdated
Show resolved
Hide resolved
data/src/test/java/com/microsoft/azure/kusto/data/KustoDateTimeTest.java
Outdated
Show resolved
Hide resolved
data/src/test/java/com/microsoft/azure/kusto/data/KustoDateTimeTest.java
Show resolved
Hide resolved
quickstart/src/main/java/com/microsoft/azure/kusto/quickstart/SampleApp.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a risky change - make sure its not breaking.
Also maybe we should also add a test for the nested exception (an exception parsed in the middle of the execution with EXCEPTIONS_PROPERTY_NAME)
data/src/main/java/com/microsoft/azure/kusto/data/KustoOperationResult.java
Show resolved
Hide resolved
data/src/main/java/com/microsoft/azure/kusto/data/KustoResultSetTable.java
Outdated
Show resolved
Hide resolved
data/src/main/java/com/microsoft/azure/kusto/data/KustoResultSetTable.java
Show resolved
Hide resolved
data/src/main/java/com/microsoft/azure/kusto/data/KustoOperationResult.java
Outdated
Show resolved
Hide resolved
data/src/main/java/com/microsoft/azure/kusto/data/KustoResultSetTable.java
Show resolved
Hide resolved
…re-kusto-java into feature/switchTojacksonForJson
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, just fix the one thing
data/src/main/java/com/microsoft/azure/kusto/data/ClientRequestProperties.java
Outdated
Show resolved
Hide resolved
@microsoft-github-policy-service agree company="Microsoft" |
@microsoft-github-policy-service agree |
@microsoft-github-policy-service agree company="Microsoft" |
@microsoft-github-policy-service agree company="Microsoft" |
@microsoft-github-policy-service agree |
* switch to jackson for json * added formatter * fixed failing test cases * fixed testcases * ran formatter * added jackson-core to pom * fixed json string * fixed string conversion * bumped release version * bumped up release version * addressed Ram's review comments * formatter changes * refactored object mapper * addressed Ram's review comments * formatter changes * changes done as per Ohad's comments * added exception testcase for ResultSetTest * added bigdecimal for precision in decimal values * added comment for bigdecimal deserilaization * made options and parameters mandatory in tojson * fixed test case * accept cla * added formatter * commit for cla Co-authored-by: AsafMah <[email protected]> (cherry picked from commit c3bc043)
Pull Request Description
org.json:json is used for json parsing and reading capabilities
But org.json:json uses a non-free JSON license, which has already been banned by
Apache Software Foundation.
Debian
Hence org.json dependency is enforced as banned dependency in apache-nifi base pom.xml.
Considering this org.json needs to be removed and replaced with com.fasterxml.jackson
Future Release Comment
[Add description of your change, to include in the next release]
[Delete any or all irrelevant sections, e.g. if your change does not warrant a release comment at all]
Breaking Changes:
Features:
Fixes: