Document maxComponents on component groups
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- nuxt, php
- 領域
- api, documentation
調査の方向性
content/4.api/ 内の既存の allowedComponents ページの隣から始め、執筆前に api-components-bundle のプルリクエスト 467 を読んで、実際のカウントルールと 422 の動作を確認してください。Issue の項目をすべて扱います。null というデフォルト値、上限にカウントされるもの、拒否される作成と移動、上限の引き下げ、componentPositions のチェックです。各項目が文書化され、group('header', allow: [...], max: 1) のフィクスチャ例が bundle と一致し、アップグレード手順が記載されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The bundle adds a maximum number of components per component group: https://github.com/components-web-app/api-components-bundle/pull/467 (issue https://github.com/components-web-app/api-components-bundle/issues/464; module half https://github.com/components-web-app/cwa-nuxt-module/issues/398).
To document (API, content/4.api/, next to allowedComponents):
maxComponentsonComponentGroup:null(default) is unlimited, otherwise a positive integer. Read and written withallowedComponents.- What counts: the positions the group lists. A dynamic page data position counts as one, a published component with its draft counts once, and a position hidden by
allowedComponentsdoes not count. - Creating a position in a full group, moving one into it, or creating a component with a position inside a full group is refused with a 422 naming the limit. Moving within the group is always allowed.
- Lowering the limit below what a group holds deletes nothing. The group takes no more until it is under the limit.
- A position written inside a component (
componentPositionson a component POST) is now also checked againstallowedComponentsand#[ExplicitAllowOnly]. - Fixtures:
->group('header', allow: [...], max: 1)on layout, page and component builders;generate-fixtureswrites it. - Upgrade step: new
max_componentscolumn oncomponent_group; generate and run a migration.
When the module half lands, the module docs should cover the :max-components prop on <CwaComponentGroup>.
- 主要言語
- Vue
- スター
- 0
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
components-web-app/docs のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
components-web-app/docs#245 ·
-
難易度 2/5 半日 初心者へのやさしさ 68/100
components-web-app/docs#244 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
components-web-app/docs#241 ·
-
documentation
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
components-web-app/docs#246 ·
-
Document the generate-fixtures asset store (fixtures.assets, $cwa->asset(), prune-fixture-assets)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
components-web-app/docs#242 ·
components-web-app/docs の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
`/search.json` ignores the documented `editions.sort` parameter対応中かも @PranavD2905 が今日担当しました。 オープンAffects: Server Good First Issue Module: Solr Needs: Triage Theme: Public APIs Theme: Search
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
internetarchive/openlibrary#13989 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug P2: misleading query
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
jeffknupp/association#478 ·
-
backend bug difficulty: medium priority: medium reliability
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
trustflow-protocol/trustflow-backend#730 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
firecrawl/firecrawl-mcp-server#548 ·
メンテナーはふだん 1 日以内に返信