Skip to content

Conversation

@DmitryLukyanov
Copy link
Owner

No description provided.

@DmitryLukyanov DmitryLukyanov changed the base branch from master to csharp4153 May 19, 2022 17:18
encryptedFieldsMap: encryptedFieldsBytes,
schema: schemaBytes,
bypassQueryAnalysis: _bypassQueryAnalysis.GetValueOrDefault(false),
csfleLibPath: "",
Copy link
Owner Author

Choose a reason for hiding this comment

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

temporary values

@JamesKovacs JamesKovacs removed their request for review May 19, 2022 21:38
Copy link
Collaborator

@BorisDog BorisDog left a 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);
Copy link
Collaborator

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?

Copy link
Owner Author

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

@DmitryLukyanov DmitryLukyanov changed the base branch from csharp4153 to master May 31, 2022 00:24
@DmitryLukyanov DmitryLukyanov changed the base branch from master to csharp4153 May 31, 2022 00:24
## 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.
Copy link
Owner Author

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
Copy link
Owner Author

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>
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link
Owner Author

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;
Copy link
Owner Author

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

@DmitryLukyanov DmitryLukyanov requested a review from BorisDog May 31, 2022 01:23
@DmitryLukyanov DmitryLukyanov merged commit 5438b1a into csharp4153 Jun 2, 2022
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.

4 participants