Matches on array fields use strict equality, not substring like the other fields.
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start by tracing how filter[search] builds SQL for array fields and compare it with the substring matching path for text fields. The issue includes the generated queries but names no source files or tests; identify the relevant query code and tests, then confirm array field searches return substring matches such as s:code while text field behavior remains intact.
索引モデルが issue の本文から書いたものです。
説明
https://api.netrunnerdb.com/api/v3/public/printings?filter[search]=s:code returns 0 results because it generates this sql:
SELECT DISTINCT
"unified_printings".*
FROM
"unified_printings"
WHERE ( ($1 = ANY(unified_printings.lower_card_subtype_names)))
instead of doing a substring match like a text field does:
filter[search]=gamble generates
SELECT
DISTINCT "unified_printings".*
FROM
"unified_printings"
WHERE (lower(unified_printings.stripped_title) LIKE $1)
which is what we expect
- 主要言語
- Ruby
- スター
- 10
- フォーク
- 9
- 平均マージ
- 2時間 59分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Null-Signal-Games/netrunnerdb-api-server のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Null-Signal-Games/netrunnerdb-api-server の issue をすべて見る
似ている issue
-
Bug Ruby
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
getsentry/sentry-ruby#3211 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
internetee/registry#2984 ·
メンテナーはふだん 6 日以内に返信
-
interest-zsv
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
hitobito/hitobito_zsv#6 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
ecosyste-ms/issues#862 ·
メンテナーはふだん 1 日以内に返信
-
Redis Lua error `@user_script:52: ERR value is not an integer or out of range` when `window_size` is configured対応中かも @mimosa が今日担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信