The GitHub Actions job "CI" on 
grails-core.git/fix/multitenant-datasource-qualifier-routing has succeeded.
Run started by GitHub user jamesfredley (triggered by jamesfredley).

Head commit for run:
4e04e96f81193bfbe1a034ccd9145b145a9a5d72 / James Fredley 
<[email protected]>
fix: preserve explicit datasource qualifiers for MultiTenant entities in 
allQualifiers()

GormEnhancer.allQualifiers() unconditionally expanded qualifiers to all
connection sources for MultiTenant entities, even when the entity declared
an explicit non-default datasource (e.g., datasource 'secondary'). This
caused silent data routing to the wrong database under DISCRIMINATOR
multi-tenancy mode.

The fix checks whether the entity has an explicit non-default, non-ALL
datasource declaration before expanding qualifiers. When present, the
explicit mapping is preserved.

Added 7 Spock tests covering all combinations:
- MultiTenant with explicit/default/ALL datasource
- Non-MultiTenant with explicit/default/ALL datasource
- MultiTenant with multiple explicit datasources

Report URL: https://github.com/apache/grails-core/actions/runs/22083891105

With regards,
GitHub Actions via GitBox

Reply via email to