[BUG] Search Sort By has no effect until another discovery filter is selected

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

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

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

評価

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

調査の方向性

app/src/main/kotlin/com/arflix/tv/ui/screens/search/SearchViewModel.kt を読み、selectSort、hasDiscoverFilters、applyDiscoverSelection() に注目してください。ディスカバリーのブラウズ行の並び順がどのように決まり、ソートの変更がどのようにフィルター済みグリッドに反映されるかを追ってください。空のクエリでのブラウズ画面で Sort By を変更すると、別のフィルターを選択せずに表示中のディスカバリー結果が更新されれば完了です。

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

説明

Bug description

In Search → Browse, changing Sort By has no visible effect until another discovery filter, such as a genre, is selected.

Steps to reproduce
  1. Open Search and leave the text query empty so the discovery browse rows are shown.
  2. Open the discovery filters and change Sort By (for example, to Top Rated).
  3. Observe that the browse rows do not reload or reorder.
  4. Select a genre, then change Sort By again. The filtered grid applies the selected sort.
Expected behavior

Changing Sort By should apply the selected order to the discovery results without requiring an unrelated filter to be selected first.

Actual behavior

Source-code inspection shows that selectSort updates sortOption, but triggers a reload only when hasDiscoverFilters is true. The sort option itself is not counted as a discovery filter. The initial browse rows also carry their own fixed ordering, so changing sort alone leaves them unchanged.

Evidence and verification status
  • SearchViewModel.kt (v2.3.1) — selectSort only calls applyDiscoverSelection() when hasDiscoverFilters is true; sorting is forwarded to the filtered grid.

These findings are supported by source-code inspection, but this issue was not fully reproduced on a Fire Stick during this investigation.

Environment
  • ARVIO v2.3.1
  • Amazon Fire TV Stick 4K (2nd Generation, Fire OS 8)
主要言語
Kotlin
スター
760
フォーク
122
平均マージ
16時間 47分
マージ済み PR(30日)
65

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

ProdigyV21/ARVIO のほかの issue

ProdigyV21/ARVIO の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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