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 latest version of MongoDB API for v5.1+ compatibility #544

Merged
merged 3 commits into from
Aug 14, 2023

Conversation

Geod24
Copy link
Member

@Geod24 Geod24 commented Jun 25, 2023

Diff is pretty simple. Tested locally with MongoDB v6.0.6 on Ubuntu 22.04.
Needs a new release of Vibe.d to work.

@Geod24 Geod24 requested a review from WebFreak001 June 25, 2023 17:44
Copy link
Member

@WebFreak001 WebFreak001 left a comment

Choose a reason for hiding this comment

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

just some comments about the index API usage

source/dubregistry/dbcontroller.d Outdated Show resolved Hide resolved
source/dubregistry/cache.d Outdated Show resolved Hide resolved
@Geod24
Copy link
Member Author

Geod24 commented Jun 25, 2023

Updated with review, definitely better, thanks!

@Geod24 Geod24 force-pushed the update-mongodb branch 2 times, most recently from 7bbb97e to 7074d1a Compare June 25, 2023 21:46
@Geod24
Copy link
Member Author

Geod24 commented Jun 25, 2023

Added a few more places I originally missed, should be all good now.

m_packages.ensureIndex([tuple("stats.score", 1)]);
m_downloads.ensureIndex([tuple("package", 1), tuple("version", 1)]);
IndexOptions opt;
opt.unique = true;
Copy link
Member

Choose a reason for hiding this comment

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

want to fix the mixed tabs and spaces here? otherwise LGTM

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes thx. Done.

@Geod24
Copy link
Member Author

Geod24 commented Jun 26, 2023

Okay this needs a new version of Vibe.d to merge, will look into it today.

@WebFreak001
Copy link
Member

you get my approval after dependency bump then

@WebFreak001
Copy link
Member

@Geod24 got new version released yet?

@WebFreak001
Copy link
Member

thanks for version bump @s-ludwig

@WebFreak001 WebFreak001 merged commit 5951071 into dlang:master Aug 14, 2023
2 checks passed
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