You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by jd...@apache.org on 2026/09/15 11:57:58 UTC

(grails-core) branch 8.0.x updated (3067d0a855 -> b449d532af)

This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a change to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git


    from 3067d0a855 Merge pull request #16282 from codeconsole/fix/dirty-checking-collection-tracking-8.0.x
     add a81e0d5ca0 Default String id storage to ObjectId and fix association id coercion
     add 2ca0e4c7fc Fix checkstyle OperatorWrap violation in MongoQuery
     add 87219f1530 Add unit tests for id coercion and association storage
     add 0f1bc9be87 Correct idGeneration docs that still described String storage as the default
     add 5bf4e5c62e Delete documents whose assigned String id is empty
     add 19a146a5b3 Encode to-one association ids consistently in updateAll
     add 9a8506d50c Apply id coercion inside negations and other junctions
     add ded9ea7900 Coerce association ids in IN criteria
     add 0fa6561bf1 Store and query _id consistently in the non-codec engine
     add 08d1902331 Merge branch '8.0.x' into feat/mongo-objectid-default-8.0.x
     add 41b92309a4 Apply the ObjectId default to the codec engine only
     add 4563be76b6 Normalise updateAll association values into a copy of the caller's map
     add 3a99093037 Store and query _id through the id mapping in the non-codec engine
     add 60c3671c95 Write association references through the id mapping in the non-codec engine
     add ce89107fb1 Encode to-one associations in the non-codec engine's updateAll, and drop the engine scoping
     add 425cdc0cbd Deprecate the non-codec persistence engine
     add b1d19ef28c Merge branch '8.0.x' into feat/mongo-objectid-default-8.0.x
     add a9a1f1eebc Merge branch '8.0.x' into feat/mongo-objectid-default-8.0.x
     add eaeff04ce4 Merge branch '8.0.x' into feat/mongo-objectid-default-8.0.x
     add 1630a25cce Extract association ids from proxies in updateAll
     add ded71167c4 Exclude embedded associations from updateAll id normalization
     add 564b61ba99 Coerce unidirectional collection and many-to-many references in the non-codec engine
     add 463e1e78ae Encode collection associations in updateAll
     add 1756eaedc5 Correct contradictory wording about the engine setting
     add 2a98407463 Merge branch '8.0.x' into feat/mongo-objectid-default-8.0.x
     add d9a215b549 Merge branch '8.0.x' into feat/mongo-objectid-default-8.0.x
     add dc6a9cf5c9 Merge remote-tracking branch 'upstream/8.0.x' into feat/mongo-objectid-default-8.0.x
     add 7deb7dccbb Restrict updateAll collection normalization to real reference collections
     add 0dfbe067a8 Reject bidirectional one-to-many in updateAll
     add 9528ba1ab7 Write many-to-many updateAll values under the key the non-codec engine reads
     add b1c52c27f4 Reject hasOne associations in updateAll
     add 8707742a8c Match the encoders' null and many-to-many representation in updateAll
     add 44750eb96b Drop a dead type check in the updateAll bidirectional one-to-many guard
     add 55ee2e3356 Accept an identifier in place of an association instance in updateAll
     add a173953336 Document updateAll and the association kinds it supports
     add 7d302c578b Name the plain to-many null case accurately, and cover the DBRef null drop
     add 983fd08c9d Cover many-to-many updateAll on the codec engine
     add 87d38b3753 Cover hasOne updateAll rejection on the non-codec engine
     add f3cb91ebbe Merge branch '8.0.x' into feat/mongo-objectid-default-8.0.x
     new b449d532af Merge pull request #16297 from codeconsole/feat/mongo-objectid-default-8.0.x

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../mapping/mongo/MongoCodecSession.groovy         | 105 +++-
 .../datastore/mapping/mongo/MongoDatastore.java    |   9 +
 .../datastore/mapping/mongo/MongoSession.java      | 148 ++++-
 .../mapping/mongo/config/MongoMappingContext.java  |  25 +-
 .../mapping/mongo/config/MongoSettings.groovy      |  24 +-
 .../mongo/connections/StringIdSettings.groovy      |   2 +-
 .../engine/AbstractMongoObectEntityPersister.java  |  36 +-
 .../mapping/mongo/engine/MongoEntityPersister.java |  18 +-
 .../mapping/mongo/engine/MongoIdCoercion.java      |  24 +
 .../engine/codecs/PersistentEntityCodec.groovy     |  33 +-
 .../datastore/mapping/mongo/query/MongoQuery.java  |  69 ++-
 .../mongo/BrokenManyToManyAssociationSpec.groovy   |   3 +-
 .../EmbeddedWithNonEmbeddedCollectionsSpec.groovy  |   9 +-
 .../bugs/MappingEngineStringIdStorageSpec.groovy   | 458 +++++++++++++++
 .../gorm/mongo/bugs/MongoIdCoercionSpec.groovy     | 161 ++++++
 .../bugs/StringIdAssociationStorageSpec.groovy     | 639 +++++++++++++++++++++
 .../bugs/StringIdDefaultStoredAsConfigSpec.groovy  |  60 +-
 .../bugs/StringIdWithObjectIdStorageSpec.groovy    |  31 +
 .../asciidoc/gettingStarted/advancedConfig.adoc    |  18 +-
 .../docs/asciidoc/introduction/upgradeNotes.adoc   |  35 ++
 .../docs/asciidoc/objectMapping/idGeneration.adoc  |  14 +-
 .../src/docs/asciidoc/querying/queryingBasics.adoc |  45 ++
 22 files changed, 1908 insertions(+), 58 deletions(-)
 create mode 100644 grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/bugs/MappingEngineStringIdStorageSpec.groovy
 create mode 100644 grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/bugs/MongoIdCoercionSpec.groovy
 create mode 100644 grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/bugs/StringIdAssociationStorageSpec.groovy


