{"action":"closed","issue":{"url":"https://api.github.com/repos/CMPUT301F15T10/Exchange/issues/67","labels_url":"https://api.github.com/repos/CMPUT301F15T10/Exchange/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/CMPUT301F15T10/Exchange/issues/67/comments","events_url":"https://api.github.com/repos/CMPUT301F15T10/Exchange/issues/67/events","html_url":"https://github.com/CMPUT301F15T10/Exchange/issues/67","id":117957012,"number":67,"title":"Design Issue regarding offline storage","user":{"login":"touqir14","id":6683928,"avatar_url":"https://avatars.githubusercontent.com/u/6683928?v=3","gravatar_id":"","url":"https://api.github.com/users/touqir14","html_url":"https://github.com/touqir14","followers_url":"https://api.github.com/users/touqir14/followers","following_url":"https://api.github.com/users/touqir14/following{/other_user}","gists_url":"https://api.github.com/users/touqir14/gists{/gist_id}","starred_url":"https://api.github.com/users/touqir14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/touqir14/subscriptions","organizations_url":"https://api.github.com/users/touqir14/orgs","repos_url":"https://api.github.com/users/touqir14/repos","events_url":"https://api.github.com/users/touqir14/events{/privacy}","received_events_url":"https://api.github.com/users/touqir14/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-20T03:15:49Z","updated_at":"2015-12-01T06:11:54Z","closed_at":"2015-12-01T06:11:54Z","body":"I thought a bit about what Charles pointed out during our group discussion on Model View Controller Architecture. It seems it would be better to include a controller. So, say for example now when you add a new book from the inventory activity, the data is not updated with our local storage. Only if you exit from inventory activity that the inventory object is sent back to the home activity from which the model can be updated. If instead we use controllers from our UI activities that can directly save the data to the model before exiting, it will be better as I believe this what our TA and prof are expecting. Also that means that the loading and saving has to be efficient as at one point the data can get big. What do you guys think about storage efficiency issue? "}}