SearchPanes and SearchBuilder do not consider pre-filtering of the table.
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- csharp
調査の方向性
Controllers\SearchPanesController.cs から始め、サイトに記載されている Where フィルターを使用して /examples/extensions/searchPanes.html で問題を再現します。フィルターされたテーブルデータに対して、SearchPanesOptions と SearchBuilderOptions がどのように生成されるかを追跡します。両方のオプションセットがトップレベルのフィルターによって非表示になる値を除外し、例で 0 件のレコードを返す選択肢が提示されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
When you apply a top level filter on a table, this is not taken into account by the options presented by SearchBuilderOptions or SearchPaneOptions.
Setup
Using the current example download for Editor. Showing this with SearchPanes because it is easier to see in the browser:
- Modify
Controllers\SearchPanesController.csto add a top level filter on site using the Where clause
var response = new Editor(db, "users")
.Model<UploadManyModel>()
.Where("site", "1", "=")
- Run the project and visit
/examples/extensions/searchPanes.html
Result
The resulting table shows the correct data set:
However, the SearchPanes options still show the options from the full data set:
This includes the other options like Name:
Selecting one of the pre-filtered names results in zero records found, while the options show there should be one.
Expected behavior
Pre-filtered items are hidden from the SearchPane/SearchBuilder options.
This could result in data leaking, or weird results from logically deleted records.
- 主要言語
- C#
- スター
- 19
- フォーク
- 11
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DataTables/NET のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
DataTables/NET#27 · コメント 1 件 ·
-
Async methods? オープン
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
DataTables/NET#25 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DataTables/NET#24 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DataTables/NET#18 · コメント 2 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DataTables/NET#17 ·
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nightscout/nocturne#1379 ·
-
priority-0
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
StackExchange/StackExchange.Redis#3249 ·
-
[Feat] 조합 영역 구분선 개선 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100