(grails-core) 01/01: Merge pull request #16297 from codeconsole/feat/mongo-objectid-default-8.0.x

Posted by jd...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jdaugherty pushed a commit to branch 8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit b449d532af9ee613da956e828405b1afc07393d4
Merge: 3067d0a855 f3cb91ebbe
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Tue Sep 15 07:57:51 2026 -0400

    Merge pull request #16297 from codeconsole/feat/mongo-objectid-default-8.0.x
    
    Default String id storage to ObjectId, fix association id coercion, and deprecate the non-codec engine

 .../mapping/mongo/MongoCodecSession.groovy         | 105 +++-
 .../datastore/mapping/mongo/MongoDatastore.java    |   9 +
 .../datastore/mapping/mongo/MongoSession.java      | 148 ++++-
 .../mapping/mongo/config/MongoMappingContext.java  |  25 +-
 .../mapping/mongo/config/MongoSettings.groovy      |  24 +-
 .../mongo/connections/StringIdSettings.groovy      |   2 +-
 .../engine/AbstractMongoObectEntityPersister.java  |  36 +-
 .../mapping/mongo/engine/MongoEntityPersister.java |  18 +-
 .../mapping/mongo/engine/MongoIdCoercion.java      |  24 +
 .../engine/codecs/PersistentEntityCodec.groovy     |  33 +-
 .../datastore/mapping/mongo/query/MongoQuery.java  |  69 ++-
 .../mongo/BrokenManyToManyAssociationSpec.groovy   |   3 +-
 .../EmbeddedWithNonEmbeddedCollectionsSpec.groovy  |   9 +-
 .../bugs/MappingEngineStringIdStorageSpec.groovy   | 458 +++++++++++++++
 .../gorm/mongo/bugs/MongoIdCoercionSpec.groovy     | 161 ++++++
 .../bugs/StringIdAssociationStorageSpec.groovy     | 639 +++++++++++++++++++++
 .../bugs/StringIdDefaultStoredAsConfigSpec.groovy  |  60 +-
 .../bugs/StringIdWithObjectIdStorageSpec.groovy    |  31 +
 .../asciidoc/gettingStarted/advancedConfig.adoc    |  18 +-
 .../docs/asciidoc/introduction/upgradeNotes.adoc   |  35 ++
 .../docs/asciidoc/objectMapping/idGeneration.adoc  |  14 +-
 .../src/docs/asciidoc/querying/queryingBasics.adoc |  45 ++
 22 files changed, 1908 insertions(+), 58 deletions(-)