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

Use official mongodb driver #1745

Merged
merged 3 commits into from
Aug 31, 2021

Conversation

carolynvs
Copy link
Member

What does this change

I used the mgo driver (because it's easier to use) but it doesn't support the newer version of mongodb (4+) and also doesn't support the newer connection string format used exclusively by mongodb atlas (mongo's cloud offering for mongodb, its freee 💸 soooooooooo, we are totes gonna support it).

What issue does it fix

Now I can do my kubecon demo using a cloud database that I don't have to pay for or keep updated myself. Huzzah!

Notes for the reviewer

Sorry for not biting the bullet and just using the official driver when I first implemented this. The driver honestly isn't as easy to use but luckily most of the changes necessary are in just a few spots.

Checklist

  • Unit Tests
  • Documentation
  • Schema (porter.yaml)

@carolynvs carolynvs force-pushed the change-mongodb-driver branch 5 times, most recently from 298865f to fecb2f4 Compare August 27, 2021 20:14
@carolynvs carolynvs marked this pull request as ready for review August 27, 2021 20:14
@carolynvs
Copy link
Member Author

/azp run porter-integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@vdice vdice left a comment

Choose a reason for hiding this comment

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

Sweet!

I used the mgo driver (because it's easier to use) but it doesn't
support the newer version of mongodb (4+) and also doesn't support the
newer connection string format used exclusively by mongodb atlas
(mongo's cloud offering for mongodb, its freee soooooooooo, we are totes
gonna support it).

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
* A couple tests weren't calling teardown
* Fix connection leak with the test database plugin
* Make timeout configurable so that if someone is on a slow machine,
they can wait longer.

Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs carolynvs force-pushed the change-mongodb-driver branch from fecb2f4 to aa00571 Compare August 29, 2021 18:33
Signed-off-by: Carolyn Van Slyck <me@carolynvanslyck.com>
@carolynvs
Copy link
Member Author

/azp run porter-integration

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@carolynvs
Copy link
Member Author

@vdice Can you take one more look? I found a connection leak when running the tests, so I added 2 more commits.

Copy link
Member

@vdice vdice left a comment

Choose a reason for hiding this comment

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

LGTM

@carolynvs carolynvs merged commit ec46800 into getporter:release/v1 Aug 31, 2021
@carolynvs carolynvs deleted the change-mongodb-driver branch August 31, 2021 18:11
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.

2 participants