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

Migrate the MongoDB data services to MongoDB driver 4.9.1 #3859

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Bhashinee
Copy link
Member

@Bhashinee Bhashinee commented Jan 7, 2025

Purpose

This is to migrate the MongoDB data services to 4.9.1.
Related issue: #3853

Improvement

  • Update the driver version to 4.9.1 and revamp the code. This includes adding mongodb-driver-sync, mongodb-driver-core and adding bson instead of Jongo library.

Testing

MongoDB configs(Check whether the configs are set properly in Mongo Client)

  • mongoDB_read_preference
  • mongoDB_ssl_enabled
  • mongoDB_write_concern
  • mongoDB_connectTimeout
  • mongoDB_maxWaitTime
  • mongoDB_socketTimeout
  • mongoDB_connectionsPerHost

Operations that are supported by data services - REST

  • Find
  • FindOne (Need to test with query and without query {})
  • insert
  • Count
  • Drop
  • Remove
  • Exists
  • Update

Operations that are supported by data services - SOAP

  • Find
  • FindOne (Need to test with query and without query {})
  • insert
  • Count
  • Drop
  • Remove
  • Exists
  • Update

Odata

  • Get service document
  • Read metadata of the service
  • Read details from the project service
  • Read individual record
  • Add a new record to table
  • Delete record
  • Update record
  • Top option
  • count option
  • orderby option

Test with connector

  • Test data services along with MongoDB connector

@Bhashinee Bhashinee marked this pull request as ready for review January 8, 2025 06:18
@Bhashinee Bhashinee requested a review from rosensilva as a code owner January 8, 2025 06:18
pom.xml Outdated

<jongo.orbit.version>1.4.0.wso2v1</jongo.orbit.version>
<jongo.orbit.imp.pkg.version>[1.4,1.5)</jongo.orbit.imp.pkg.version>
<mongodb-driver-sync.orbit.version>4.9.1</mongodb-driver-sync.orbit.version>
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we using an orbit for the new version? If not let's rename this without orbit

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed with 2a5b752

LICENSE.txt Outdated
@@ -4,342 +4,344 @@ can be downloaded from the following locations:
http://www.apache.org/licenses/LICENSE-2.0.txt

This product also contains software under different licenses. This table below
all the contained libraries (jar files) and the license under which they are
all the contained libraries (jar files) and the license under which they are
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's not change this file.This has to be generated.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed with 354ec26

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.

3 participants