borinquenkid opened a new pull request, #16205:
URL: https://github.com/apache/grails-core/pull/16205

   ## Summary
   Stacked on #16201. `DefaultGraphQLErrorsResponseHandler#getLocale()` used 
the deprecated `DataFetchingEnvironment#getContext()`. `getGraphQlContext()` 
(the modern replacement) can't hold arbitrary objects like this method's 
supported `LocaleAwareContext`, but `GraphqlController` already sets both 
`.context(context)` and `.root(context)` to the same value specifically for 
this migration path - so `getLocale()` now reads `environment.root` instead, 
covering both the Map-of-locale and `LocaleAwareContext` cases with no behavior 
change. Added the previously-missing root-Map and no-locale-entry test branches.
   
   ## Test plan
   - [x] `./gradlew :grails-data-graphql-core:test :grails-data-graphql:test 
:grails-data-graphql-core:codeStyle :grails-data-graphql:codeStyle` passes
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to