{"action":"closed","number":214,"pull_request":{"url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/214","id":48190738,"html_url":"https://github.com/eHealthAfrica/direct-delivery-dashboard/pull/214","diff_url":"https://github.com/eHealthAfrica/direct-delivery-dashboard/pull/214.diff","patch_url":"https://github.com/eHealthAfrica/direct-delivery-dashboard/pull/214.patch","issue_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/issues/214","number":214,"state":"closed","locked":false,"title":"Add state-level access control","user":{"login":"tlvince","id":323761,"avatar_url":"https://avatars.githubusercontent.com/u/323761?v=3","gravatar_id":"","url":"https://api.github.com/users/tlvince","html_url":"https://github.com/tlvince","followers_url":"https://api.github.com/users/tlvince/followers","following_url":"https://api.github.com/users/tlvince/following{/other_user}","gists_url":"https://api.github.com/users/tlvince/gists{/gist_id}","starred_url":"https://api.github.com/users/tlvince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlvince/subscriptions","organizations_url":"https://api.github.com/users/tlvince/orgs","repos_url":"https://api.github.com/users/tlvince/repos","events_url":"https://api.github.com/users/tlvince/events{/privacy}","received_events_url":"https://api.github.com/users/tlvince/received_events","type":"User","site_admin":false},"body":"Adds state-level access control.\r\n\r\nUsage:\r\n\r\n* Run `gulp views fixtures users`\r\n* Add a new role to the `gis` user, in the format:\r\n\r\n```\r\ndirect_delivery_dashboard_state_[state_code]\r\n```\r\n\r\n... where `state_code` corresponds the lowercase `_id` of a state (level: 2) in\r\nthe `locations.json` fixtures. For example:\r\n\r\n```\r\ndirect_delivery_dashboard_state_kn\r\n```\r\n\r\nIn the planning tab, you should only see the Kano delivery round fixture listed (and not Bauchi).","created_at":"2015-10-20T11:59:56Z","updated_at":"2015-10-22T10:57:43Z","closed_at":"2015-10-22T10:57:43Z","merged_at":"2015-10-22T10:57:43Z","merge_commit_sha":"fe44a16762e9a13662c9849a02c51fe95b8760d2","assignee":{"login":"jofomah","id":5929681,"avatar_url":"https://avatars.githubusercontent.com/u/5929681?v=3","gravatar_id":"","url":"https://api.github.com/users/jofomah","html_url":"https://github.com/jofomah","followers_url":"https://api.github.com/users/jofomah/followers","following_url":"https://api.github.com/users/jofomah/following{/other_user}","gists_url":"https://api.github.com/users/jofomah/gists{/gist_id}","starred_url":"https://api.github.com/users/jofomah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jofomah/subscriptions","organizations_url":"https://api.github.com/users/jofomah/orgs","repos_url":"https://api.github.com/users/jofomah/repos","events_url":"https://api.github.com/users/jofomah/events{/privacy}","received_events_url":"https://api.github.com/users/jofomah/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/214/commits","review_comments_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/214/comments","review_comment_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/issues/214/comments","statuses_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/statuses/c567fc51c97217c199bc3deb8ded959c1d7a512b","head":{"label":"tlvince:auth-location","ref":"auth-location","sha":"c567fc51c97217c199bc3deb8ded959c1d7a512b","user":{"login":"tlvince","id":323761,"avatar_url":"https://avatars.githubusercontent.com/u/323761?v=3","gravatar_id":"","url":"https://api.github.com/users/tlvince","html_url":"https://github.com/tlvince","followers_url":"https://api.github.com/users/tlvince/followers","following_url":"https://api.github.com/users/tlvince/following{/other_user}","gists_url":"https://api.github.com/users/tlvince/gists{/gist_id}","starred_url":"https://api.github.com/users/tlvince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlvince/subscriptions","organizations_url":"https://api.github.com/users/tlvince/orgs","repos_url":"https://api.github.com/users/tlvince/repos","events_url":"https://api.github.com/users/tlvince/events{/privacy}","received_events_url":"https://api.github.com/users/tlvince/received_events","type":"User","site_admin":false},"repo":{"id":43000871,"name":"direct-delivery-dashboard","full_name":"tlvince/direct-delivery-dashboard","owner":{"login":"tlvince","id":323761,"avatar_url":"https://avatars.githubusercontent.com/u/323761?v=3","gravatar_id":"","url":"https://api.github.com/users/tlvince","html_url":"https://github.com/tlvince","followers_url":"https://api.github.com/users/tlvince/followers","following_url":"https://api.github.com/users/tlvince/following{/other_user}","gists_url":"https://api.github.com/users/tlvince/gists{/gist_id}","starred_url":"https://api.github.com/users/tlvince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tlvince/subscriptions","organizations_url":"https://api.github.com/users/tlvince/orgs","repos_url":"https://api.github.com/users/tlvince/repos","events_url":"https://api.github.com/users/tlvince/events{/privacy}","received_events_url":"https://api.github.com/users/tlvince/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tlvince/direct-delivery-dashboard","description":"Dashboard for the direct delivery management system","fork":true,"url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard","forks_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/forks","keys_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/teams","hooks_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/hooks","issue_events_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/events","assignees_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/tags","blobs_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/languages","stargazers_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/stargazers","contributors_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/contributors","subscribers_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/subscribers","subscription_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/subscription","commits_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/merges","archive_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/downloads","issues_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/tlvince/direct-delivery-dashboard/releases{/id}","created_at":"2015-09-23T12:56:46Z","updated_at":"2015-09-23T12:56:48Z","pushed_at":"2015-10-22T09:33:47Z","git_url":"git://github.com/tlvince/direct-delivery-dashboard.git","ssh_url":"git@github.com:tlvince/direct-delivery-dashboard.git","clone_url":"https://github.com/tlvince/direct-delivery-dashboard.git","svn_url":"https://github.com/tlvince/direct-delivery-dashboard","homepage":"https://dev-dd.ehealth.org.ng/","size":852,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"eHealthAfrica:develop","ref":"develop","sha":"358144cbf1a795714007811816247354ebac3492","user":{"login":"eHealthAfrica","id":3214042,"avatar_url":"https://avatars.githubusercontent.com/u/3214042?v=3","gravatar_id":"","url":"https://api.github.com/users/eHealthAfrica","html_url":"https://github.com/eHealthAfrica","followers_url":"https://api.github.com/users/eHealthAfrica/followers","following_url":"https://api.github.com/users/eHealthAfrica/following{/other_user}","gists_url":"https://api.github.com/users/eHealthAfrica/gists{/gist_id}","starred_url":"https://api.github.com/users/eHealthAfrica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eHealthAfrica/subscriptions","organizations_url":"https://api.github.com/users/eHealthAfrica/orgs","repos_url":"https://api.github.com/users/eHealthAfrica/repos","events_url":"https://api.github.com/users/eHealthAfrica/events{/privacy}","received_events_url":"https://api.github.com/users/eHealthAfrica/received_events","type":"Organization","site_admin":false},"repo":{"id":29234421,"name":"direct-delivery-dashboard","full_name":"eHealthAfrica/direct-delivery-dashboard","owner":{"login":"eHealthAfrica","id":3214042,"avatar_url":"https://avatars.githubusercontent.com/u/3214042?v=3","gravatar_id":"","url":"https://api.github.com/users/eHealthAfrica","html_url":"https://github.com/eHealthAfrica","followers_url":"https://api.github.com/users/eHealthAfrica/followers","following_url":"https://api.github.com/users/eHealthAfrica/following{/other_user}","gists_url":"https://api.github.com/users/eHealthAfrica/gists{/gist_id}","starred_url":"https://api.github.com/users/eHealthAfrica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eHealthAfrica/subscriptions","organizations_url":"https://api.github.com/users/eHealthAfrica/orgs","repos_url":"https://api.github.com/users/eHealthAfrica/repos","events_url":"https://api.github.com/users/eHealthAfrica/events{/privacy}","received_events_url":"https://api.github.com/users/eHealthAfrica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/eHealthAfrica/direct-delivery-dashboard","description":"Dashboard for the direct delivery management system","fork":false,"url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard","forks_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/forks","keys_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/teams","hooks_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/hooks","issue_events_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/events","assignees_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/tags","blobs_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/languages","stargazers_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/stargazers","contributors_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/contributors","subscribers_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/subscribers","subscription_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/subscription","commits_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/merges","archive_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/downloads","issues_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/releases{/id}","created_at":"2015-01-14T08:22:52Z","updated_at":"2015-09-28T17:43:42Z","pushed_at":"2015-10-22T10:57:43Z","git_url":"git://github.com/eHealthAfrica/direct-delivery-dashboard.git","ssh_url":"git@github.com:eHealthAfrica/direct-delivery-dashboard.git","clone_url":"https://github.com/eHealthAfrica/direct-delivery-dashboard.git","svn_url":"https://github.com/eHealthAfrica/direct-delivery-dashboard","homepage":"https://dev-dd.ehealth.org.ng/","size":1894,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":55,"forks":7,"open_issues":55,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/214"},"html":{"href":"https://github.com/eHealthAfrica/direct-delivery-dashboard/pull/214"},"issue":{"href":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/issues/214"},"comments":{"href":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/eHealthAfrica/direct-delivery-dashboard/statuses/c567fc51c97217c199bc3deb8ded959c1d7a512b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jofomah","id":5929681,"avatar_url":"https://avatars.githubusercontent.com/u/5929681?v=3","gravatar_id":"","url":"https://api.github.com/users/jofomah","html_url":"https://github.com/jofomah","followers_url":"https://api.github.com/users/jofomah/followers","following_url":"https://api.github.com/users/jofomah/following{/other_user}","gists_url":"https://api.github.com/users/jofomah/gists{/gist_id}","starred_url":"https://api.github.com/users/jofomah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jofomah/subscriptions","organizations_url":"https://api.github.com/users/jofomah/orgs","repos_url":"https://api.github.com/users/jofomah/repos","events_url":"https://api.github.com/users/jofomah/events{/privacy}","received_events_url":"https://api.github.com/users/jofomah/received_events","type":"User","site_admin":false},"comments":13,"review_comments":0,"commits":17,"additions":355,"deletions":51,"changed_files":24}}