Skip to content

Update lift-mongodb and lift-mongodb-record for deprecations in the m… - #1984

Merged
eltimn merged 2 commits into
masterfrom
tcn_issue_1830b
Jul 20, 2020
Merged

Update lift-mongodb and lift-mongodb-record for deprecations in the m…#1984
eltimn merged 2 commits into
masterfrom
tcn_issue_1830b

Conversation

@eltimn

@eltimn eltimn commented Jul 2, 2020

Copy link
Copy Markdown
Member

…ongo-java-driver. Enable Scala 2.13 for lift-mongodb and lift-mongodb-record.

Fixes #1830
Supercedes #1977

Since there haven't been any replies to my ml thread about the async parts I've chosen to deprecate them. If someone comes along later and wants to use them we can update them at that point.

I'm running this locally with my app (rotozen.com) and all is working ok. I'll be testing it for a few more days since the app does different things depending on the day of the week.

…ongo-java-driver. Enable Scala 2.13 for lift-mongodb and lift-mongodb-record.

@farmdawgnation farmdawgnation left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is a lot of code for one PR but I trust you. 😅

import org.bson.codecs.BsonTypeClassMap
import org.bson.codecs.configuration.CodecRegistry

object MongoRecordRules extends SimpleInjector {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some Scaladoc here would be helpful for folks just trying to figure out what this is at the class level.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good idea. I added a short description.

@eltimn

eltimn commented Jul 20, 2020

Copy link
Copy Markdown
Member Author

I'm going to close and re-open this to trigger a travis build.

@eltimn eltimn closed this Jul 20, 2020
@eltimn eltimn reopened this Jul 20, 2020
@eltimn

eltimn commented Jul 20, 2020

Copy link
Copy Markdown
Member Author

Ok, I think we're good.

@eltimn
eltimn merged commit e145561 into master Jul 20, 2020
@eltimn
eltimn deleted the tcn_issue_1830b branch July 20, 2020 17:12
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.

Deprecate use of com.mongodb.DBObject

3 participants