CRUD Controller feature request: $crud->addSearchField()
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
調査の方向性
AbstractCrudController::configureCrud から始め、setSearchFields() の既存の動作を追跡してください。これには、デフォルトで検索可能なプロパティフィールドがどのように決定されるかも含まれます。addSearchField() と addSearchFields() の API を定義する前に、CRUD 設定と関連するテストを確認してください。要求された例をカバーするテストがあり、デフォルトの検索フィールドを手動でコピーせずに関連プロパティを追加できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Short description of what this feature will allow to do:
In the AbstractCrudController::configureCrud method, there is a way to pass a set of searchable fields via setSearchFields():
public function configureCrud(Crud $crud): Crud
{
return $crud
...
->setSearchFields(['name', 'description', 'seller.email', 'seller.address.zipCode'])
...
https://symfony.com/bundles/EasyAdminBundle/current/crud.html#search-order-and-pagination-options
However, if you have an association, you would need to explicitly declare all of the searchable fields, which could be quite a few:
// Manually include default search fields, and an association property field
$crud->setSearchFields(['name','description',...,...,'association_field.property'];
Example of how to use this feature
It would be nice to be able to simply tack on the association field rather than copy paste all the other fields and then add the other field, something like:
// Include all the default property fields, and the additional association property:
$crud->addSearchField('association_field.property');
and / or
$crud->addSearchFields(['association_field.property']);
- 主要言語
- PHP
- スター
- 4.3k
- フォーク
- 1.1k
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 52
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
EasyCorp/EasyAdminBundle のほかの issue
-
bug design
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
EasyCorp/EasyAdminBundle#7958 ·
メンテナーはふだん 2 日以内に返信
-
design feature
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
EasyCorp/EasyAdminBundle#7930 ·
メンテナーはふだん 2 日以内に返信
-
design
難易度 2/5 1時間未満 初心者へのやさしさ 88/100
EasyCorp/EasyAdminBundle#7879 ·
メンテナーはふだん 2 日以内に返信
-
design
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
EasyCorp/EasyAdminBundle#7875 ·
メンテナーはふだん 2 日以内に返信
-
#[AdminRoute]: the requirements of an action silently replace the ones of the class対応中かも @anthonyhacart が 2 日前に担当しました。 オープンfeature
難易度 3/5 半日 初心者へのやさしさ 30/100
EasyCorp/EasyAdminBundle#7956 ·
メンテナーはふだん 2 日以内に返信
EasyCorp/EasyAdminBundle の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
taskforcesh/bullmq#5238 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects it対応中かも @bfs2021 が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Automattic/jetpack#55517 ·
メンテナーはふだん 1 日以内に返信
-
Major
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
PrestaShop/ps_onepagecheckout#245 ·
メンテナーはふだん 1 日以内に返信
-
wpvc
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
10up/ElasticPress#4420 ·
メンテナーはふだん 1 日以内に返信