Commit Graph
663 Commits
Author SHA1 Message Date
Brent Simmons eccdfcbc06 Add detail to activity log referencing minimum time between refreshes. 2026-05-29 14:22:53 -07:00
Brent Simmons d418b47563 Use 1 minute ago instead of 1 minutes ago. 2026-05-29 14:16:03 -07:00
Brent Simmons 51168fbf88 Fix bug where iCloud refresh had two activities. 2026-05-29 14:10:41 -07:00
Brent Simmons ec469364af Add per-page CloudKit activity log entries. 2026-05-29 14:04:33 -07:00
Brent Simmons 1907b9716a Post to error log for more cases in feed refreshing. 2026-05-29 13:14:25 -07:00
Brent Simmons dc37e5060d Add error detail to activity. 2026-05-29 13:09:49 -07:00
Brent Simmons 7b6e5fcbd6 Revise comments. 2026-05-29 13:09:38 -07:00
Brent Simmons e4deea8781 Add additional detail to activity log. 2026-05-29 12:26:42 -07:00
Brent Simmons 39d9da60a0 Add logging. 2026-05-29 12:26:32 -07:00
Brent Simmons 13d123f365 Add logging for initial fetches. Plenty fast on my M1 Mac: homePageFavicon 245 rows in 0.000416 seconds, feedIconURL 13 rows
in 0.000048 seconds, downloadFailure 48 rows in 0.000077 seconds, total 0.000564 seconds
2026-05-29 11:20:46 -07:00
Brent Simmons b919782eb3 Handle transient failures (DNS, certificate, etc.) and retry after n hours. 2026-05-29 11:12:20 -07:00
Brent Simmons 3af0d7cf2f Make sure image URLs start with http:// or https://. 2026-05-29 11:02:44 -07:00
Brent Simmons 2205420868 Use WAL for image database. 2026-05-29 11:00:04 -07:00
Brent Simmons 4d14ef7ce4 Explain error with images that return a 200 response but can’t be decoded. 2026-05-29 10:56:50 -07:00
Brent Simmons 133a87797f Rename lastStatusCode to statusCode. 2026-05-29 10:52:23 -07:00
Brent Simmons 973b79a1fc Move images code to new Images module. 2026-05-29 10:46:00 -07:00
Brent Simmons 41b3883906 Make ImageMetadataDatabase the sole source of metadata info. Make it @MainActor so it’s easier to use from other code. 2026-05-29 10:08:08 -07:00
Brent Simmons 1ad3a09680 Rename lastStatusCode to statusCode. 2026-05-29 09:23:29 -07:00
Brent Simmons 50b12ad3a7 Remove outdated assertion. 2026-05-29 09:08:27 -07:00
Brent Simmons 40cda0b2be Add Images module which manages a database of metadata about images. 2026-05-29 08:52:54 -07:00
Brent Simmons d7dcf94f89 Fix bug retrieving cached HTML metadata from database. 2026-05-28 10:26:58 -07:00
Brent Simmons 49c23da9e0 Do icon prefetch instead of on demand by cell, add activity reporting for downloading images, add CloudKit no change back-off, and remove backslashes from HTMLMetadata JSON encoding. 2026-05-28 09:28:06 -07:00
Brent Simmons 662c18bb5f Remove unneeded self. 2026-05-28 08:31:39 -07:00
Brent Simmons 405adb33d8 Remove stale activities — time out after 15 minutes. (This should never happen, but just in case.) 2026-05-28 08:22:38 -07:00
Brent Simmons 1676a760f1 Create an overall refresh activity for CloudKit. 2026-05-28 08:22:08 -07:00
Brent Simmons 7679d6232e Add more info to refresh activity. 2026-05-27 20:50:50 -07:00
Brent Simmons 69cd3ec768 Add additional activity reporting. 2026-05-27 20:21:28 -07:00
Brent Simmons 5f2cb88897 Add ActivityLog module. It’s for tracking activities — so we can have an activity log and current activity UI. 2026-05-27 18:49:16 -07:00
Brent Simmons 91aa17f7d2 Move HTMLMetadata cache to a database. 2026-05-27 17:16:44 -07:00
Brent Simmons 5763e30110 Call vacuumIfNeeded. 2026-05-27 16:48:35 -07:00
Brent Simmons ceb9518777 Add system for keeping track of vacuum dates and vacuuming when needed. 2026-05-27 16:47:19 -07:00
Brent Simmons 2dddd38461 Ignore Package.resolved files in modules. 2026-05-27 15:51:56 -07:00
Brent Simmons ce24ad8311 Retry CloudKit modify on transient networkFailure so iOS feed renames stick. Fixes #5263. 2026-05-27 14:49:53 -07:00
Brent Simmons 8c02fb3ba4 Fix case where a title (or other tag) doesn’t have a prefix but is inside a namespaced section (<s:variant> for instance). Fixes #4422. 2026-05-26 19:45:34 -07:00
Brent Simmons e1111168f0 Fix sandboxing issues with default browser setting. 2026-05-23 10:12:30 -07:00
Brent Simmons 18c9102101 Fix bug respecting user settings for default browser. Fixes #5287. 2026-05-23 09:50:42 -07:00
Brent Simmons 820dd504f1 Fix SwiftLint issues. 2026-05-22 10:01:54 -07:00
Brent Simmons fd547da76e Respect cache-control header, when present, for minimum time between feed refreshes. 2026-05-22 09:52:14 -07:00
Brent Simmons ad7f98d894 Make the minimum time between feed checks 9 minutes instead of 29 minutes. 2026-05-22 09:10:57 -07:00
Brent Simmons ff623614f3 Remove the download cache from the feed refresher. Now using other mechanisms to prevent excessive feed polling. 2026-05-15 13:55:12 -07:00
Brent Simmons a187eeb92c Shorten TTL for the Downloader cache and clean up more often. This is part of lowering memory use. 2026-05-15 13:54:27 -07:00
Brent Simmons 0c4fd3ed2d Remove no-longer-used vacuumIfNeeded. 2026-04-29 16:35:06 -07:00
Brent Simmons b64de0cd6e Add logging and signpost for fetching articles. 2026-04-29 16:23:26 -07:00
Brent Simmons a1ce49286e Delete some unused code. 2026-04-29 16:19:20 -07:00
Brent Simmons 66bdf3a7ab Delete database ID cache — it was complexity not actually needed. 2026-04-29 15:50:08 -07:00
Brent Simmons e9ae90ca26 Delete no-longer-needed code. 2026-04-29 15:40:32 -07:00
Brent Simmons b811981f45 Complete authors schema migration. Read and write to JSON authors column. Delete old tables and indexes. 2026-04-29 15:31:40 -07:00
Brent Simmons 0c3245c41b Migrate authors from two separate tables into a JSON-encoded column in articles. 2026-04-29 15:02:56 -07:00
Brent Simmons 48c9f1af90 Add AuthorCache to de-duplicate Authors. 2026-04-29 09:00:55 -07:00
Brent Simmons 3411bc9eef Add more no-minimum-interval feed domains. 2026-04-28 07:45:03 -07:00