[docs] Error in version.php
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 50/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- php
調査の方向性
https://moodledev.io/docs/apis/commonfiles/version.php#supported-versions の「supported-versions」セクションを開き、そのソースを devdocs リポジトリで見つけてください。$plugin->supported には正確に2つの値を含める必要があることを説明と例に記載するよう更新し、値が1つの場合または2つを超える場合の動作を明確にしてください。
索引モデルが issue の本文から書いたものです。
説明
What is the URL of the page?
https://moodledev.io/docs/apis/commonfiles/version.php#supported-versions
What is the issue with this page?
The docs stated, that the property for $plugin->supported should be integer[] and
A set of branch numbers to specify the lowest and highest branches of Moodle that the plugin supports. These value are inclusive.
But it does not state that there has to be exactly two values. If you provide 3 or more values, only the first 2 values (or more correctly: only values with the keys 0 and 1) will taken into account. One could think that you can also provide a list of all supported versions:
$plugin->supported = [
// Support from the Moodle 3.11 series.
311,
401,
402,
// To the Moodle 4.3 series.
403,
];
If one provides only one value Moodle will fail with an error while installation of the plugin.
$plugin->supported = [
// Support only the Moodle 4.3 series.
403,
];
Are you able to provide a patch for this?
Yes - I will create one if requested.
- 主要言語
- TypeScript
- スター
- 74
- フォーク
- 652
- 平均マージ
- 2日 50分
- マージ済み PR(30日)
- 12
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
moodle/devdocs のほかの issue
-
bug documentation help wanted needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
documentation enhancement help wanted needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug documentation help wanted needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
-
bug documentation good first issue needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
bug documentation help wanted needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
TanStack/tanstack.com#1293 ·