-
Notifications
You must be signed in to change notification settings - Fork 0
CSHARP-4157: Add FLE 2 API to ClientEncryptionOpts. #174
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
Conversation
| encryptedFieldsMap: encryptedFieldsBytes, | ||
| schema: schemaBytes, | ||
| bypassQueryAnalysis: _bypassQueryAnalysis.GetValueOrDefault(false), | ||
| csfleLibPath: "", |
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.
temporary values
ebd413f to
b742ef7
Compare
BorisDog
left a comment
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.
LGTM (see minor comment)
|
|
||
| if (autoEncryptionOptionsConfigurator != null) | ||
| { | ||
| configuredSettings.AutoEncryptionOptions = autoEncryptionOptionsConfigurator?.Invoke(configuredSettings.AutoEncryptionOptions); |
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.
minor: it's either autoEncryptionOptionsConfigurator != null or autoEncryptionOptionsConfigurator?
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 point. This one actually sets options to null if configurator is null. Removed unnecessary ? part
…ator and partialFilterExpression.
4c2b964 to
fc100a1
Compare
| ## Collections | ||
|
|
||
| These operations exists on the [`IMongoDatabase`]({{< apiref "T_MongoDB_Driver_IMongoDatabase" >}}) interface. | ||
| These operations exist on the [`IMongoDatabase`]({{< apiref "T_MongoDB_Driver_IMongoDatabase" >}}) interface. |
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.
cherrypicked from master to make tests passed
| /// <value> | ||
| /// The clustered index definition. | ||
| /// </value> | ||
| public BsonDocument ClusteredIndex |
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.
cherrypicked from master to make tests passed
| /// <summary> | ||
| /// Options for creating a clustered index. | ||
| /// </summary> | ||
| public class ClusteredIndexOptions<TDocument> |
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.
cherrypicked from master to make tests passed
| /// <summary> | ||
| /// Gets or sets the <see cref="ClusteredIndexOptions{TDocument}"/>. | ||
| /// </summary> | ||
| public ClusteredIndexOptions<TDocument> ClusteredIndex |
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.
cherrypicked from master to make tests passed
| var documentType = options.GetType().GetTypeInfo().GetGenericArguments()[0]; | ||
| var methodInfo = genericMethodDefinition.MakeGenericMethod(documentType); | ||
| methodInfo.Invoke(this, new object[] { session, name, options, cancellationToken }); | ||
| try |
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.
we have asserting on particular exception that is hidden over TargetInvocationException. This logic of course it's better to be rewritten on some day..
| var documentSerializer = options.DocumentSerializer ?? serializerRegistry.GetSerializer<TDocument>(); | ||
| validator = options.Validator.Render(documentSerializer, serializerRegistry, _linqProvider); | ||
| } | ||
| var serializerRegistry = options.SerializerRegistry ?? BsonSerializer.SerializerRegistry; |
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.
cherrypicked from master to make tests passed
CSHARP-4190: Rename csfle shared library references
No description provided.