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

Upgrade mongo-java-driver to v2.14.0 #1749

Merged
merged 3 commits into from
Dec 29, 2015
Merged

Upgrade mongo-java-driver to v2.14.0 #1749

merged 3 commits into from
Dec 29, 2015

Conversation

eltimn
Copy link
Member

@eltimn eltimn commented Dec 26, 2015

Fixes #1747

We can't upgrade to the 3 series until we remove a few functions, which I've deprecated in this commit. This version is compatible with the latest server versions, so it should be sufficient for a while longer.

ObjectId.isValid(id) match {
case true => Full(set(new DBRef(dbo.get("$ref").toString, new ObjectId(id))))
case false => Full(set(new DBRef(dbo.get("$ref").toString, id)))
}
Copy link
Member

Choose a reason for hiding this comment

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

So can this no longer fail? I see we're going to a Full box always, but we weren't before I guess?

Copy link
Member Author

Choose a reason for hiding this comment

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

We used to have to fetch the DB, but DBRef no longer supports that. So, yeah, it will always beFull now. Not really sure how else to handle this.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, I think this is fine, just wanted to double-check.

@Shadowfiend
Copy link
Member

Looks good to me!

Shadowfiend added a commit that referenced this pull request Dec 29, 2015
Upgrade mongo-java-driver to v2.14.0

We can't upgrade to the 3 series until we remove a few
functions, which I've deprecated in this commit. This version
is compatible with the latest server versions, so it should be
sufficient for a while longer.
@Shadowfiend Shadowfiend merged commit 5b46a81 into master Dec 29, 2015
@Shadowfiend Shadowfiend deleted the tcn_issue_1747 branch December 29, 2015 20:46
@fmpwizard fmpwizard added this to the 3.0-M8 milestone Jan 28, 2016
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.

None yet

3 participants