You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@grails.apache.org by GitBox <gi...@apache.org> on 2026/02/21 23:40:46 UTC
[GH] (grails-core/feat/data-service-datasource-inheritance): Workflow run "CI" failed!
The GitHub Actions job "CI" on grails-core.git/feat/data-service-datasource-inheritance has failed.
Run started by GitHub user jamesfredley (triggered by jamesfredley).
Head commit for run:
19e84793677b55a82a4a1a553eda8f93c2734e69 / James Fredley <ja...@users.noreply.github.com>
feat: auto-inherit datasource from domain class in @Service data services
@Service(DomainClass) now automatically inherits the datasource from
the domain class's mapping block, so developers no longer need to
specify @Transactional(connection = '...') when the domain already
declares its datasource. Explicit @Transactional(connection) on the
service still takes precedence.
Two-layer implementation:
- AST (ServiceTransformation): parses the domain's static mapping
closure for datasource/connection calls and propagates to the
generated service impl via @Transactional(connection)
- Runtime (DatastoreServiceMethodInvokingFactoryBean): resolves the
domain's datasource from the mapping context and sets the correct
datastore on the service instance
Assisted-by: Claude Code <Cl...@Claude.ai>
Report URL: https://github.com/apache/grails-core/actions/runs/22266244312
With regards,
GitHub Actions via GitBox