Skip to content

feat(config): group-level config source declaration#2298

Merged
ruattd merged 3 commits intodevfrom
feat/group-level-source
Jan 27, 2026
Merged

feat(config): group-level config source declaration#2298
ruattd merged 3 commits intodevfrom
feat/group-level-source

Conversation

@ruattd
Copy link
Copy Markdown
Contributor

@ruattd ruattd commented Jan 25, 2026

在 ConfigGroupAttribute 上写 source 参数以声明对全组生效的默认值,当配置项本身未声明 source 时将默认使用该值,逐级向上 fallback,最后 fallback 到 ConfigSource.Shared

此功能主要用于支持后期分离配置与状态存储。

顺便让 AI 改了点复用,已测试,应该没有问题。

@pcl-ce-automation pcl-ce-automation bot added 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 size: XL PR 大小评估:超大型 labels Jan 25, 2026
Copy link
Copy Markdown
Member

@whitecat346 whitecat346 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice pr

@ruattd
Copy link
Copy Markdown
Contributor Author

ruattd commented Jan 27, 2026

放了这么久没人 review,罢了,直接合了

@ruattd ruattd merged commit f3acba7 into dev Jan 27, 2026
2 checks passed
@pcl-ce-automation pcl-ce-automation bot added 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线 and removed 🛠️ 等待审查 Pull Request 已完善,等待维护者或负责人进行代码审查 labels Jan 27, 2026
@ruattd ruattd deleted the feat/group-level-source branch January 27, 2026 11:31
whitecat346 pushed a commit that referenced this pull request Feb 7, 2026
* feat(config): group-level config source declaration

* feat(config): 配置组单例支持从类型继承代码文档
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: XL PR 大小评估:超大型 👌 完成 相关问题已修复或功能已实现,计划在下次版本更新时正式上线

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants