Skip to content

feat: forward provides children onto nested aspects - #547

Merged
vic merged 1 commit into
mainfrom
feat/nested-provides-forwarding
May 15, 2026
Merged

vic merged 1 commit into
mainfrom
feat/nested-provides-forwarding

Conversation

@sini

@sini sini commented May 15, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • aspectContentType now forwards provides children onto the content wrapper, matching mergeWithAspectMeta behavior for root aspects
  • den.aspects.parent.child.monitoring now resolves to den.aspects.parent.child.provides.monitoring
  • Sets __providesForwarded so the pipeline can distinguish forwarded keys from direct freeform keys

Test plan

  • test-nested-provides-access — forwarded provides child accessible directly
  • test-nested-self-provide — self-provide still works on nested aspects
  • test-nested-provides-direct-wins — direct freeform keys override forwarded provides
  • test-nested-provides-multiple — multiple provides children forwarded
  • Full CI: 813/813 passing

@sini
sini requested a review from vic as a code owner May 15, 2026 15:37
@github-actions github-actions Bot added the allow-ci allow all CI integration tests label May 15, 2026
aspectContentType now forwards provides children onto the content
wrapper, matching mergeWithAspectMeta behavior for root aspects.
This lets aspect.child.monitoring resolve to
aspect.child.provides.monitoring.
@vic
vic force-pushed the feat/nested-provides-forwarding branch from e8633b3 to 53c140c Compare May 15, 2026 22:16
@vic
vic enabled auto-merge (squash) May 15, 2026 22:20
@vic
vic disabled auto-merge May 15, 2026 22:30
@vic
vic merged commit aee486b into main May 15, 2026
27 of 29 checks passed
@vic
vic deleted the feat/nested-provides-forwarding branch May 15, 2026 22:30
charlesfire pushed a commit to charlesfire/den that referenced this pull request May 16, 2026
## Summary
- `aspectContentType` now forwards `provides` children onto the content
wrapper, matching `mergeWithAspectMeta` behavior for root aspects
- `den.aspects.parent.child.monitoring` now resolves to
`den.aspects.parent.child.provides.monitoring`
- Sets `__providesForwarded` so the pipeline can distinguish forwarded
keys from direct freeform keys

## Test plan
- [x] `test-nested-provides-access` — forwarded provides child
accessible directly
- [x] `test-nested-self-provide` — self-provide still works on nested
aspects
- [x] `test-nested-provides-direct-wins` — direct freeform keys override
forwarded provides
- [x] `test-nested-provides-multiple` — multiple provides children
forwarded
- [x] Full CI: 813/813 passing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants