This is an automated email from the ASF dual-hosted git repository.
jamesfredley pushed a change to branch 7.0.x
in repository https://gitbox.apache.org/repos/asf/grails-core.git
from 3d1d619478 Merge pull request #15412 from
apache/docs/cli-servlet-dependency-comment
add 4e04e96f81 fix: preserve explicit datasource qualifiers for
MultiTenant entities in allQualifiers()
add fe2682be81 test: add DataServiceMultiTenantMultiDataSourceSpec for
DISCRIMINATOR + secondary datasource
add 58b5fe2c9d test: add functional test app and address review feedback
for MultiTenant + multi-datasource
add d507d56731 test: register functional test app in settings.gradle and
add logback.xml
add 465218f747 test: clean up some tests
new db9083dc8f Merge pull request #15393 from
jamesfredley/fix/multitenant-datasource-qualifier-routing
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:
...ataServiceMultiTenantMultiDataSourceSpec.groovy | 297 +++++++++++++++++++++
.../org/grails/datastore/gorm/GormEnhancer.groovy | 18 +-
.../gorm/GormEnhancerAllQualifiersSpec.groovy | 204 ++++++++++++++
.../build.gradle | 7 +-
.../grails-app/conf/application.yml | 51 ++--
.../grails-app/conf/logback.xml | 2 +-
.../grails-app/domain/example/Metric.groovy} | 18 +-
.../grails-app/init/example}/Application.groovy | 3 +-
.../services/example/MetricService.groovy | 65 +++++
.../MultiTenantMultiDataSourceSpec.groovy | 183 +++++++++++++
settings.gradle | 5 +
11 files changed, 815 insertions(+), 38 deletions(-)
create mode 100644
grails-data-hibernate5/core/src/test/groovy/org/grails/orm/hibernate/connections/DataServiceMultiTenantMultiDataSourceSpec.groovy
create mode 100644
grails-datamapping-core/src/test/groovy/org/grails/datastore/gorm/GormEnhancerAllQualifiersSpec.groovy
copy grails-test-examples/hibernate5/{grails-data-service =>
grails-multitenant-multi-datasource}/build.gradle (88%)
copy grails-test-examples/{async-events-pubsub-demo =>
hibernate5/grails-multitenant-multi-datasource}/grails-app/conf/application.yml
(66%)
copy {grails-data-graphql/examples/grails-tenant-app =>
grails-test-examples/hibernate5/grails-multitenant-multi-datasource}/grails-app/conf/logback.xml
(98%)
copy
grails-test-examples/hibernate5/{grails-partitioned-multi-tenancy/grails-app/domain/example/Book.groovy
=>
grails-multitenant-multi-datasource/grails-app/domain/example/Metric.groovy}
(65%)
copy grails-test-examples/{app2/grails-app/init/app2 =>
hibernate5/grails-multitenant-multi-datasource/grails-app/init/example}/Application.groovy
(98%)
create mode 100644
grails-test-examples/hibernate5/grails-multitenant-multi-datasource/grails-app/services/example/MetricService.groovy
create mode 100644
grails-test-examples/hibernate5/grails-multitenant-multi-datasource/src/integration-test/groovy/functionaltests/MultiTenantMultiDataSourceSpec.groovy