Commit Graph
1090 Commits
Author SHA1 Message Date
Brent Simmons 66423c5190 Remove long-obsolete migrateChangeToken and oldChangeTokenKey from CloudKitZone. 2026-03-23 10:49:48 -07:00
Brent Simmons 0dcfc92f9c Replace CloudKitSettings protocol with callback. 2026-03-23 10:46:51 -07:00
Brent Simmons 581a9125b7 Split CloudKit cleanup into incremental weekly path and unlimited cache-aware path for the stats UI. Bump incremental cleanup limit to 400. 2026-03-23 09:43:17 -07:00
Brent Simmons b9cc340e41 Switch from daily to weekly cleanup to cut down on cost of it. 2026-03-23 09:37:02 -07:00
Brent Simmons 8df4016d81 Share a cache between the CloudKit stats scan and the cleanup. Efficiency gain. 2026-03-23 08:55:28 -07:00
Brent Simmons d894ef1ee7 Use the already-scanned status records in the article content scan. Major efficiency gain during the scan. 2026-03-23 08:34:30 -07:00
Brent Simmons 2950c04adf Fix pageHandler in CloudKit queries to pass current page records only and not all accumulated records. 2026-03-22 20:52:49 -07:00
Brent Simmons 481782646d Log errors and post error notifications during CloudKit scan. 2026-03-22 20:47:52 -07:00
Brent Simmons 145bcd5487 Update to latest Tidemark. 2026-03-22 20:42:08 -07:00
Brent Simmons 140c2e9aa4 Allow Xcode to do its housekeeping. 2026-03-22 20:13:13 -07:00
Brent Simmons 5ea6d9639f Add a dryRun parameter to the iCloud records cleanup. 2026-03-22 20:12:07 -07:00
Brent Simmons e824c29f24 Call postSyncError in places where errors where being ignored. 2026-03-22 12:29:57 -07:00
Brent Simmons 1cdaf89263 Add fetchStats and cleanup to CloudKitArticlesZone. 2026-03-22 11:46:19 -07:00
Brent Simmons cb70e717ab Add function to fetch stats. Add function to clean up iCloud storage if needed (runs once a day at most). 2026-03-21 20:51:46 -07:00
Brent Simmons 1766a4b819 Create CloudKitStatsProgressHandler typealias. 2026-03-21 20:42:17 -07:00
Brent Simmons 5ede548767 Fix build error. 2026-03-21 20:40:12 -07:00
Brent Simmons 0be05c5f5e Call the delegate to fetch iCloud stats. 2026-03-21 20:38:39 -07:00
Brent Simmons 94c91974a1 Rename model.zoneStats to model.stats. 2026-03-21 20:36:25 -07:00
Brent Simmons 2e770fd5ad Create model and view model for CloudKit Storage Stats screen. 2026-03-21 15:19:47 -07:00
Brent Simmons 76610c751a Add pageHandler callback for paginated queries. 2026-03-21 14:14:49 -07:00
Brent Simmons 7c7b2b04ea Add iCloudAccount computed property to eliminate duplication of code that filters for it. 2026-03-21 13:34:55 -07:00
Brent Simmons 11b94a32aa Make sure fetchingAllUnreadCounts gets set to false before returning. 2026-03-19 19:25:44 -07:00
Brent Simmons 86ec025799 Add debug logging to show when it's skipping syncing content of unread articles. 2026-03-19 16:38:22 -07:00
Brent Simmons dd39dae945 Move key for iCloud content syncing to Account so it's available to settings screens. 2026-03-19 16:38:22 -07:00
Brent Simmons 143e79138a Pass CloudKitSettings around as needed and use it to check if syncing content of unread articles. 2026-03-19 16:38:22 -07:00
Brent Simmons 2a99a24fc3 Create CloudKitSettings protocol to have a thing to pass around for the syncArticleContentForUnreadArticles setting. 2026-03-19 16:38:22 -07:00
Brent Simmons af288dc816 Call CloudKitAccountDelegate to migrate the new iCloud setting for syncing content of unread articles. 2026-03-19 16:38:22 -07:00
Brent Simmons 5c9f09e569 Handle the syncArticleContentForUnreadArticles setting. 2026-03-19 16:38:22 -07:00
Brent Simmons 8f28489d38 Fix bug storing credentials in Keychain when there's a previous item. 2026-03-18 15:46:51 -07:00
Brent Simmons bcbbb4b7f5 Fix some warnings — put the Anys back. 2026-03-17 10:52:26 -07:00
Brent Simmons 90600a8008 Remove the minimum for cache-control max-age, since we’re enforcing a minimum elsewhere. 2026-03-17 08:50:49 -07:00
Brent Simmons 87f360bf90 Write to FeedSettings.db on background thread. 2026-03-16 21:55:47 -07:00
Brent Simmons 6af7177679 Mark CacheControlInfo and HTTPConditionalGetInfo as Sendable. 2026-03-16 21:14:59 -07:00
Brent Simmons 58331d3a9d Add a minimum of 29 minutes between checks for each feed. 2026-03-16 17:51:14 -07:00
Brent Simmons 280bbbf5f5 Respect cache-control, but use min 30 minutes and max 5 hours (since sites often have this misconfigured, often wildly). 2026-03-16 17:20:59 -07:00
Brent Simmons ad51fd4fbf Add canResume function that takes min and max limits. 2026-03-16 16:54:27 -07:00
Brent Simmons f1c37a2119 Delete account settings on deleting account. 2026-03-16 14:27:50 -07:00
Brent Simmons 4bd3da7dc5 Make refreshInProgress public. Needed for account settings control validation. 2026-03-16 11:35:50 -07:00
Brent Simmons 432468c302 Delete from the sync queue statuses that have been sent to the server, to fix a bug where all the statuses are sent every time. Fixes #5192. 2026-03-16 09:36:52 -07:00
Brent Simmons 01c3671e4d Handle app-background notification. 2026-03-14 22:00:25 -07:00
Brent Simmons 9cc400c3ec Handle renaming of function. 2026-03-14 21:52:20 -07:00
Brent Simmons 52622366c9 Create AppNotification struct. 2026-03-14 21:51:46 -07:00
Brent Simmons eb099f539b Empty Article caches on app-background and low-memory notifications. 2026-03-14 21:51:27 -07:00
Brent Simmons 16ac60ba41 Rename Notifications.swift to AppNotifications.swift. 2026-03-14 21:47:52 -07:00
Brent Simmons c38cfbb9be Import API URL properly from account settings. Add tests. 2026-03-14 10:37:20 -07:00
Brent Simmons f8980a51b5 Add Debug menu command Vacuum Databases. 2026-03-13 21:54:13 -07:00
Brent Simmons e8815abe23 Post error notifications. 2026-03-13 21:24:50 -07:00
Brent Simmons fe4b0f1219 Post appDidEncounterError notification on main thread. 2026-03-13 20:51:22 -07:00
Brent Simmons 64540dbde5 Vacuum FeedSettings and Sync databases on launch. 2026-03-13 09:01:45 -07:00
Brent Simmons 84e3167282 Call FMDatabase(extras).vacuum, which now does logging, so we know how long it takes. 2026-03-13 08:52:55 -07:00