{"action":"created","issue":{"url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/514","labels_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/514/labels{/name}","comments_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/514/comments","events_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/514/events","html_url":"https://github.com/johnpapa/angular-styleguide/issues/514","id":103771224,"number":514,"title":"With a data factory do you create a single data factory or do you have multiple data factories each of which handle a separate request to the server","user":{"login":"MichaelGofron","id":4534318,"avatar_url":"https://avatars.githubusercontent.com/u/4534318?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelGofron","html_url":"https://github.com/MichaelGofron","followers_url":"https://api.github.com/users/MichaelGofron/followers","following_url":"https://api.github.com/users/MichaelGofron/following{/other_user}","gists_url":"https://api.github.com/users/MichaelGofron/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelGofron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelGofron/subscriptions","organizations_url":"https://api.github.com/users/MichaelGofron/orgs","repos_url":"https://api.github.com/users/MichaelGofron/repos","events_url":"https://api.github.com/users/MichaelGofron/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelGofron/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-28T18:22:10Z","updated_at":"2015-08-28T18:33:50Z","closed_at":null,"body":"Currently my team is using a single data factory but we're not sure as to whether to separate it into multiple data factories in order to satisfy the single responsibility principle. It seems that the style guide recommends putting all data operations into a data factory."},"comment":{"url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/comments/135855456","html_url":"https://github.com/johnpapa/angular-styleguide/issues/514#issuecomment-135855456","issue_url":"https://api.github.com/repos/johnpapa/angular-styleguide/issues/514","id":135855456,"user":{"login":"zachlysobey","id":1310403,"avatar_url":"https://avatars.githubusercontent.com/u/1310403?v=3","gravatar_id":"","url":"https://api.github.com/users/zachlysobey","html_url":"https://github.com/zachlysobey","followers_url":"https://api.github.com/users/zachlysobey/followers","following_url":"https://api.github.com/users/zachlysobey/following{/other_user}","gists_url":"https://api.github.com/users/zachlysobey/gists{/gist_id}","starred_url":"https://api.github.com/users/zachlysobey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachlysobey/subscriptions","organizations_url":"https://api.github.com/users/zachlysobey/orgs","repos_url":"https://api.github.com/users/zachlysobey/repos","events_url":"https://api.github.com/users/zachlysobey/events{/privacy}","received_events_url":"https://api.github.com/users/zachlysobey/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T18:33:50Z","updated_at":"2015-08-28T18:33:50Z","body":"https://github.com/johnpapa/angular-styleguide#style-y050\n\n> Factories should have a single responsibility, that is encapsulated by\nits context. Once a factory begins to exceed that singular purpose, a new\nfactory should be created.\n\nZach Lysobey\n(203) 984-4048\n\nOn Fri, Aug 28, 2015 at 2:22 PM, Michael Gofron <notifications@github.com>\nwrote:\n\n> Currently my team is using a single data factory but we're not sure as to\n> whether to separate it into multiple data factories in order to satisfy the\n> single responsibility principle. It seems that the style guide recommends\n> putting all data operations into a data factory.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/johnpapa/angular-styleguide/issues/514>.\n>\n"}}