feat(rules): Client side information consequence in rules
まだ誰も着手していません。
- #730 @aallam による — マージされずにクローズ
評価
調査の方向性
リンクされている内部の specs issue #152 から始め、Java クライアントの検索レスポンスで rules.consequence がどのように表現されているかを追ってください。issue に記載された redirect、facetMerchandising、userData の構造を、記載された必須フィールドとレスポンス形式を含めて、クライアントが renderingContent として公開できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Summary
With the release of the merchandising UI, the need to control UI aspects using the QR is growing and the rules API needs to expose fields to store information to perform specific client side tasks in a structured way.
The new consequence consequence.renderingContent contains a json object where each top level attribute is restricted to known use cases. The currently identified use cases are:
- Redirect
- Facet merchandising / ordering
- User defined data
Each top level excepted the userData one have a schema which is enforced and strict and customers can add metadata using the userData object:
{
"condition": {
"anchoring": "is",
"pattern": "samsung"
},
"consequence": {
"renderingContent": {
"redirect": {
"url": "https://algolia.com/samsung" // required by the API
},
"facetMerchandising": {
"order": [ "brand", "price"] // required by the API
},
"userData": {
"callback": "displayBrand(samsung)" // optional field defined by user
}
}
}
}
This information will be returned in a structured way in the path rules.consequence of the search response:
{
"hits": [...],
[...],
"query": "samsung",
"rules": {
"consequence": {
"renderingContent": [ // Array containing the content of matching rules
{
"facetMerchandising": {
"order": [
"brand",
"price"
]
},
"redirect": {
"url": "https://algolia.com/samsung"
},
"userData": {
"callback": "displayBrand(samsung)"
}
}
]
}
},
"userData": [ // Legacy userData
{
"myUserData": {}
}
]
}
Internal specs issue: #152
- 主要言語
- Java
- スター
- 51
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
algolia/algoliasearch-client-java のほかの issue
-
Upgrade to Jackson 3オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
algolia/algoliasearch-client-java#788 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
algolia/algoliasearch-client-java#781 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
algolia/algoliasearch-client-java の issue をすべて見る
似ている issue
-
bug pdd
難易度 2/5 1時間未満 初心者へのやさしさ 76/100
objectionary/eoc#1555 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ClouGence/open-cdm#487 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
security
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信