You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(I think that I am thinking to hard about this. Lost updates were a concern when Yarrharr was an SPA and I was looking at syncing the full state, but it's just not that likely for an SSR app with a low rate of change.)
Much like Article in #415, the Feed model mixes server-set and client-set fields. Unlike that issue the primary concern here is lost updates.
Server-set fields
url
— may be updatednext_check
,last_checked
,last_changed
— timestampserror
etag
,last_modified
,digest
feed_title
,site_url
— feed metadataClient-set fields
url
— entered by the usercreated
,deleted
user_title
Server- and client-set fields
all_count
unread_count
fave_count
Proposed changes
Split into a few models:
Feed
Defines a feed to check. Contains the client-set fields.
The
url
field contains the URL originally entered by the user.FeedState
Contains the server-set fields.
The
current_url
field contains the URL after persisting any permanent redirects.FeedCounts
Contains
all_count
,unread_count
, andfave_count
. Maintained exclusively by triggers?The text was updated successfully, but these errors were encountered: