Skip to content

Conversation

@rstam
Copy link
Contributor

@rstam rstam commented May 6, 2025

No description provided.

@rstam rstam requested review from adelinowona and sanych-sun May 6, 2025 19:01
@rstam rstam requested a review from a team as a code owner May 6, 2025 19:01
@rstam rstam added the bug Fixes issues or unintended behavior. label May 6, 2025
@rstam rstam removed the request for review from a team May 6, 2025 19:01
Copy link
Contributor

@adelinowona adelinowona left a comment

Choose a reason for hiding this comment

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

LGTM but I left a simple comment

{
throw new ExpressionNotSupportedException(expression, because: $"FilterDefinition TDocument type: {filterDefinitionDocumentType} does not match document type {documentSerializer.ValueType} ");
}
var serializerRegistry = BsonSerializer.SerializerRegistry;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: no need to store a var for serializerRegistry, we could just have BsonSerializer.SerializerRegistry directly where it is used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like to decouple as much as possible the SOURCE of the registry from the USE of it.

Intermediate variables are usually a good thing.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fair

Copy link
Member

@sanych-sun sanych-sun left a comment

Choose a reason for hiding this comment

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

LGTM

@rstam rstam merged commit fcbc397 into mongodb:main May 22, 2025
1 check was pending
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes issues or unintended behavior.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants