GoodDollar / GoodServer

Backend to support the GoodDAPP
MIT License
13 stars 12 forks source link

(Chore) Prepare apps to MongoDB 7 #443

Open johnsmith-gooddollar opened 8 months ago

johnsmith-gooddollar commented 8 months ago

GoodServer (?)

GoodWallet (?)

Hi Hadar,

Your M0/M2/M5 Atlas cluster(s) will be automatically upgraded to MongoDB 7.0 in February 2024.

What’s in the update? MongoDB 7.0 introduces new features and improvements such as: Compound wildcard indexes New aggregation operators such as $median and $percentile Queryable Encryption (now Generally Available)

What do I need to do? To ensure a seamless transition, we recommend updating your driver version to ensure continued compatibility with your applications. If your applications are compatible with MongoDB version 7.0, no downtime is expected for your applications. Visit our Docs to see compatibility changes in 7.0, determine which driver versions are compatible with 7.0, and download the latest version.

While most upgrades do not require any application changes, if you are concerned about compatibility we recommend exploring the Stable API.

Not ready? You can upgrade to a dedicated Atlas cluster for more flexibility and control over when major version updates and maintenance are performed, as well as gain access to premium features like point-in-time restore capabilities, automated data archival, schema recommendations, unrestricted Atlas search indexes and more.

johnsmith-gooddollar commented 8 months ago

@sirpy not sure I understood 100% correctly - does it relate Mongo instances used by GoodServer ? or it relates to the RealmDB used by wallet ? or both ?

sirpy commented 8 months ago

both. but in realmdb i dont think we use mongo drivers directly.

johnsmith-gooddollar commented 7 months ago

@L03TJ3 at the wallet side we use realmdb/mongo at src/lib/realmdb/RealmDB.js. I see it uses a simple r/w operations only but we need to check https://www.mongodb.com/docs/manual/release-notes/7.0-compatibility/ and make sure we don't use anything of been changed (or adjust usage)

johnsmith-gooddollar commented 7 months ago

For GoodServer we need to investigate whole app. But we're using mongoose as an wrapper so I think we need just make sure our version is compatible with mongo 7 or update to the latest one. Most probably it would be enough