ios: ArtworkLoader logs nothing when an artwork candidate fails

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

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

評価

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

調査の方向性

ios/S2/Artwork/ArtworkLoader.swift の164~207行目から始め、候補が nil を返す各経路を追跡します。失敗した候補ごとに、項目のキャッシュキー、候補のホスト、失敗理由を含む os.Logger のエントリーを追加し、要求された Debug のみのプライバシー処理を適用します。既存の iOS ロギング規約を確認します。列挙された各失敗で必要な詳細が記録され、Debug 以外では項目キーがハッシュ化されていれば完了です。

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

説明

enhancement impact:U1 P3 reach:R2 size:S

ArtworkLoader (ios/S2/Artwork/ArtworkLoader.swift:164-207) returns nil silently for every failed candidate: non-2xx, thrown fetch, undecodable data, image under minimumSize. CFNetwork logs URLs as <private>, so a device log only shows anonymous 404s and a missing cover can't be traced to an item or a source.

Diagnosing missing artwork on the owner's iPhone (2026-11-05) took matching task ids to connections and guessing names against the API by hand.

Fix: one os.Logger line (subsystem com.simplecityapps.shuttlecasts, category Artwork) per failed candidate with the item's cache key, the candidate host, and the reason (status code / error / decode / too small with its size). Mark the item key privacy: .public in Debug only, hashed otherwise.

Impact U1 (slows diagnosis; this session spent ~20 min on it) · Reach R2 (every artwork bug report on iOS) · Implemented: no · Design fit: fits · Complexity: S

主要言語
Kotlin
スター
234
フォーク
28
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

timusus/Shuttle2 のほかの issue

timusus/Shuttle2 の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

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

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