Mark Paluch
8e4e1d5a8e
Retain Field Lookup Policy when exposing aggregation fields.
...
Introduce FieldLookupPolicy and methods to create field-exposing/inheriting AggregationOperationContexts.
Move off RelaxedTypeBasedAggregationOperationContext.
See #4714
Original pull request: #4720
2 years ago
Christoph Strobl
c7c84cbc41
Configure relaxed/strict field lookup when creating `AggregationOperationContext`.
...
Closes #4714
Original pull request: #4720
2 years ago
Mark Paluch
6167f63485
Polishing.
...
Simplify reactive composition. Switch to eager operator evaluation.
See #4712
Original pull request: #4717
2 years ago
Christoph Strobl
6437640b1b
Avoid multiple converter calls when parsing string aggregation stages.
...
Parsing of string based aggregations lead to multiple invocations of potential converters due to missing reuse of bound parameter value as well as attempts to verify out/merge stages within the pipeline that triggered the stage to be converted into the target document.
The changes in this commit, reduce the number down to 2. One for examining potential expression dependencies and one for the actual conversion and parameter binding.
See #4712
Original pull request: #4717
2 years ago
Mark Paluch
966277ee24
Polishing.
...
Reformat code, revise nullability declarations.
See #4709
Original pull request: #4721
2 years ago
Christoph Strobl
9752ebac27
Apply type conversion to id types.
...
This commit makes sure to convert the generated query into the target type.
Closes #4709
Original pull request: #4721
2 years ago
Mark Paluch
b252da5d45
Polishing.
...
Invert types to retain check to avoid double negation.
See #4674
Original pull request: #4718
2 years ago
Christoph Strobl
fd13c12817
Fix conversion of regular expression in queries.
...
This commit fixes an issue where patterns targeting id properties might have been falsely converted into the properties type, turning a Pattern into it's string representation.
Closes #4674
Original pull request: #4718
2 years ago
Mark Paluch
7959fc0905
Prepare next development iteration.
...
See #4689
2 years ago
Mark Paluch
1c4243cf63
Release version 4.2.6 (2023.1.6).
...
See #4689
2 years ago
Mark Paluch
a819a5e9e4
Polishing.
...
Add missing Override annotations. Remove superfluous final keywords.
Original Pull Request: #4699
2 years ago
Mark Paluch
7f1c66e2d6
Use collection name instead type to look up the collection for index creation.
...
Closes : #4698
Original Pull Request: #4699
2 years ago
Mark Paluch
9c996ccf51
Polishing.
...
Reformat code. Remove superfluous warning suppressions.
See #4687
Original pull request: #4695
2 years ago
Christoph Strobl
c7800a6549
Fix NPE when rendering untyped aggregation operation as part of criteria query.
...
Resolves : #4687
Original pull request: #4695
2 years ago
Mark Paluch
2e84755ef1
Prepare next development iteration.
...
See #4661
2 years ago
Mark Paluch
b8eb49d942
Release version 4.2.5 (2023.1.5).
...
See #4661
2 years ago
Mark Paluch
37dae78ab8
Polishing.
...
Add Override annotations and comment why we optimize.
See #4612
Original pull request: #4613
2 years ago
Christoph Strobl
e2397450b0
Polishing.
...
Wrap no results predicate in dedicated lookup filter and make sure to omit loading attempt also for map properties.
See #4612
Original pull request: #4613
2 years ago
Stefan Bildl
4ec995f9c8
Skip reference lookup when DocumentReference resolves to an empty collection.
...
Fixes #4612
Original pull request: #4613
2 years ago
Mark Paluch
37aaf53658
Polishing.
...
Consistent log field ordering, serialize sort safely.
See #4686
Original pull request: #4679
2 years ago
Henry Kim
93a5295085
Add sort to query debug logging.
...
Closes #4686
Original pull request: #4679
2 years ago
Christoph Strobl
65c58fd404
Polishing.
...
Move auto index create lookup flag to dedicated method and add issue reference to tests.
Original Pull Request: #4275
2 years ago
Tomasz Forys
b0beb3e79d
Allow to override auto index creation flag via XML configuration.
...
Closes : #4275
2 years ago
Mark Paluch
2c946a1074
Use write locks for write guards instead of read locks.
...
Closes #4665
2 years ago
Mark Paluch
fb30ef6ff4
Prepare next development iteration.
...
See #4642
2 years ago
Mark Paluch
b8b93bcf93
Release version 4.2.4 (2023.1.4).
...
See #4642
2 years ago
Mark Paluch
7b58855fd6
Skip value conversion of `Pattern` and `BsonRegularExpression` in `QueryMapper`.
...
QueryMapper no longer attempts to convert regex objects when a field has an explicit write target.
Closes #4649
2 years ago
Mark Paluch
26d38c8a06
Apply `AggregationOptions.maxTime` to `MongoTemplate.aggregateStream()`.
...
Closes #4644
2 years ago
Mark Paluch
dfc215214e
Prepare next development iteration.
...
See #4611
2 years ago
Mark Paluch
5fe118aa4b
Release version 4.2.3 (2023.1.3).
...
See #4611
2 years ago
Christoph Strobl
1ca64d9052
Expose server version to build cache.
...
Original pull request: #4633
Closes : #4631
2 years ago
Mark Paluch
f60f0cd306
Read DTO projection properties only once.
...
We ensure to not read DTO properties multiple times if these are already read by their persistence creator.
Closes #4626
2 years ago
Mark Paluch
2b6d07ab7f
Make `MongoHandlerContext` public to leverage contextual information to customize `Observation`s.
...
Closes #4622
2 years ago
Jongwoo Han
aa5bc4913a
Fix typo in Javadoc.
...
Closes #4620
2 years ago
Christoph Strobl
48b26368af
Avoid duplicate context nesting to properly convert nested projections.
...
Closes : #4609
Original pull request: #4616
2 years ago
Mark Paluch
ed0ad89a9c
Prepare next development iteration.
...
See #4595
2 years ago
Mark Paluch
a975971a41
Release version 4.2.2 (2023.1.2).
...
See #4595
2 years ago
Mark Paluch
f83f2c539d
Extend license header copyright years to 2024.
...
See #4603
2 years ago
Mark Paluch
9d04893e00
Prepare next development iteration.
...
See #4561
2 years ago
Mark Paluch
7c017bf28f
Release version 4.2.1 (2023.1.1).
...
See #4561
2 years ago
Christoph Strobl
45ea9e0884
Add test to verify map keys retain order when mapped.
...
See: #4577
Original pull request: #4568
2 years ago
Christoph Strobl
17e8837981
Fix NPE when traversing map.
...
We now use regular iteration instead of the Stream API.
Closes : #4567
Original pull request: #4568
2 years ago
Mark Paluch
69e1795f46
Fix Query equality test considering Limit.
...
Closes #4584
2 years ago
Mark Paluch
4aec4f33e6
Polishing.
...
Refactor fixture creation for easier readability. Tweak documentation wording.
See #4571
Original pull request: #4574
2 years ago
Christoph Strobl
97433d0f57
Document list/map/set initialization on read.
...
Update the reference documentation about collection initialization on read, add the required tests to make sure it behaves as expected and simplify BeanUtils value presence check.
Closes #4571
Original pull request: #4574
2 years ago
Mark Paluch
583139d156
Prepare next development iteration.
...
See #4532
2 years ago
Mark Paluch
bae0d91010
Release version 4.2 GA (2023.1.0).
...
See #4532
2 years ago
Christoph Strobl
9721cf36c9
Polishing.
...
Remove unused imports.
Simplify if & switch statements.
Use Set.of, List.of for unmodifiable collections.
Remove redundant usage of semicolon.
Fix broken references in Javadoc.
Fix Typos.
Extend value caching for MongoPersistentProperties.
See: #4555
Original pull request: #4556
2 years ago
Christoph Strobl
9016b4e1b7
Polishing.
...
Reorder methods.
See: #4555
Original pull request: #4556
2 years ago
Christoph Strobl
03f8763623
Introduce MongoConverterConfigurationAdapter#withPropertyValueConversions.
...
Introduce new builder style method and deprecate exiting setter.
Closes : #4555
Original pull request: #4556
2 years ago