Document the locations on GET {component}/usage
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 79/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
content/4.api/ 以下の API ドキュメントを読み、GET {component}/usage のコンポーネントのセクションを探してください。issue に基づき、ロール固有の locations フィールド、位置とレンダリングの詳細、順序、上限、正確な件数、および private, no-store のキャッシュ動作を記述してください。エンドポイントのドキュメントが列挙された各動作を網羅し、admin のレスポンスと locations を含まないレスポンスを区別できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The bundle's GET {component}/usage now lists where a component is used, for admins (components-web-app/api-components-bundle#531, PR components-web-app/api-components-bundle#535). The module uses it for the "Shared · N places" badge and its list of places.
Please document, in the API section on components (content/4.api/):
- The response keeps
positionCount,pageDataCountandtotal, and addslocationsforROLE_ADMINonly. Anyone else who may read the component still gets the counts, without thelocationskey. - Each location is one counted use:
componentPosition(a position IRI) orpageData+property(a page data property holding the component). A dynamic position whose fallback is the component is listed withpageDataPropertyset.total - locations.lengthis the number of uses not listed. layoutis{iri, reference}for a use in a layout (directly or through components in the layout);renderedOnis then empty for the layout, since every page using it shows the component.renderedOnlists each page or page data the use renders on:{iri, title, routePath}, whereroutePathis the route's own path without the import prefix, or null when unrouted. A template position renders on the template and every page data using it; a position inside a component renders wherever that component is placed, up the chain.- Order: layout uses first, then routed uses by route path, then unrouted uses by title.
renderedOnis ordered by route path, then unrouted by title. - Caps: 50 locations and 20
renderedOnper location;totalandrenderedOnCountare exact. - The response is
private, no-store: a shared cache never stores it, since nothing purges it when a placement changes.
- 主要言語
- TypeScript
- スター
- 0
- フォーク
- 0
- 平均マージ
- 1時間 20分
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
components-web-app/docs のほかの issue
-
documentation
難易度 4/5 3〜5日 初心者へのやさしさ 43/100
components-web-app/docs#285 ·
-
documentation
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
components-web-app/docs#284 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 52/100
components-web-app/docs#283 ·
-
documentation
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
components-web-app/docs#282 ·
-
documentation
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
components-web-app/docs#281 ·
components-web-app/docs の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
logancyang/obsidian-copilot#3753 ·
メンテナーはふだん 1 日以内に返信
-
area: presentation severity: important
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
voithos-labs/aragonite#763 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
diegosouzapw/OmniRoute#17386 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 72/100
super-productivity/super-productivity#10982 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信