Document lexicon.default.userconfig and lexicon.default.userconfig.enforced in config.sample.php

オープン 初心者向け
#67,538 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
php
領域
documentation

調査の方向性

config/config.sample.phpを開き、設定項目の説明には既存の形式に従ってください。リンク先のUserConfig.phpのコードを読み、2つのキーの動作を確認してください。例を追加し、これらはアプリの設定語彙で宣言されたキーにのみ適用されること、また強制すると管理者のデフォルト値がユーザー保存値を上書きすることを説明してください。

索引モデルが issue の本文から書いたものです。

説明

enhancement feature: settings good first 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:

https://github.com/nextcloud/server/blob/3a68340a6c806a18cdd0d9667a3b9ec5f096b135/lib/private/Config/UserConfig.php#L2031-L2062

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時間
マージ済み PR(30日)
605

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/server のほかの issue

nextcloud/server の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。