{"action":"created","issue":{"url":"https://api.github.com/repos/aces/cbrain/issues/400","repository_url":"https://api.github.com/repos/aces/cbrain","labels_url":"https://api.github.com/repos/aces/cbrain/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/aces/cbrain/issues/400/comments","events_url":"https://api.github.com/repos/aces/cbrain/issues/400/events","html_url":"https://github.com/aces/cbrain/issues/400","id":160214663,"number":400,"title":"Refactor SmartDataProviderInterface's method that selects real provider","user":{"login":"prioux","id":777588,"avatar_url":"https://avatars.githubusercontent.com/u/777588?v=3","gravatar_id":"","url":"https://api.github.com/users/prioux","html_url":"https://github.com/prioux","followers_url":"https://api.github.com/users/prioux/followers","following_url":"https://api.github.com/users/prioux/following{/other_user}","gists_url":"https://api.github.com/users/prioux/gists{/gist_id}","starred_url":"https://api.github.com/users/prioux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prioux/subscriptions","organizations_url":"https://api.github.com/users/prioux/orgs","repos_url":"https://api.github.com/users/prioux/repos","events_url":"https://api.github.com/users/prioux/events{/privacy}","received_events_url":"https://api.github.com/users/prioux/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aces/cbrain/labels/Beginner","name":"Beginner","color":"aa88ff"},{"url":"https://api.github.com/repos/aces/cbrain/labels/Refactoring","name":"Refactoring","color":"4488ff"}],"state":"closed","locked":false,"assignee":{"login":"crocodoyle","id":345229,"avatar_url":"https://avatars.githubusercontent.com/u/345229?v=3","gravatar_id":"","url":"https://api.github.com/users/crocodoyle","html_url":"https://github.com/crocodoyle","followers_url":"https://api.github.com/users/crocodoyle/followers","following_url":"https://api.github.com/users/crocodoyle/following{/other_user}","gists_url":"https://api.github.com/users/crocodoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/crocodoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crocodoyle/subscriptions","organizations_url":"https://api.github.com/users/crocodoyle/orgs","repos_url":"https://api.github.com/users/crocodoyle/repos","events_url":"https://api.github.com/users/crocodoyle/events{/privacy}","received_events_url":"https://api.github.com/users/crocodoyle/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/aces/cbrain/milestones/8","html_url":"https://github.com/aces/cbrain/milestones/4.5.0","labels_url":"https://api.github.com/repos/aces/cbrain/milestones/8/labels","id":1799507,"number":8,"title":"4.5.0","description":"","creator":{"login":"natacha-beck","id":777590,"avatar_url":"https://avatars.githubusercontent.com/u/777590?v=3","gravatar_id":"","url":"https://api.github.com/users/natacha-beck","html_url":"https://github.com/natacha-beck","followers_url":"https://api.github.com/users/natacha-beck/followers","following_url":"https://api.github.com/users/natacha-beck/following{/other_user}","gists_url":"https://api.github.com/users/natacha-beck/gists{/gist_id}","starred_url":"https://api.github.com/users/natacha-beck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natacha-beck/subscriptions","organizations_url":"https://api.github.com/users/natacha-beck/orgs","repos_url":"https://api.github.com/users/natacha-beck/repos","events_url":"https://api.github.com/users/natacha-beck/events{/privacy}","received_events_url":"https://api.github.com/users/natacha-beck/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":8,"state":"open","created_at":"2016-05-31T18:58:15Z","updated_at":"2016-06-20T21:09:26Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-14T15:41:09Z","updated_at":"2016-06-20T21:09:26Z","closed_at":"2016-06-20T21:09:26Z","body":"SmartDataProviders, when instantiated, keep inside themselves an instance variable `@real_provider` assigned to a data provider object which will implement the functionality. That real provider is either a network provider or a local provider, depending on run-time context.\r\n\r\nThe way the choice is made is in a method called `select_local_or_network_provider` ; the code of this method could be refactored and improved quite a bit. Right now it builds two 'real' providers then assigns it to `@real_provider`. It should build just the one it needs by making the choice of context right at the top."},"comment":{"url":"https://api.github.com/repos/aces/cbrain/issues/comments/227270292","html_url":"https://github.com/aces/cbrain/issues/400#issuecomment-227270292","issue_url":"https://api.github.com/repos/aces/cbrain/issues/400","id":227270292,"user":{"login":"prioux","id":777588,"avatar_url":"https://avatars.githubusercontent.com/u/777588?v=3","gravatar_id":"","url":"https://api.github.com/users/prioux","html_url":"https://github.com/prioux","followers_url":"https://api.github.com/users/prioux/followers","following_url":"https://api.github.com/users/prioux/following{/other_user}","gists_url":"https://api.github.com/users/prioux/gists{/gist_id}","starred_url":"https://api.github.com/users/prioux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prioux/subscriptions","organizations_url":"https://api.github.com/users/prioux/orgs","repos_url":"https://api.github.com/users/prioux/repos","events_url":"https://api.github.com/users/prioux/events{/privacy}","received_events_url":"https://api.github.com/users/prioux/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T21:09:26Z","updated_at":"2016-06-20T21:09:26Z","body":"Indeed!"}}
{"actor":{"display_login":"prioux"}}