-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add Scala Client Bulk Write API. #1603
base: main
Are you sure you want to change the base?
Conversation
JAVA-5531
@@ -20,7 +20,6 @@ import java.util.concurrent.TimeUnit | |||
import _root_.scala.concurrent.duration.Duration | |||
import com.mongodb.{ MongoCredential => JMongoCredential } | |||
import org.bson.BsonDocumentWrapper | |||
import org.bson.codecs.DocumentCodec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The import was unused, therefore it was removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Could you add a ticket so that check
catches these or spotless
removes them when auto formatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! The ticket is created: JAVA-5765.
JAVA-5531
JAVA-5531
There are still two |
JAVA-5531
Good catch! Removed, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good - found a couple of nits and added a couple of suggestions for scala check tickets to be filed.
@@ -0,0 +1,244 @@ | |||
package org.mongodb.scala.model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!Missing license header (this should be picked up by checkstyle if not could you open a ticket to ensure that it is in the future).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Added, thanks!
/** | ||
* A model for inserting a document. | ||
* | ||
* @since 5.4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need @since
for the methods if the object declares it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially, I thought it would be more informative for users inspecting the documentation. However, to align with the usual pattern in the docs, I’ve removed it. Thanks!
* The result of an unsuccessful or partially unsuccessful client-level bulk write operation. | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* The result of an unsuccessful or partially unsuccessful client-level bulk write operation. | |
*/ | |
* The result of an unsuccessful or partially unsuccessful client-level bulk write operation. | |
* @since 5.4 | |
*/ |
@@ -20,7 +20,6 @@ import java.util.concurrent.TimeUnit | |||
import _root_.scala.concurrent.duration.Duration | |||
import com.mongodb.{ MongoCredential => JMongoCredential } | |||
import org.bson.BsonDocumentWrapper | |||
import org.bson.codecs.DocumentCodec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Could you add a ticket so that check
catches these or spotless
removes them when auto formatting?
JAVA-5531
JAVA-5531