{"action":"created","issue":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1491","repository_url":"https://api.github.com/repos/cfpb/cfgov-refresh","labels_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1491/labels{/name}","comments_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1491/comments","events_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1491/events","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1491","id":135862861,"number":1491,"title":"Add new manager to deal with shared vs live appropriately","user":{"login":"kurtw","id":1412978,"avatar_url":"https://avatars.githubusercontent.com/u/1412978?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtw","html_url":"https://github.com/kurtw","followers_url":"https://api.github.com/users/kurtw/followers","following_url":"https://api.github.com/users/kurtw/following{/other_user}","gists_url":"https://api.github.com/users/kurtw/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtw/subscriptions","organizations_url":"https://api.github.com/users/kurtw/orgs","repos_url":"https://api.github.com/users/kurtw/repos","events_url":"https://api.github.com/users/kurtw/events{/privacy}","received_events_url":"https://api.github.com/users/kurtw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-23T20:57:54Z","updated_at":"2016-02-25T16:21:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/pulls/1491","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1491","diff_url":"https://github.com/cfpb/cfgov-refresh/pull/1491.diff","patch_url":"https://github.com/cfpb/cfgov-refresh/pull/1491.patch"},"body":"Makes sure the right pages are served by adding a query method to get a set of pages according to their status and hostname.\r\n\r\n## Additions\r\n\r\n- New manager\r\n\r\n## Testing\r\nThese should work. Look at the comments and change the command as needed.\r\n\r\n```\r\n./cfgov/manage shell\r\nfrom v1.models import CFGOVPage, BrowseFilterablePage\r\ncfgovpage = BrowseFilterable.objects.get() # this should get a page in your database. change as needed.\r\ncfgovpage.objects.shared() # should return shared pages\r\n# this will only really work if you have the two sites set up (content.localhost, localhost)\r\ncfgovpage.objects.live_shared('content.localhost') #should return shared or live pages \r\npage = BrowseFilterable.objects.get() # this should get a page in your database. change as needed.\r\npage.objects.shared()\r\npage.objects.live_shared()\r\n```\r\n\r\n## Review\r\n\r\n- @kave \r\n- @richaagarwal \r\n- @rosskarchner \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/comments/188861141","html_url":"https://github.com/cfpb/cfgov-refresh/pull/1491#issuecomment-188861141","issue_url":"https://api.github.com/repos/cfpb/cfgov-refresh/issues/1491","id":188861141,"user":{"login":"kurtw","id":1412978,"avatar_url":"https://avatars.githubusercontent.com/u/1412978?v=3","gravatar_id":"","url":"https://api.github.com/users/kurtw","html_url":"https://github.com/kurtw","followers_url":"https://api.github.com/users/kurtw/followers","following_url":"https://api.github.com/users/kurtw/following{/other_user}","gists_url":"https://api.github.com/users/kurtw/gists{/gist_id}","starred_url":"https://api.github.com/users/kurtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kurtw/subscriptions","organizations_url":"https://api.github.com/users/kurtw/orgs","repos_url":"https://api.github.com/users/kurtw/repos","events_url":"https://api.github.com/users/kurtw/events{/privacy}","received_events_url":"https://api.github.com/users/kurtw/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T16:21:22Z","updated_at":"2016-02-25T16:21:22Z","body":"Made comment fixes"}}