artsy / positron

Positron is Artsy Writer or the editorial tool and API for Artsy.
MIT License
85 stars 42 forks source link

feat: setup, test and dev uses mongodb 4.2 #3031

Closed ovasdi closed 2 years ago

ovasdi commented 2 years ago

https://artsyproduct.atlassian.net/browse/PLATFORM-3942

In preparation for upgrading Mongo Atlas staging/prod to 4.2 this CL updates both test and development compose configuration files to use mongodb v4.2.

Note that the test suite passed using mongodb 4.2 image. I have also validated by standing up local dev via hokusai dev start and executing CRUD actions using a test article.

This CL also updates the Brewfile to install mongodb-community@4.2 which will require developers to re-run setup script. Unfortunately during testing we have experienced some issues with having both versions running and so to streamline the process our recommendation is to:

# remove 4.0
brew uninstall mongodb-community@4.0

# delete the mongo data directories and files
rm -rf /usr/local/var/mongodb/*

# re-run setup
scripts/setup.sh

This PR will be merged along with Kaws and Gravity PRs followed by an announcement that those contributors working in these projects need to remove v4.0, clean local mongo data and rerun setup scripts.