-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor out is_saved flag for Things
Boolean flag was used to indicate if a Thing was currently located in the journal or temporarily stored in recent entries. This wasn't ideal because the data saved to journal/recent included the flag, so there was a lot of bespoke logic to ensure (maybe unsuccessfully) that the flag was never accidentally saved to the wrong place. Instead, we wrap the Thing in an ephemeral wrapper called Record, making the saved-ness of the Thing accessible through the return value if needed but without bothering to include it in either the stored data or code that interacts with the data directly without regard for where it came from.
- Loading branch information
1 parent
2be8082
commit 253af1a
Showing
13 changed files
with
431 additions
and
329 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.