Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.php
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- php
调研方向
打开 config/config.sample.php,按照现有格式编写配置设置的说明。阅读链接的 UserConfig.php 代码,确认两个键的工作方式。添加示例,并说明它们仅适用于应用配置词汇表中声明的键,且强制执行会使管理员默认值覆盖用户存储的值。
由索引模型根据 Issue 内容生成。
描述
Description
Admins can override the default of any user config key declared in an app's config lexicon with the system settings lexicon.default.userconfig and enforce it with lexicon.default.userconfig.enforced:
Neither key is documented in config/config.sample.php, so admins can only find them by reading the code (see e.g. #60220).
Found by code reading.
Proposal
Add both keys to config/config.sample.php with an example, e.g.
'lexicon.default.userconfig' => [
'<appId>' => [
'<configKey>' => 'value',
],
],
'lexicon.default.userconfig.enforced' => [
'<appId>' => [
'<configKey>' => true,
],
],
and explain that they only apply to keys declared in an app's config lexicon, and that "enforced" makes the admin default win over values stored by users.
- 主要语言
- PHP
- 星标
- 37.6k
- 派生
- 5.4k
- 平均合并
- 1 天 20 小时
- 30 天内合并 PR
- 605
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud/server 的其他 Issue
-
bug feature: previews and thumbnails performance 🚀
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
bug feature: TaskProcessing good first issue
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
files_external occ commands crash with InvalidArgumentException for SMB mounts without credentials未关闭bug feature: external storage feature: occ good first issue
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
"Forwarded for headers" setup check trusts a client-sent Remote-Addr header and ignores CIDR proxies未关闭bug feature: settings
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug feature: occ
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
nextcloud/integration_openai#480 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
a11y
难度 2/5 1-3 小时 新手友好度 68/100
omeka/plugin-Contribution#84 ·
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
recca0120/vscode-phpunit#620 ·
维护者通常 1 天内回复
-
Validation rule generation for recursive Data objects is unbounded (O(payload depth))可能已有人在做 @irfanm96 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
spatie/laravel-data#1226 ·