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/10/04 12:21:02 UTC
(grails-core) branch 8.0.x updated (620d549caa -> 51f6e53106)
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 620d549caa Merge pull request #16498 from codeconsole/deps/sitemesh-3.3.0
add 0e2c9cff99 Keep a property's mapping when a '*' default constraint is configured
add af8255aaf4 Add MongoDatastore.findUndeclaredIndexes() and dropUndeclaredIndexes()
add 20f6e3289a Add MongoDatastore.buildIndexAsync(), returning the build's result
add 3063d81c68 Add MongoDatastore.findMissingIndexes()
add e7e9f8f7ec Count a unique index over duplicate values as a failed declaration
add ecbf30a6d7 Keep what is configured on a property that starts from a '*' entry
add e7f0446d28 Start the datastore in the index specs, as the application context does
add 5a261296a1 Build and report only the indexes of the classes mapped to a connection
add cb9e0c4edc Check a reviewed undeclared index again before dropping it
add a4d30e4b1c Compare text indexes field by field in the missing and undeclared reports
add dbbb0aab57 Count only a duplicate key as a failed index declaration
add a9ea86909e Run a synchronous and a background index build one at a time
add 8e44dec475 Tell a build that stops from a declaration that fails in the index guide
add 97dfcc7103 Wrap the declaration comparison in the reports as checkstyle requires
add d71c610fd3 Add a release note for building only the indexes of the classes mapped to a connection
add 26d47a2a2c Merge branch '8.0.x' into feat/mongodb-undeclared-indexes-8.0.x
add cd08a7d289 Say a background build has a caller waiting when buildIndexAsync() started it
add c57d0557b0 Index a class registered at runtime on the collection and database it maps
add 2c4d2ca19b Index a class registered at runtime only on a connection it is mapped to
add 83c8061963 Index a class registered at runtime after any build running on its connection
add d5b93889ec Skip a collection that declares nothing in findMissingIndexes()
add e6c619ec7b Add a release note for indexing a class registered at runtime where its mapping says
add 18d09d16fa Start the datastore in the runtime registration spec, as the index specs do
new 51f6e53106 Merge pull request #16494 from codeconsole/feat/mongodb-undeclared-indexes-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:
.../org/grails/orm/hibernate/cfg/Mapping.groovy | 6 +-
.../hibernate/mapping/MappingBuilderSpec.groovy | 25 +
.../hibernate/DefaultMappingGlobalEntrySpec.groovy | 98 +++
.../org/grails/orm/hibernate/cfg/Mapping.groovy | 6 +-
.../hibernate/mapping/MappingBuilderSpec.groovy | 25 +
.../hibernate/DefaultMappingGlobalEntrySpec.groovy | 98 +++
.../grails/orm/hibernate/cfg/MappingSpec.groovy | 4 +
.../datastore/mapping/mongo/IndexBuildResult.java | 39 ++
.../datastore/mapping/mongo/MissingIndex.java | 24 +-
.../datastore/mapping/mongo/MongoDatastore.java | 695 ++++++++++++++++++---
.../datastore/mapping/mongo/UndeclaredIndex.java | 28 +-
.../gorm/mongo/BuildIndexAsyncResultSpec.groovy | 598 ++++++++++++++++++
.../BuildIndexesDefaultConstraintsSpec.groovy | 91 +++
.../mongo/BuildIndexesFailureSummarySpec.groovy | 68 +-
.../gorm/mongo/DocumentMappingSpec.groovy | 18 +-
.../datastore/gorm/mongo/MissingIndexesSpec.groovy | 350 +++++++++++
.../gorm/mongo/UndeclaredIndexesSpec.groovy | 535 ++++++++++++++++
.../docs/asciidoc/introduction/releaseNotes.adoc | 8 +
.../docs/asciidoc/introduction/upgradeNotes.adoc | 9 +
.../src/docs/asciidoc/querying/queryIndexes.adoc | 101 ++-
.../grails/datastore/mapping/config/Entity.groovy | 3 +
.../DefaultMappingConfigurationBuilder.groovy | 13 +-
.../DefaultMappingConfigurationBuilderSpec.groovy | 52 ++
grails-doc/src/en/guide/introduction/whatsNew.adoc | 8 +
.../src/en/guide/upgrading/upgrading80x.adoc | 6 +
25 files changed, 2787 insertions(+), 121 deletions(-)
create mode 100644 grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/DefaultMappingGlobalEntrySpec.groovy
create mode 100644 grails-data-hibernate7/core/src/test/groovy/org/grails/orm/hibernate/DefaultMappingGlobalEntrySpec.groovy
create mode 100644 grails-data-mongodb/core/src/main/groovy/org/grails/datastore/mapping/mongo/IndexBuildResult.java
copy grails-test-examples/openapi-rest-api/grails-app/domain/openapirest/Book.groovy => grails-data-mongodb/core/src/main/groovy/org/grails/datastore/mapping/mongo/MissingIndex.java (58%)
copy grails-test-examples/app1/src/main/groovy/functionaltests/springevents/CustomApplicationEvent.groovy => grails-data-mongodb/core/src/main/groovy/org/grails/datastore/mapping/mongo/UndeclaredIndex.java (56%)
create mode 100644 grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/BuildIndexAsyncResultSpec.groovy
create mode 100644 grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/BuildIndexesDefaultConstraintsSpec.groovy
create mode 100644 grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/MissingIndexesSpec.groovy
create mode 100644 grails-data-mongodb/core/src/test/groovy/org/grails/datastore/gorm/mongo/UndeclaredIndexesSpec.groovy
(grails-core) 01/01: Merge pull request #16494 from codeconsole/feat/mongodb-undeclared-indexes-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 51f6e53106b081ab9317c5215cf398ada380ebba
Merge: 620d549caa 18d09d16fa
Author: James Daugherty <jd...@jdresources.net>
AuthorDate: Sun Oct 4 08:20:56 2026 -0400
Merge pull request #16494 from codeconsole/feat/mongodb-undeclared-indexes-8.0.x
8.0 (fix): Stop '*' defaults discarding property mappings and duplicate keys ending the index build + Index Cleanup Support
.../org/grails/orm/hibernate/cfg/Mapping.groovy | 6 +-
.../hibernate/mapping/MappingBuilderSpec.groovy | 25 +
.../hibernate/DefaultMappingGlobalEntrySpec.groovy | 98 +++
.../org/grails/orm/hibernate/cfg/Mapping.groovy | 6 +-
.../hibernate/mapping/MappingBuilderSpec.groovy | 25 +
.../hibernate/DefaultMappingGlobalEntrySpec.groovy | 98 +++
.../grails/orm/hibernate/cfg/MappingSpec.groovy | 4 +
.../datastore/mapping/mongo/IndexBuildResult.java | 39 ++
.../datastore/mapping/mongo/MissingIndex.java | 34 +
.../datastore/mapping/mongo/MongoDatastore.java | 695 ++++++++++++++++++---
.../datastore/mapping/mongo/UndeclaredIndex.java | 35 ++
.../gorm/mongo/BuildIndexAsyncResultSpec.groovy | 598 ++++++++++++++++++
.../BuildIndexesDefaultConstraintsSpec.groovy | 91 +++
.../mongo/BuildIndexesFailureSummarySpec.groovy | 68 +-
.../gorm/mongo/DocumentMappingSpec.groovy | 18 +-
.../datastore/gorm/mongo/MissingIndexesSpec.groovy | 350 +++++++++++
.../gorm/mongo/UndeclaredIndexesSpec.groovy | 535 ++++++++++++++++
.../docs/asciidoc/introduction/releaseNotes.adoc | 8 +
.../docs/asciidoc/introduction/upgradeNotes.adoc | 9 +
.../src/docs/asciidoc/querying/queryIndexes.adoc | 101 ++-
.../grails/datastore/mapping/config/Entity.groovy | 3 +
.../DefaultMappingConfigurationBuilder.groovy | 13 +-
.../DefaultMappingConfigurationBuilderSpec.groovy | 52 ++
grails-doc/src/en/guide/introduction/whatsNew.adoc | 8 +
.../src/en/guide/upgrading/upgrading80x.adoc | 6 +
25 files changed, 2831 insertions(+), 94 deletions(-)