Skip to content

fix: continue replay when historical rts data is missing - #570

Merged
PiscesXD merged 3 commits into
mainfrom
fix/eew-replay
Sep 10, 2026
Merged

fix: continue replay when historical rts data is missing#570
PiscesXD merged 3 commits into
mainfrom
fix/eew-replay

Conversation

@lowrt

@lowrt lowrt commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

這個 PR 做了什麼

  • 忽略地震重播期間歷史 rts API 回傳的 404

RTS 歷史資料的保存時間較短,部分較舊的地震在重播時 RTS API 已經回傳 404,但 EEW 歷史資料仍然存在。
原本的處理會將 404 視為一般 API failure,造成不必要的錯誤紀錄,也可能影響 RTS replay 狀態。

這次只針對 RTS replay 的 NotFoundFailure 做特殊處理,避免影響其他資料來源。

image

相關 issue

怎麼驗

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
    —— commit 訊息就是更新日誌,格式見 commit.md
  • 一個 commit 一件事(這條 gate 驗不了,靠自己和 review)
  • mise exec -- flutter analyzemise exec -- flutter test 通過
  • 新的使用者可見字串都走 AppLocalizations,沒有寫死
  • 有 UI 變更的話:用的是 AppSpacing / AppRadius / AppMotion
    深色模式看過,文字對比度可接受

Fix(zh-Hant): 修正歷史 RTS 資料不存在時地震重播無法繼續
Fix(en-US): fix earthquake replay stopping when historical RTS data is unavailable
Fix(zh-Hant): 重播較舊的地震時,狀態列不再寫「連線中斷」,改成「重播中」
Fix(en-US): replaying an older earthquake no longer reads "connection lost"
Fix(zh-Hant): 伺服器狀態不再因為某筆資料找不到,就把整個連線區域標成離線
Fix(en-US): a missing resource no longer marks a whole API region as down
@pull-request-size pull-request-size Bot added size/L and removed size/S labels Sep 10, 2026
@PiscesXD
PiscesXD merged commit e161701 into main Sep 10, 2026
6 checks passed
@PiscesXD
PiscesXD deleted the fix/eew-replay branch September 10, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: 比較久遠的地震報告無法重播,例如0403

3 participants