Repository navigation
feat(store): keep each list as it was last read - #80
Merged
Merged
Conversation
A show keeps its link to an entry after the entry leaves the list.
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.
Migration 3 adds two tables.
backend_idslinks a show to an entry of a backend by the number the service gives the work, and a show is at most one entry of a backend.list_entriesholds what each list held when it was last read.Store::filetakes one backend's list in one transaction. It files and links a show for each entry with no link, gives a linked show the entry's title, and replaces that backend's rows oflist_entries. A link stays when its entry leaves the list, so an entry that comes back is the show it was.Store::listedanswers every show of a backend's list with itsEntry. A row whose show is gone is refused asError::Showless, and a row that cannot be read asError::Entry, each naming the entry.benshi_core::listholdsEntry,EntryIdandFormat.StatusandRatingmove there frombenshi_store::queue.cargo test --workspacepasses, 844 tests.