Skip to content
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

DATAMONGO-1986 - Fix unmapped objects in aggregation pipeline. #564

Closed
wants to merge 2 commits into from

Conversation

christophstrobl
Copy link
Member

We now initialize a TypeBasedAggregationOperationContext for TypedAggregations no matter what. This makes sure that potential Criteria objects are run trough the QueryMapper.
In case the default context is used we now also make sure to at least run the aggregation pipeline through the QueryMapper to avoid passing on non MongoDB simple types to the drive

…or TypedAggregation

We now initialize a TypeBasedAggregationOperationContext for TypedAggregations no matter what. This makes sure that potential Criteria objects are run trough the QueryMapper.
In case the default context is used we now also make sure to at least run the aggregation pipeline through the QueryMapper to avoid passing on non MongoDB simple types to the driver.
mp911de pushed a commit that referenced this pull request Jun 6, 2018
…or TypedAggregation.

We now initialize a TypeBasedAggregationOperationContext for TypedAggregations if no context is provided. This makes sure that potential Criteria objects are run trough the QueryMapper.
In case the default context is used we now also make sure to at least run the aggregation pipeline through the QueryMapper to avoid passing on non MongoDB simple types to the driver.

Original pull request: #564.
mp911de added a commit that referenced this pull request Jun 6, 2018
Refactor duplicated code into AggregationUtil.

Original pull request: #564.
mp911de pushed a commit that referenced this pull request Jun 6, 2018
…or TypedAggregation.

We now initialize a TypeBasedAggregationOperationContext for TypedAggregations if no context is provided. This makes sure that potential Criteria objects are run trough the QueryMapper.
In case the default context is used we now also make sure to at least run the aggregation pipeline through the QueryMapper to avoid passing on non MongoDB simple types to the driver.

Original pull request: #564.
mp911de added a commit that referenced this pull request Jun 6, 2018
Refactor duplicated code into AggregationUtil.

Original pull request: #564.
mp911de pushed a commit that referenced this pull request Jun 6, 2018
…or TypedAggregation.

We now initialize a TypeBasedAggregationOperationContext for TypedAggregations if no context is provided. This makes sure that potential Criteria objects are run trough the QueryMapper.
In case the default context is used we now also make sure to at least run the aggregation pipeline through the QueryMapper to avoid passing on non MongoDB simple types to the driver.

Original pull request: #564.
mp911de added a commit that referenced this pull request Jun 6, 2018
Refactor duplicated code into AggregationUtil.

Original pull request: #564.
@mp911de
Copy link
Member

mp911de commented Jun 6, 2018

That's merged, polished, and backported now.

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.

None yet

2 participants