Christoph Strobl
da7a62c2d0
Reduce method signatures in Reactive-/MongoOperations and add fluent reactive api variant
2023-08-31 14:08:25 +02:00
Mark Paluch
e14e1f57db
Guard against potential NPE.
2023-08-31 11:58:26 +02:00
Mark Paluch
86d289c862
Polishing.
...
Consistently use Document instead of record. Reformat code. Tweak documentation wording.
2023-08-31 11:58:26 +02:00
Christoph Strobl
8d56a63016
Aggregation update operators cannot be be used here - remove the leftover
...
should we fail right away if we encounter an aggregation update?
2023-08-31 11:58:26 +02:00
Christoph Strobl
e206d12f5c
apply write concern
2023-08-31 11:58:26 +02:00
Christoph Strobl
a4edb6cacc
Tests for reactive API
2023-08-31 11:58:26 +02:00
Christoph Strobl
d2a0e739e8
some more updates
2023-08-31 11:58:25 +02:00
Christoph Strobl
53669b9e50
update javadoc and make sure to have a fluent variant as well
2023-08-31 11:58:25 +02:00
Christoph Strobl
f21ca57dcd
move stuff into place
2023-08-31 11:58:25 +02:00
Christoph Strobl
9c4072359a
moar hacking
2023-08-31 11:58:25 +02:00
Christoph Strobl
0eccd2794d
let's have some tests
2023-08-31 11:58:25 +02:00
Christoph Strobl
1762491714
Update a bit of java doc
2023-08-31 11:58:24 +02:00
Jakub
f60c529334
Add support for replaceOne operation
2023-08-31 11:58:24 +02:00
Christoph Strobl
ce140e3deb
Prepare issue branch.
2023-08-31 11:58:24 +02:00
Christoph Strobl
492f09fbdf
Add isReadable method to UnwrappedMongoPersistentProperty.
...
Closes : #4489
2023-08-31 09:43:58 +02:00
Julia
e3e73f5351
Fix #self @DocumentReference resolution when used in constructor.
...
This commit enables document reference lookup to use `DocumentReferenceSource` to properly instantiate an entity containig a @DocumentReference `#self` property.
Closes #4484
Original Pull Request: #4486
2023-08-31 07:57:44 +02:00
Mark Paluch
e5aff2645b
Polishing.
...
Refactor duplicate code into callback.
See #4481
2023-08-24 14:01:28 +02:00
Mark Paluch
b3c0fbb02d
Guard command completion listener against unsupported observation context.
...
We now no longer attempt to complete the Observation if the context is not a MongoDB one. For commands that target the admin database and run within a parent observation, we still might have an Observation but that one points to the parent invocation and not the MongoDB one as we do not record commands for the admin database.
Closes #4481
2023-08-24 14:01:28 +02:00
Julia Lee
51de522e88
After release cleanups.
...
See #4450
2023-08-18 08:59:39 -04:00
Julia Lee
d2842b246f
Prepare next development iteration.
...
See #4450
2023-08-18 08:59:35 -04:00
Julia Lee
1f954f45b4
Release version 4.2 M2 (2023.1.0).
...
See #4450
4.2.0-M2
2023-08-18 08:50:31 -04:00
Julia Lee
c14d7bf616
Prepare 4.2 M2 (2023.1.0).
...
See #4450
2023-08-18 08:49:38 -04:00
Mark Paluch
ec7cfa3b8e
Polishing.
...
Update since tags. Add missing Override annotation.
See #4070
Original pull request: #4242
2023-08-17 14:18:11 +02:00
Christoph Strobl
f1cff3cdaa
Introduce AggregationVariable type.
...
This commit introduces a new AggregationVariable type that is intended to better identify variables within a pipeline to avoid mapping failures caused by invalid field names.
Closes #4070
Original pull request: #4242
2023-08-17 14:18:11 +02:00
Christoph Strobl
0fd1273ed9
Update documentation regarding java.time type conversion.
...
Closes #3482
Original pull request: #4460
2023-08-17 10:45:04 +02:00
Julia Lee
16798cb3c2
Update CI properties.
...
See #4450
2023-08-14 12:15:21 -04:00
Julia Lee
963072ec0a
Upgrade to Maven Wrapper 3.9.4.
...
See #4470
2023-08-14 08:53:22 -04:00
Julia
7f64c020b4
Polishing for formatting
...
Original Pull Request: #4455
2023-08-08 08:55:04 -04:00
Julia
a93854fb09
Add integration test to ensure schema validation fails when domain type property values are not encrypted as expected.
...
Closes #4454
Original Pull Request: #4455
2023-08-08 08:55:04 -04:00
Christoph Strobl
b6cd129c93
Fix schema generation for encrypted fields that are considered domain entities.
...
This commit makes sure to consider the encrypted annotation on fields that are considered domain type property values, encrypting the entire object if necessary.
2023-08-08 08:55:04 -04:00
Oliver Christen
c532ec343a
Correct misspellings in documentation
...
Closes : #4461
2023-07-31 14:11:04 -04:00
Christoph Strobl
a44e240402
Polishing.
...
Use previous context instead of root for mapping objects within an Inheriting context. This avoids accidental mapping of fields against the root entity after eg. a projection stage.
Add missing tests for AggregationOperationRenderer to ensure intended context propagation.
Original Pull Request: #4459
2023-07-28 07:20:13 +02:00
Julia Lee
9b82ede047
Fix mapping custom field names in downstream stages in TypedAggregation pipelines.
...
Use the root AggregationOperationContext in nested ExposedFieldsAggregationOperationContext to properly apply mapping for domain properties that use @Field.
Closes #4443
Original Pull Request: #4459
2023-07-28 07:18:43 +02:00
Julia Lee
e1986373fd
Polishing.
...
Remove duplicate test configuration.
Original Pull Request: #4447
2023-07-17 10:20:59 +02:00
Julia Lee
5407456973
Fix test setup so that temporal conversions use symmetric timezone setting.
...
Closes : #4446
Original Pull Request: #4447
2023-07-17 10:12:02 +02:00
Mark Paluch
31f0aa348d
After release cleanups.
...
See #4387
2023-07-14 14:57:12 +02:00
Mark Paluch
28abf1c15b
Prepare next development iteration.
...
See #4387
2023-07-14 14:57:10 +02:00
Mark Paluch
2deede7513
Release version 4.2 M1 (2023.1.0).
...
See #4387
4.2.0-M1
2023-07-14 14:53:18 +02:00
Mark Paluch
5a48825439
Prepare 4.2 M1 (2023.1.0).
...
See #4387
2023-07-14 14:52:12 +02:00
Mark Paluch
f4a3e293e8
Upgrade to MongoDB driver 4.10.2.
...
Closes #4445
2023-07-11 15:46:37 +02:00
Mark Paluch
f0697db32b
Polishing.
...
Reformat code, replace known unsupported constructor with UnsupportedOperationException.
See #4432
Original pull request: #4439
2023-07-10 10:48:29 +02:00
Christoph Strobl
2cc5e427bc
Delegate Bson conversion to MongoDB Codec.
...
Instead of reimplementing conversion we now try to delegate to the native MongoDB codec infrastructure using a custom writer that will only capture values without actually pushing values to an output stream.
See #4432
Original pull request: #4439
2023-07-10 10:48:29 +02:00
Christoph Strobl
a8f08bab86
Fix encryption of java.time types.
...
This commit makes sure to convert java.time types into their BsonValue representation before encrypting.
See #4432
Original pull request: #4439
2023-07-10 10:48:29 +02:00
Christoph Strobl
19211a0f8e
Fix decryption when client is using AutoEncryptionSettings#isBypassAutoEncryption().
...
This commit makes sure to convert already decrypted entries returned by the driver in case the client is configured with encryption settings.
Closes #4432
Original pull request: #4439
2023-07-10 10:48:28 +02:00
Christoph Strobl
9e0c24435c
Upgrade mongodb-crypt to 1.8.0
...
Closes : #4440
2023-07-07 11:40:06 +02:00
Christoph Strobl
19b1e713b2
Upgrade to MongoDB driver 4.10.1
...
Closes : #4441
2023-07-07 11:39:42 +02:00
Mark Paluch
af26bb6b31
Polishing.
...
Introduce limit(Limit) method to limit query results applying the Limit domain type.
See #4397
Original pull request: #4398
2023-07-05 12:02:04 +02:00
Christoph Strobl
d78f47f035
Add tests to verify Limit is supported.
...
Closes #4397
Original pull request: #4398
2023-07-05 12:01:44 +02:00
Mark Paluch
8cd956e90a
Update CI properties.
...
See #4387
2023-07-03 09:50:16 +02:00
Mark Paluch
49cc6a708d
Upgrade to Maven Wrapper 3.9.3.
...
See #4436
2023-07-03 09:49:43 +02:00