{"action":"created","issue":{"url":"https://api.github.com/repos/sixones/vitality/issues/40","labels_url":"https://api.github.com/repos/sixones/vitality/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/sixones/vitality/issues/40/comments","events_url":"https://api.github.com/repos/sixones/vitality/issues/40/events","html_url":"https://github.com/sixones/vitality/issues/40","id":51573972,"number":40,"title":"Database download on every startup","user":{"login":"emil-nasso","id":1119706,"avatar_url":"https://avatars.githubusercontent.com/u/1119706?v=3","gravatar_id":"","url":"https://api.github.com/users/emil-nasso","html_url":"https://github.com/emil-nasso","followers_url":"https://api.github.com/users/emil-nasso/followers","following_url":"https://api.github.com/users/emil-nasso/following{/other_user}","gists_url":"https://api.github.com/users/emil-nasso/gists{/gist_id}","starred_url":"https://api.github.com/users/emil-nasso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emil-nasso/subscriptions","organizations_url":"https://api.github.com/users/emil-nasso/orgs","repos_url":"https://api.github.com/users/emil-nasso/repos","events_url":"https://api.github.com/users/emil-nasso/events{/privacy}","received_events_url":"https://api.github.com/users/emil-nasso/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sixones/vitality/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-10T15:52:03Z","updated_at":"2015-01-08T19:49:31Z","closed_at":null,"body":"I get the dialog that tells me that the database is being updated and downloaded with every startup. Is this intended behavior?"},"comment":{"url":"https://api.github.com/repos/sixones/vitality/issues/comments/69237575","html_url":"https://github.com/sixones/vitality/issues/40#issuecomment-69237575","issue_url":"https://api.github.com/repos/sixones/vitality/issues/40","id":69237575,"user":{"login":"mbarthelemy","id":725869,"avatar_url":"https://avatars.githubusercontent.com/u/725869?v=3","gravatar_id":"","url":"https://api.github.com/users/mbarthelemy","html_url":"https://github.com/mbarthelemy","followers_url":"https://api.github.com/users/mbarthelemy/followers","following_url":"https://api.github.com/users/mbarthelemy/following{/other_user}","gists_url":"https://api.github.com/users/mbarthelemy/gists{/gist_id}","starred_url":"https://api.github.com/users/mbarthelemy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbarthelemy/subscriptions","organizations_url":"https://api.github.com/users/mbarthelemy/orgs","repos_url":"https://api.github.com/users/mbarthelemy/repos","events_url":"https://api.github.com/users/mbarthelemy/events{/privacy}","received_events_url":"https://api.github.com/users/mbarthelemy/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T19:49:31Z","updated_at":"2015-01-08T19:49:31Z","body":"It looks like\r\n\r\nDBManager.m: -(BOOL) dbVersionCheck:(NSInteger)minVersion;\r\n\r\nNever checks if the database shipped with the app is greater than the one that is installed at the default path, which for me is:\r\n\r\n/Users/xxxx/Library/Application Support/Vitality/database.sqlite\r\n\r\nDBManager.m: -(void) checkForUpdate\r\n\r\n\tXmlFetcher *fetcher = [[XmlFetcher alloc]initWithDelegate:self];\r\n\tNSString *path = [Config buildPathSingle:DBUPDATE_DEFN];\r\n\t[fetcher saveXmlDocument:url docName:UPDATE_FILE savePath:path];\r\n\t[fetcher release];\r\n\r\nA XmlFetcher object is alloced and then immediately released. It isn't clear if anything is keeping that object alive to do it's work.\r\n"}}