Closed mc-jones closed 5 months ago
Attention: 30 lines
in your changes are missing coverage. Please review.
Comparison is base (
a883d29
) 83.6% compared to head (22b08ac
) 83.5%. Report is 2 commits behind head on main.
I'm not sure what to do with the blocking codecove issues as nothing has changed about test coverage.
Oh shoot. Forgot the co-authored by @ovasdi!
Oh shoot. Forgot the co-authored by @ovasdi!
You did all the heavy lifting on this 💪, but thanks!
random comment to say that's a v high quality and descriptive pr description
@ovasdi - I've taken the draft status off, so merge at will. The codecov failure is not helpful in this instance as there have been no changes to code coverage. Discussed a bit here 🔒 .
@ovasdi - I've taken the draft status off, so merge at will. The codecov failure is not helpful in this instance as there have been no changes to code coverage. Discussed a bit here 🔒 .
Re-running failed check to see what happens. Mostly curious.
@ovasdi - I've taken the draft status off, so merge at will. The codecov failure is not helpful in this instance as there have been no changes to code coverage. Discussed a bit here 🔒 .
Re-running failed check to see what happens. Mostly curious.
Re-running the failed check does not seem to be working.
This PR:
test.yml
anddevelopment.yml
yamls to usemongodb@5.0.23
.mongojs
library and replaces it with the nativemongodb
driver. It also makes the necessary changes to CRUD operations.Problem
On February 29th (leap year), MongoDB will auto-upgrade our Atlas clusters to
5.0
due to version4.4
being at its EOL date. Positron is currently using version4.4
.Solution
To avoid unnecessary disruptions, this PR updates
positron
to use version5
in itsdevelopment
andtest
environments. It also replaces themongojs
library, which is unmaintained, with the nativemongodb
driver at version4.10
.The
4.10
driver is compatible up tomongodb@6.0
(inclusive).Migration
We will be bumping the
staging
atlas cluster and monitoring affected services for about a week. If there are no issues, we will bump theproduction
cluster.Considerations
mongodb
operations. However, the operation functions are not 1:1. For example,mongodb
does not have asave
function. I've used the tests to guide the work and pick the correct operation, but we should spot-check the work to make sure no incorrect assumptions were made about the business logic.node
at the same time, as I don't think it will require too many changes. But I didn't want to do too much at once, so I may follow up with anode
bump once this is inproduction
.PHIRE-544