Commit Graph

3939 Commits

Author SHA1 Message Date
Christoph Strobl
d8700261db Support Expressions in $slice operator.
This commit allows AggregationExpressions to be used for itemCount and offset of the Slice expression.

Original pull request: #4858
Closes #4857
2025-01-07 14:47:02 +01:00
Mark Paluch
a11324050e Polishing.
Reduce test class and method visibility. Convert JUnit 4 test to JUnit 5. Reformat code.

Original pull request: #4862
See #4850
2025-01-07 14:35:18 +01:00
Christoph Strobl
91c6fcd785 Wrap Criteria is and regex comparison if necessary.
This commit wraps simple values and Patterns if to avoid creating invalid query objects.

Original pull request: #4862
Closes #4850
2025-01-07 14:35:13 +01:00
Christoph Strobl
471a77cbd8 Polishing.
Make sure type used in protected method is visible in defined scope.

See: #4846
2024-12-11 11:24:50 +01:00
Christoph Strobl
b43c09d1f4 Avoid unnecessary mapping of Sort object.
Closes: #4846
2024-12-11 10:38:32 +01:00
Christoph Strobl
538399adee Fix IndexOptions.expireAfter setting wrong property.
Resolves: #4851
2024-12-11 10:28:59 +01:00
Christoph Strobl
f910839dca Align @Indexed(expireAfter) with expireAfterSeconds.
This commit fixes an issue where expireAfter=0s behaves differently from expireAfterSeconds=0 where the former would not be applied.

Closes #4844
Original pull request: #4848
2024-12-10 09:53:29 +01:00
Mark Paluch
0a29d13774 Refactor String-based repository aggretation methods into common utility callback.
Also, support aggregation result projections for reactive flows.

See #4839
Original pull request: #4841
2024-12-10 09:49:32 +01:00
Christoph Strobl
f2a9d1f1b3 Fix interface projections for string based aggregations.
Closes #4839
Original pull request: #4841
2024-12-10 09:49:32 +01:00
Faron Dutton
2580af2935 Adds failing unit-test for StringBasedAggregation projections.
See #4839
Original pull request: #4841
2024-12-10 09:49:32 +01:00
Mark Paluch
5b86b2fa88 Polishing.
Switch to Flux.fromIterable(…) from StreamUtils in deleteAll(Iterable). Use switch expressions, refine toList/toCollection arrangement. Guard tests against absent ReplicaSet.

See #4838
Original pull request: #4843
2024-11-28 16:04:01 +01:00
Christoph Strobl
721799dfdc Fix flakey test by asserting execution order.
See #4838
Original pull request: #4843
2024-11-28 16:04:01 +01:00
Christoph Strobl
94a4fe7acb Update reactive SimpleReactiveMongoRepository.saveAll flow.
Closes #4838
Original pull request: #4843
2024-11-28 16:04:01 +01:00
Mark Paluch
315b91048e Fix Java 23 Docker build paths.
See #4817
2024-11-15 15:41:30 +01:00
Mark Paluch
ef0a561485 After release cleanups.
See #4817
2024-11-15 14:13:09 +01:00
Mark Paluch
9f041714df Prepare next development iteration.
See #4817
2024-11-15 14:13:08 +01:00
Mark Paluch
7289148202 Release version 4.4 GA (2024.1.0).
See #4817
2024-11-15 14:10:52 +01:00
Mark Paluch
c554455532 Prepare 4.4 GA (2024.1.0).
See #4817
2024-11-15 14:10:36 +01:00
Christoph Strobl
e9d44256c6 Fix flakey test.
Original pull request: #4824
Closes #4804
2024-11-12 09:28:34 +01:00
Christoph Strobl
723db60ce1 Retain order doing reactive save operations with multiple elements.
Ensure subscription order on multi document operations.

Original pull request: #4824
Closes #4804
2024-11-12 09:28:33 +01:00
Mark Paluch
eeab99266f Fix MongoCrypt dependency setup when testing with Driver 4.x.
See #4817
2024-11-11 14:49:32 +01:00
Mark Paluch
de210e0515 Upgrade to MongoDB driver 5.2.1.
Closes #4830
2024-11-11 09:47:19 +01:00
Mark Paluch
418125dc60 Upgrade MongoDB 8 build to Java.next.
Closes #4828
2024-11-07 11:01:38 +01:00
Mark Paluch
c1c9fd0274 Update CI Properties.
See #4817
2024-11-07 09:57:35 +01:00
Mark Paluch
2334f6cd87 Upgrade to Maven Wrapper 3.9.9.
See #4825
2024-11-07 09:47:19 +01:00
Mark Paluch
d33b063c75 Relocate benchmarks to core module.
Original Pull Request: #4819
2024-11-04 13:27:29 +01:00
Mark Paluch
1075a25df4 Revisit internal caching arrangements.
Introduce caching and reduce allocations on hot code paths.

