Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.php
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- php
- Domain
- documentation
Research direction
Open config/config.sample.php and follow its existing format for documenting configuration settings. Read the linked UserConfig.php code to confirm how the two keys work. Add examples and explain that they apply only to keys declared in an app's config lexicon, and that enforcement makes the admin default override user-stored values.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PHP
- Stars
- 37.6k
- Forks
- 5.4k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 605
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextcloud/server
-
bug feature: previews and thumbnails performance 🚀
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug feature: TaskProcessing good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
files_external occ commands crash with InvalidArgumentException for SMB mounts without credentialsOpenbug feature: external storage feature: occ good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
"Forwarded for headers" setup check trusts a client-sent Remote-Addr header and ignores CIDR proxiesOpenbug feature: settings
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
bug feature: occ
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
All issues in nextcloud/server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
nextcloud/integration_openai#480 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
a11y
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
omeka/plugin-Contribution#84 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
recca0120/vscode-phpunit#620 ·
Maintainers usually reply within 1 day
-
Validation rule generation for recursive Data objects is unbounded (O(payload depth))Possibly taken @irfanm96 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
spatie/laravel-data#1226 ·