forked from nusCS2113-AY1819S1/addressbook-level4
-
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
[v1.2] Backup Feature #47
Merged
ChenSongJian
merged 26 commits into
CS2113-AY1819S1-T13-1:master
from
QzSG:feature/backup
Oct 10, 2018
Merged
[v1.2] Backup Feature #47
ChenSongJian
merged 26 commits into
CS2113-AY1819S1-T13-1:master
from
QzSG:feature/backup
Oct 10, 2018
Conversation
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
Add backup file path to user preferences model. Modified equals to compare backup location Modified string builder to include backup path
Modify ExtraValues json test file Add `addressBookBackupFilePath` to typical user prefs json test file
[Model] UserPrefs is required to be in model manager as commands run can affect user preferences which should be part of model. Refer to original AB4 architecture diagram Added getUserPref method to Model interface Fix UserPref model returning wrong path in getAddressBookBackupFilePath [Tests] Fix Stubbed ModelManager in AddCommandTest
Make AddressBookStorage and XmlAddressBookStorage have the required backup methods
As long as AddressBook data are equal, userprefs can be different which is okay
Backup Command currently calls model.backupAddressBook, perhaps we should raise a backup request event from command direct and get handled by storage manager directly as we do not need to modify the model
More tests Bug Fixes
Resolve conflicts
Impossible to make exception to be thrown on linux even with mocking for invalid paths
Create generic online storage module Implement working backup to github gist Modify backup command to accept github backup
ChenSongJian
approved these changes
Oct 10, 2018
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.
LGTM!
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.
Relevant #38