Closes: #4818
Original Pull Request: #4819
2024-11-04 13:14:28 +01:00
Mark Paluch
5419414734 Fix benchmarks.
Original Pull Request: #4819
2024-11-04 13:12:36 +01:00
Mark Paluch
5b1b0a4668 After release cleanups.
See #4788
2024-10-18 12:49:41 +02:00
Mark Paluch
0ee64f23e5 Prepare next development iteration.
See #4788
2024-10-18 12:49:40 +02:00
Mark Paluch
53f4f4327a Release version 4.4 RC1 (2024.1.0).
See #4788
2024-10-18 12:47:01 +02:00
Mark Paluch
11dbe7131d Prepare 4.4 RC1 (2024.1.0).
See #4788
2024-10-18 12:46:43 +02:00
Mark Paluch
5deb3d6693 Document Querydsl annotation processor usage.
Closes: #4811
Original Pull Request: #4814
2024-10-17 15:45:22 +02:00
Christoph Strobl
1fc802ddbb Polishing.
Add tests to verify expected behaviour of quoted expressions and string that look like expressions.
Remove comments that look like old merge conflict left overs and apply code format.

Original Pull Request: #4807
2024-10-15 08:04:30 +02:00
Mark Paluch
60a3461bb1 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:02:48 +02:00
Christoph Strobl
6e850512c0 Upgrade to MongoDB driver 5.2.0.
Closes: #4805
2024-10-10 09:35:44 +02:00
Mark Paluch
2dc8ffce19 Use Docker in Docker CI setup.
See #4788
2024-10-09 15:19:14 +02:00
Marcin Grzejszczak
8b9182e5a8 Add support for Value Expressions in Repository Query methods.
Closes #4677
Original pull request: #4683
2024-10-09 13:30:19 +02:00
Mark Paluch
db44512c13 Polishing.
See: #4722
Original pull request: #4723
2024-10-08 11:07:49 +02:00
Christoph Strobl
39e8f64d13 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:07:49 +02:00
Mark Paluch
7c255ec018 Polishing.
Update Develocity system property names.

See #4785
2024-09-27 09:57:12 +02:00
Mark Paluch
5f31304cc9 Polishing.
Tweak wording. Remove unused Java 21/Mongo 6 Dockerfile. Move start-server code into shellfile. Remove 7.0/Java 17 test item in favor of Java 21 and old driver variants.

See #4785
Original pull request: #4796
2024-09-27 09:46:19 +02:00
Christoph Strobl
7fd7fd4147 Update MongoDB Server compatibility matrix.
Closes #4785
Original pull request: #4796
2024-09-27 09:46:19 +02:00
Jens Schauder
a84b3c2d4b After release cleanups.
See #4702
2024-09-13 12:42:28 +02:00
Jens Schauder
043c68cc7d Prepare next development iteration.
See #4702
2024-09-13 12:42:27 +02:00
Jens Schauder
8785890a89 Release version 4.4 M1 (2024.1.0).
See #4702
2024-09-13 12:39:32 +02:00
Jens Schauder
302faea231 Prepare 4.4 M1 (2024.1.0).
See #4702
2024-09-13 12:39:14 +02:00
Christoph Strobl
78fbea43b6 Polishing.
Add since tags to extension methods and issue references to tests.
Update antora playbook to consider maintenance branches.

Original Pull Request: #4753
2024-09-12 14:38:50 +02:00
Pawel Matysek
df08576b3a Add Kotlin extension for type-safe Update API.
Closes: #3028
Original Pull Request: #4753
2024-09-12 14:38:49 +02:00
Mark Paluch
a508b7d4dc Polishing.
Apply sort of unpaged Pageable to QuerydslMongoPredicateExecutor query.

Original pull request: #4773
Closes #4771
2024-09-12 10:44:11 +02:00