fix: continue replay when historical rts data is missing - #570
Merged
Conversation
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
bamboo0403
approved these changes
Sep 10, 2026
PiscesXD
approved these changes
Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
這個 PR 做了什麼
RTS 歷史資料的保存時間較短,部分較舊的地震在重播時 RTS API 已經回傳 404,但 EEW 歷史資料仍然存在。
原本的處理會將 404 視為一般 API failure,造成不必要的錯誤紀錄,也可能影響 RTS replay 狀態。
這次只針對 RTS replay 的 NotFoundFailure 做特殊處理,避免影響其他資料來源。
相關 issue
怎麼驗
檢查清單
tool/check/commits.sh origin/main..HEAD通過—— commit 訊息就是更新日誌,格式見 commit.md
mise exec -- flutter analyze與mise exec -- flutter test通過AppLocalizations,沒有寫死AppSpacing/AppRadius/AppMotion,深色模式看過,文字對比度可接受