Repository navigation
feat(app): repair saved feed addresses after the update - #1183
Merged
Merged
Conversation
…pair # Conflicts: # app/README.md # core/catalog/README.md # core/catalog/src/test/resources/fixtures/v2/README.md # core/catalog/src/test/resources/fixtures/v2/shows-feeds.json
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…pair # Conflicts: # app/README.md # core/database/README.md
…s-repair # Conflicts: # ARCHITECTURE.md # app/README.md # app/src/main/java/cx/aswin/boxlore/AppContainer.kt # app/src/main/java/cx/aswin/boxlore/fcm/PodcastNotificationRegistrationWorker.kt # app/src/test/java/cx/aswin/boxlore/fcm/PodcastNotificationRegistrationWorkerTest.kt # core/catalog/README.md # core/catalog/src/test/resources/fixtures/v2/README.md # core/database/README.md
ashwkun
enabled auto-merge (squash)
October 27, 2026 18:58
…s-repair # Conflicts: # app/README.md # app/src/main/java/cx/aswin/boxlore/AppContainer.kt # core/catalog/README.md # core/catalog/src/test/resources/fixtures/v2/README.md
|
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.



Title
feat(app): repair saved feed addresses after the updateSummary
FeedAddressUpdater, the daily address check and chunking). Review that PR first.Motivation
What changed
UpgradeAddressRepair(:core:catalog) runs four steps for each show the v39 upgrade seeded intoupgrade_repair_shows, and records each step as soon as it finishes:UpgradeAddressCheckStep):POST /v2/shows/feedsin chunks of up to 500. Only a confirmed move (the registry flags the show for repair and returns its own direct HTTPS address) is kept. A 503, 429, other 5xx, a network error orregistryAvailable: falsecounts no try, and after 7 days the show continues without an answer. A refused or unreadable answer counts a try, and after 5 tries the show continues without an answer. An answer older than a day is asked for again, never applied.FeedAddressUpdater) with compare-and-set on the saved address. A follow changed on this phone and not yet pushed keeps its address.rereadWith) without the foreground auto-download pass. The server's episode namespace is passed for comparison only and never changes an issued ID. After 5 failed tries while online, the show ends as gave-up and the daily check takes over.UpgradeNotificationStep). A show is recorded only after WorkManager has saved its request (PodcastNotificationRegistrationWorker.request). The record lives innoBackupFilesDir, so a restored phone registers again.UserSyncCoordinator.requestIdentityCatchUp()runs once. It lowers the sync metadata version from 3 to 2, so the next sync's identity catch-up sends the identity of episodes the reads settled. It never runs on a fresh install.UpgradeRepairWorker(permanent unique workfeed-address-upgrade-repair, KEEP, needs a network connection, backoff from 30 s, at most 10 runs per launch) is enqueued at launch while work is left.needsWork()settles a fresh install without using the network.upgrade-repair-offkill switch pauses the repair without marking anything done.feed_fetch_result(background pass) gainsnamespace_mismatch_count, sent only when greater than 0.feed_url_correctedreports swaps with stepupgrade_repair.UpgradeRepairDao.hasShows(): a DAO query only, with no schema change.Behavior & compatibility
rss:and negative IDs, deep links and cache keys are unchanged. The new permanent names are added to the ARCHITECTURE.md table./v2/shows/feedsroute, with no server change.Impact (required)
user-impact-criticaluser-impact-highuser-impact-mediumuser-impact-lowno-user-impactWhat changes in the user's life:
After updating, shows whose feed moved start getting new episodes and notifications again, with nothing for the listener to do.
backend-changeRelease copy (verbatim — highest priority)
CHANGELOG.md (required developer copy)
Added
UpgradeAddressRepair,UpgradeRepairWorkerwith work namefeed-address-upgrade-repair): checks saved addresses through/v2/shows/feeds, swaps confirmed moves throughFeedAddressUpdater, re-reads each followed show and re-registers notifications, then reruns the cloud sync identity catch-up once.namespace_mismatch_counton backgroundfeed_fetch_resultevents.README What's New / Upcoming (required for user-impact changes)
Fixes
Test plan
UpgradeAddressRepairTest(24),UpgradeAddressRepairApiTest(3, realBoxLoreApiV2over MockWebServer with/v2/shows/feedsfixtures),CloudSyncIdentityTest(20),UpgradeRepairWorkerTest(6),PodcastNotificationRegistrationWorkerTest(5),AppContainerSmokeTest(6),FeedAnalyticsTracksTest:core:catalog,:core:database,:core:analytics,:core:network,:core:modeland:appunit tests, plus:app:compileDebugKotlinanddetekt:app:ktlintTestSourceSetCheckreports violations only in files this PR doesn't touch (FeedFirstSwitchTest,FeedFixSwitchesTest,SavedKillSwitchTest), which predate it.Notes (optional)
/v2/shows/feedsfixtures follow the route's code and tests field for field. They were not recorded from the live route.