-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add context swinging #77
Conversation
Refactor state -> context
Add stubs for archives context
Behavior should be the same, both returns a defensive copy of Model
Add system test for context-switching
Realised that using clone() is probably not defensive since Storage and UserPrefs cloned along with EntryBook
e23721c
to
0513883
Compare
0513883
to
1e67b65
Compare
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Only thing I'm still not too sure about is how best to communicate the current context to the user.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's only natural for coverage to drop through such huge refactors.
Resolves #79
Resolves part of #69 and #70.
Summary of changes
ModelContext