[Idea] Extend template inheritance beyond 3 levels #2310
ChrisBlankDe
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Improve AL-Go template inheritance so settings are reliably propagated through deeper template chains (4+ levels), not only up to three levels.
Current limitation
Inheritance currently works well for 3 levels:
AL-Go PTE Template -> Customer PTE Template -> Customer PTE
When adding a 4th level, inheritance appears to break for settings defined in intermediate templates:
AL-Go PTE Template -> Partner PTE Template -> Customer PTE Template -> Customer PTE
Specifically, settings defined at level 3 in .github/AL-Go-TemplateRepoSettings.doNotEdit.json are not inherited into level 4. It looks like only values from .github/AL-Go-Settings.json are written to .github/templateRepoSettings.doNotEdit.json in the target repository, which drops previously inherited template-level values.
This likely affects Project Settings in the same way.
Proposed improvement
Update the inheritance mechanism to support at least 4 levels, ideally an unlimited depth, by recursively merging inherited template settings across the full template chain.
Suggested behavior
Example scenario
After running Update AL-Go on each repo, Repo C should contain inherited settings from both Repo A and Repo B, not just the nearest layer’s direct settings.
Contribution (Optional)
Beta Was this translation helpful? Give feedback.
All reactions