Commit Graph

3897 Commits

Author SHA1 Message Date
Mark Paluch
dc1bd8458f Retain regex options from the parsed JsonToken.
We now retain expression options when resolving bind values from the original BsonRegularExpression.

Closes: #4806
Original Pull Request: #4807
2024-10-15 08:16:39 +02:00
Mark Paluch
19fdf2850b Use Docker in Docker CI setup.
See #4788
2024-10-09 14:14:22 +02:00
Mark Paluch
770cda6867 Polishing.
See: #4722
Original pull request: #4723
2024-10-08 11:08:52 +02:00
Christoph Strobl
8d2514b892 Fix conversion of types when mapping Aggregation pipeline.
This change makes sure to apply conversion to non native mongo types when the context does not expose fields.

Closes: #4722
Original pull request: #4723
2024-10-08 11:08:51 +02:00
Mark Paluch
7b15bc5297 Polishing.
Tweak wording. Update Develocity system property names.

See #4785
Original pull request: #4796
2024-09-27 10:05:51 +02:00
Mark Paluch
33149f63df Update MongoDB Server compatibility matrix.
Closes #4785
Original pull request: #4796
2024-09-27 10:05:51 +02:00
Jens Schauder
60defac7f9 After release cleanups.
See #4770
2024-09-13 11:40:09 +02:00
Jens Schauder
db2b5599aa Prepare next development iteration.
See #4770
2024-09-13 11:40:08 +02:00
Jens Schauder
f5b11e1505 Release version 4.3.4 (2024.0.4).
See #4770
2024-09-13 11:36:54 +02:00
Jens Schauder
b60d42b234 Prepare 4.3.4 (2024.0.4).
See #4770
2024-09-13 11:36:33 +02:00
Mark Paluch
4583c6b917 Polishing.
Apply sort of unpaged Pageable to QuerydslMongoPredicateExecutor query.

Original pull request: #4773
Closes #4771
2024-09-12 10:40:24 +02:00
Christoph Strobl
e9e6f88e97 Apply sort of unpaged Pageable to query.
Original pull request: #4773
Closes #4771
2024-09-12 10:40:24 +02:00
Christoph Strobl
bfa479108a Fix id mapping when using $all operator.
Fix the id mapping for queries using the $all operator. Prior to this change the collection nature of the id values was not preserved leading to an invalid query.

Original pull request: #4742
Closes #4736
2024-08-30 14:23:37 +02:00
Mark Paluch
cee6092292 Polishing.
Fix ComputedFieldAppender as it is used in public API. Add missing Nullable annotation.

Switch to switch expressions.

Original pull request #4751
See #4745
2024-08-29 11:35:09 +02:00
Christoph Strobl
fffd2ef9b7 Expose output of SetWindowFieldsOperation correctly to next aggregation stage.
This commit makes sure to expose calculated output fields correctly.

Original pull request #4751
Closes #4745
2024-08-29 11:35:09 +02:00
Mark Paluch
bc590956a9 Refactor DocumentAccessor, consider readNull/writeNull for null values.
Original pull request: #4728
See #4710
2024-08-28 13:51:18 +02:00
Christoph Strobl
791f8b2c50 Consider null value settings for types with custom conversion.
This commit fixes an issue where settings regarding storage of null values had been ignored if a custom converter took care of the conversion.

Original pull request: #4728
Closes #4710
2024-08-28 13:51:17 +02:00
Mark Paluch
fe256944a1 Use ReflectionUtils.isVoid(…) to whether Kotlin coroutines should return a value.
We now use a different utility method that is aware of whether a return type maps to Kotlin's Unit to indicate a void return type.

Previously, we only checked for Java's void types.

Closes #4772
2024-08-28 13:35:47 +02:00
Jens Schauder
97860982b5 After release cleanups.
See #4740
2024-08-16 10:08:54 +02:00
Jens Schauder
121315e693 Prepare next development iteration.
See #4740
2024-08-16 10:08:53 +02:00
Jens Schauder
fd3e2e2023 Release version 4.3.3 (2024.0.3).
See #4740
2024-08-16 10:05:57 +02:00
Jens Schauder
72dd2f7c6a Prepare 4.3.3 (2024.0.3).
See #4740
2024-08-16 10:05:38 +02:00
Mark Paluch
c4fd7b8d63 Polishing.
Reformat code.

See #4758
Original pull request: #4759
2024-08-12 09:55:23 +02:00
Mark Paluch
de9454b73b Handle Query.isSorted in QueryUtils proxy.
Closes #4758
Original pull request: #4759
2024-08-12 09:55:23 +02:00
Eric Haag
71c05b1474 Migrate build to Spring Develocity Conventions extension.
* Migrate build to Spring Develocity Conventions extension.

