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

[master] Use toJson method from data.jsondata module in http client and service #2204

Merged
merged 30 commits into from
Nov 6, 2024

Conversation

lnash94
Copy link
Member

@lnash94 lnash94 commented Nov 3, 2024

Purpose

Fix: ballerina-platform/ballerina-library#7012
ballerina-platform/ballerina-library#7011

Client data binding integration: ballerina-platform/ballerina-library#6747
Service data binding integration: ballerina-platform/ballerina-library#7011

Disable the below test because the data.json data module currently does not support the table types
and enable tests once these issues are fixed.

  1. Related issue : Support table type for ParserAsType method in data.json module  ballerina-library#7020
  • testIntTableDatabinding()
  • testIntTableOrXmlArrayDatabinding()
  • testIntTableDatabindingByType()
  • testStringTableDatabinding()
  • testStringTableDatabindingByType()
  • testRecordTableDatabinding()
  • testRecordTableDatabindingByType()
  • testByteArrTableDatabinding()
  • testByteArrTableDatabindingByType()
  1. Related issue Jsondata moduel toJson is hanging with the CyclicValueReferenceError error ballerina-library#7326
  • testResponseAnydataNegative()
  • testRequestAnydataNegative()

The issue for tracking the disabled tests: ballerina-platform/ballerina-library#7021

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility
  • Checked the impact on OpenAPI generation

Dependent PR : ballerina-platform/module-ballerina-data.jsondata#35 once this is merged , test can be added with new data.jsondata timestamp

Closed PR : #2151

@lnash94
Copy link
Member Author

lnash94 commented Nov 4, 2024

Attached the reported issues for jsondata module regarding this migration for tracking the fixes. https://github.com/ballerina-platform/ballerina-library/issues?q=+label%3Amodule%2Fdata.jsondata+author%3Alnash94+

@lnash94 lnash94 force-pushed the integrate-data.json-2 branch from 3c2602e to 210b030 Compare November 4, 2024 05:16
@lnash94 lnash94 marked this pull request as ready for review November 4, 2024 05:54
ballerina/http_client_payload_builder.bal Outdated Show resolved Hide resolved
ballerina/http_client_payload_builder.bal Outdated Show resolved Hide resolved
ballerina/http_client_payload_builder.bal Outdated Show resolved Hide resolved
ballerina/http_request.bal Outdated Show resolved Hide resolved
native/build.gradle Show resolved Hide resolved
ballerina/http_client_payload_builder.bal Outdated Show resolved Hide resolved
@lnash94 lnash94 requested a review from TharmiganK November 5, 2024 11:26
…s.java

Co-authored-by: Krishnananthalingam Tharmigan <63336800+TharmiganK@users.noreply.github.com>
Copy link

sonarqubecloud bot commented Nov 6, 2024

Copy link
Contributor

@TharmiganK TharmiganK left a comment

Choose a reason for hiding this comment

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

LGTM

@lnash94 lnash94 merged commit d375c3b into ballerina-platform:master Nov 6, 2024
6 checks passed
@lnash94 lnash94 changed the title [master] Use toJson method from data.jsondata module in http client [master] Use toJson method from data.jsondata module in http client and service Nov 6, 2024
@lnash94 lnash94 deleted the integrate-data.json-2 branch November 6, 2024 13:47
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.

Integrate toJson method from data.jsondata module in http client
3 participants