Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

DataView filters: match rows where the field is an array

オープン 初心者向け
#943 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
84/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript
領域
frontend

調査の方向性

コードベース内で String(row.getValue(columnId)) を検索し、select/multiselect(in、notin、eq、neq)の DataView フィルタ操作を見つけること。これらの演算子が現在どのように値を変換しているかを読み、次に Array.isArray(cellValue) 分岐を追加して、in/eq に対して any-match、notin/neq に対して no-match を実装し、スカラーの動作は変更せずに残すこと。配列セルと既存の文字列/数値のケースをカバーするテストを追加すること。完了の条件は、旧テストと新テストの両方が通り、groupable がスコープ外に保たれること。

索引モデルが issue の本文から書いたものです。

説明

Right now a select/multiselect filter only works when each row has one value in that column. A lot of real data has several: tags on a ticket, labels on an issue, all the projects someone is on.

What happens today

Say a row has labels: ['bug', 'urgent'] and you filter labels with "is any of: urgent". The in check does String(row.getValue(columnId)), which turns the array into "bug,urgent". It never matches. eq has the same problem.

There's also no way to pass a custom filterFn for a field, so you can't work around it from the outside.

What I'd expect

When the cell value is an array:

  • in (is any of): match if any item in the row is in the selected set
  • notin (is none of): match if no item in the row is in the selected set
  • eq / neq for select: same idea with one value

Strings and numbers keep working exactly like they do now, so nothing changes for existing tables.

Grouping by an array field is a separate question (one row in several groups?). I'd leave that out of this, and maybe just not allow groupable on array fields for now.

Possible shape

Probably just checking Array.isArray(cellValue) inside the select and multiselect operations. Or an explicit flag like field.multiValue: true, if you'd rather be strict about it.

主要言語
TypeScript
スター
69
フォーク
13
平均マージ
3日 15時間
マージ済み PR(30日)
24

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

raystack/apsara のほかの issue

raystack/apsara の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。