* Adopt Develocity environment variables.

Closes #4752
2024-08-08 15:01:29 +02:00
Mark Paluch
09298679f4 Update CI properties.
See #4740
2024-08-08 10:19:18 +02:00
Mark Paluch
44b7668702 Upgrade to Maven Wrapper 3.9.8.
See #4765
2024-08-08 10:18:13 +02:00
Mark Paluch
7d6b31d119 Bundle Javadoc with Antora documentation site.
Closes #4754
2024-07-31 10:46:21 +02:00
Christoph Strobl
f90ed55942 Generate proxy and register reflection for default sorting during AOT.
This commit makes sure to generate required cglib proxies during AOT phase so they are ready to use within a native image. Prior to this change default sorting raised an error as class generation is not allowed in a GraalVM native image.

Original pull request: #4747
Closes #4744
2024-07-23 09:07:11 +02:00
Jens Schauder
608f82366e After release cleanups.
See #4726
2024-07-12 19:12:14 +02:00
Jens Schauder
fd63245ddf Prepare next development iteration.
See #4726
2024-07-12 19:12:13 +02:00
Jens Schauder
1d674bc501 Release version 4.3.2 (2024.0.2).
See #4726
2024-07-12 19:09:19 +02:00
Jens Schauder
ff5af698fb Prepare 4.3.2 (2024.0.2).
See #4726
2024-07-12 19:09:00 +02:00
Mark Paluch
479d5470c8 Apply unwrapped persistent property equality check to delegate.
We now compare the other object whether it equals the delegate in case UnwrappedMongoPersistentProperty.equals is being called with the MongoPersistentProperty retrieved from a MappingContext.

This ensures that unwrapped properties can be compared to vanilla MongoPersistentProperty instances when checking constructor/creator method correlation of parameters.

Closes #4732
2024-06-27 09:30:44 +02:00
Mark Paluch
40d5a24395 Remove Slack notification hook.
See #4731
2024-06-20 09:58:10 +02:00
Mark Paluch
4373c16bb8 Switch to Broadcom docker proxy.
Closes #4731
2024-06-20 09:58:09 +02:00
ksshlee
b4cbcd2303 Update error codes file reference.
Update documentation link from error_codes.err to error_codes.yml.

Closes #4729
2024-06-19 14:43:32 +02:00
Mark Paluch
f738f2b62f After release cleanups.
See #4701
2024-06-14 10:47:59 +02:00
Mark Paluch
74af974085 Prepare next development iteration.
See #4701
2024-06-14 10:47:58 +02:00
Mark Paluch
9a4d7e5996 Release version 4.3.1 (2024.0.1).
See #4701
2024-06-14 10:45:40 +02:00
Mark Paluch
033eee5d4b Prepare 4.3.1 (2024.0.1).
See #4701
2024-06-14 10:45:23 +02:00
Mark Paluch
ee6d501274 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
2024-06-13 11:05:38 +02:00
Christoph Strobl
f5b7a389b2 Configure relaxed/strict field lookup when creating AggregationOperationContext.
Closes #4714
Original pull request: #4720
2024-06-13 11:05:13 +02:00
Mark Paluch
17d8a425e8 Polishing.
Avoid duplicate query mapping for document replacement operations when the filter query can be determined from the already mapped _id field.

See #4707
Original pull request: #4719
2024-06-12 15:25:07 +02:00
Christoph Strobl
1e32e3b0e7 Fix id conversion for fields of complex id.
This commit fixes an issue where the property type for nested fields of an complex id is not handed over correctly leading to wrong conversion results eg. for Instant types that got then turned into ObjectIds.

Closes #4707
Original pull request: #4719
2024-06-12 15:25:07 +02:00
Mark Paluch
5cb38218d4 Polishing.
Simplify reactive composition. Switch to eager operator evaluation.

See #4712
Original pull request: #4717
2024-06-12 09:57:35 +02:00
Christoph Strobl
ccecd0c749 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
2024-06-12 09:57:04 +02:00
Mark Paluch
bbef940825 Polishing.
Reformat code, revise nullability declarations.

See #4709
Original pull request: #4721
2024-06-11 15:17:20 +02:00
Christoph Strobl
4ca008db09 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
2024-06-11 15:17:20 +02:00
Mark Paluch
ad45069f50 Polishing.
Invert types to retain check to avoid double negation.

See #4674
Original pull request: #4718
2024-06-11 09:37:01 +02:00