The GitHub Actions job "CI" on 
grails-core.git/fix/config-export-bracketed-key-7.0.x has succeeded.
Run started by GitHub user codeconsole (triggered by codeconsole).

Head commit for run:
bedc5780e366ec0b75232e491d7d945a429bb4d2 / Scott Murphy Heiberg 
<[email protected]>
Skip an entry only when its bracketed key exports all of it

The walk skipped every entry whose map held a bracketed key for it,
whatever that key held. A bracketed key can hold less than the entry, or
a value a later write replaced:

- merge(['routes[api]': [target: 'http://localhost'],
  'routes[api].enabled': 'true']) leaves routes[api] holding only
  enabled, while the nested map holds target and enabled, so target was
  not exported at all
- merge(['app.routes[k]': null]) then merge(['app.routes.k': 'new'])
  leaves app.routes[k] null, so nothing was exported

The walk now skips an entry only when its bracketed key exports every
name and value the entry would; otherwise the entry is exported under
its own name, as on 7.0.x. A map whose entries are written below a
bracket, such as grails.cors.mappings[/api/**].allowedOrigins[0], is
still exported once, in brackets. At the root, a dotted key such as
app.routes./api/** is still skipped whenever a bracketed key names it,
since the walk of the nested maps exports the entry with the value they
hold. A bracketed key left on a value that a later dotted write replaced
is exported beside the dotted name, as on 7.0.x.

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

With regards,
GitHub Actions via GitBox

Reply via email to