Content Search result customizability
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
components/content-search/utils.ts から始め、特にリンクされた行付近の queryFilter の処理と normalizeResults を確認してから、正規化された項目がどのように ContentSearch の renderItemType に到達するかを追跡します。検索エンドポイントのレスポンススキーマと正規化された結果の型を比較します。カスタムレンダラーから埋め込まれたレスポンスデータにアクセスでき、既存の結果フィールドも引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I work on a news publisher site with loads of content. We used to be able to customize the ContentSearch component's query and renderItemType in order to extract additional necessary information for content editors, particularly the publish date of a post. We did this by:
- Using the
queryFilterprop and adding the_linksand_embeddedfields (_embed=trueis already added by the component but without these other fields nothing is actually embedded) - Utilizing the
_embeddedproperty passed torenderItemTypeto customize the results items to display the post date
After this normalizeResults line was added, it is now impossible to reference any properties of the response items other than id, subtype, title, type, and url, which makes renderItemType almost completely useless for our purposes.
I'm not sure what the correct answer is here, but I would love to at least be able to include the _embedded property as part of the normalized results type since that is a standard part of the search endpoint schema. It would be a nice bonus to be able to make use of custom fields added to the search results schema, but that would probably be harder to account for.
- 主要言語
- TypeScript
- スター
- 330
- フォーク
- 54
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
10up/block-components のほかの issue
-
Repeater with allowReordering logs React key and isDragging warnings対応中かも @s3rgiosan が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
10up/block-components#419 · コメント 1 件 ·
-
ContentPicker SortableList logs a useSelect unstable value warning対応中かも @s3rgiosan が 5 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
10up/block-components#421 · コメント 1 件 ·
-
Subpath bundles duplicate PostContext, and the root import can't be tree-shaken対応中かも @fabiankaegy が 19 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
10up/block-components#417 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
10up/block-components#413 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
10up/block-components#412 ·
10up/block-components の issue をすべて見る
似ている issue
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
db-ux-design-system/core-web#8856 ·
メンテナーはふだん 1 日以内に返信
-
'!' breaking change is lost when the commit also has an empty BREAKING CHANGE footer対応中かも @wittdennis が今日担当しました。 オープンpriority: p3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
googleapis/release-please#2971 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
メンテナーはふだん 1 日以内に返信
-
🛠️ dette technique
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
betagouv/mon-entreprise#4752 · コメント 1 件 ·
メンテナーはふだん 5 日以内に返信