telefonicaid / fiware-cygnus

A connector in charge of persisting context data sources into other third-party databases and storage systems, creating a historical view of the context
https://fiware-cygnus.rtfd.io/
GNU Affero General Public License v3.0
64 stars 104 forks source link

FIX - Replace MongoClientOptions to MongoClientUri in mongoClient of Mongo/STHSinks #2387 #2402

Closed kumardeepak5 closed 2 months ago

kumardeepak5 commented 3 months ago

@AlvaroVega , PR is ready to review.

Edit: issue #2402

Related issue https://github.com/telefonicaid/fiware-cygnus/issues/2387

AlvaroVega commented 3 months ago

This PR sounds goods to me, but not sure we can introduce this breaking change keeping old options (mongo_hosts, mongo_username, mongo_password, mongo_auth_source, mongo_replica_set) at the first time and removing then in a future.

fgalan commented 3 months ago

This PR sounds goods to me, but not sure we can introduce this breaking change keeping old options (mongo_hosts, mongo_username, mongo_password, mongo_auth_source, mongo_replica_set) at the first time and removing then in a future.

I agree. Similar to what we do in Orion, deprecating mongo CLI options in release 3.12.0 (but still supported) and removing definitively in a next version 4.0.0.

In this sense:

[cygnus-common][cygnus-ngsi] New setting mongo_uri (#2402)
[cygnus-common][cygnus-ngsi] Deprecate (mongo_hosts, mongo_username, mongo_password, mongo_auth_source, mongo_replica_set) (use mongo_uri instead)
kumardeepak5 commented 3 months ago

@AlvaroVega, @fgalan Please Review PR.