{"action":"closed","number":953,"pull_request":{"url":"https://api.github.com/repos/fossasia/susi_server/pulls/953","id":200338691,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMzM4Njkx","html_url":"https://github.com/fossasia/susi_server/pull/953","diff_url":"https://github.com/fossasia/susi_server/pull/953.diff","patch_url":"https://github.com/fossasia/susi_server/pull/953.patch","issue_url":"https://api.github.com/repos/fossasia/susi_server/issues/953","number":953,"state":"closed","locked":false,"title":"Added an API to allow Admin and higher userroles to change review status of any Skill","user":{"login":"Akshat-Jain","id":31135861,"node_id":"MDQ6VXNlcjMxMTM1ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/31135861?v=4","gravatar_id":"","url":"https://api.github.com/users/Akshat-Jain","html_url":"https://github.com/Akshat-Jain","followers_url":"https://api.github.com/users/Akshat-Jain/followers","following_url":"https://api.github.com/users/Akshat-Jain/following{/other_user}","gists_url":"https://api.github.com/users/Akshat-Jain/gists{/gist_id}","starred_url":"https://api.github.com/users/Akshat-Jain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akshat-Jain/subscriptions","organizations_url":"https://api.github.com/users/Akshat-Jain/orgs","repos_url":"https://api.github.com/users/Akshat-Jain/repos","events_url":"https://api.github.com/users/Akshat-Jain/events{/privacy}","received_events_url":"https://api.github.com/users/Akshat-Jain/received_events","type":"User","site_admin":false},"body":"Fixes #945 \r\n\r\n**Changes:** Added an API to allow Admin and higher userroles to change the review status of any Skill.\r\n\r\nFor example, the following API call `http://127.0.0.1:4000/cms/changeSkillStatus.json?model=general&group=Knowledge&language=en&skill=aboutsusi&reviewed=true&access_token=zdasIagg71JK9SB7u060ZxrRdHeFAx` adds the Skill `aboutsusi` to the list of reviewed Skills in `skillStatus.json` file. The JSON response of this API call is:\r\n```\r\n{\r\n  \"session\": {\"identity\": {\r\n    \"type\": \"email\",\r\n    \"name\": \"akjn11@gmail.com\",\r\n    \"anonymous\": false\r\n  }},\r\n  \"accepted\": true,\r\n  \"message\": \"Skill review status changed successfully.\"\r\n}\r\n```\r\n\r\nThis is also reflected in the skill metadata of the Skill `aboutsusi` where `reviewed` is set to `true`. The API call `http://localhost:4000/cms/getSkillMetadata.json?model=general&group=Knowledge&language=en&skill=aboutsusi` gives the following JSON output:\r\n\r\n```\r\n{\r\n  \"skill_metadata\": {\r\n    \"model\": \"general\",\r\n    \"group\": \"Knowledge\",\r\n    \"language\": \"en\",\r\n    \"developer_privacy_policy\": null,\r\n    \"descriptions\": \"Information about SUSI.AI\",\r\n    \"image\": \"images/aboutsusi.png\",\r\n    \"author\": \"manveer singh\",\r\n    \"author_url\": \"https://www.github.com/Manveer695\",\r\n    \"author_email\": null,\r\n    \"skill_name\": \"Aboutsusi\",\r\n    \"protected\": false,\r\n    \"reviewed\": true,\r\n    \"terms_of_use\": null,\r\n    \"dynamic_content\": false,\r\n    \"examples\": [\r\n      \"Do you have a name\",\r\n      \"Where do you belong?\",\r\n      \"SUSI\",\r\n      \"Are you SUSI\",\r\n      \"Fuck off\",\r\n      \"Can you tell me what made you\",\r\n      \"I love your answers SUSI\",\r\n      \"Thanks SUSI for your help\",\r\n      \"I really like you\"\r\n    ],\r\n    \"skill_rating\": {\r\n      \"negative\": \"0\",\r\n      \"bookmark_count\": 0,\r\n      \"positive\": \"0\",\r\n      \"stars\": {\r\n        \"one_star\": 0,\r\n        \"four_star\": 0,\r\n        \"five_star\": 0,\r\n        \"total_star\": 0,\r\n        \"three_star\": 0,\r\n        \"avg_star\": 0,\r\n        \"two_star\": 0\r\n      },\r\n      \"feedback_count\": 0\r\n    },\r\n    \"usage_count\": 0,\r\n    \"skill_tag\": \"aboutsusi\",\r\n    \"creationTime\": \"2018-06-28T04:31:15Z\",\r\n    \"lastAccessTime\": \"2018-07-10T09:38:32Z\",\r\n    \"lastModifiedTime\": \"2018-07-06T11:07:49Z\"\r\n  },\r\n  \"accepted\": true,\r\n  \"message\": \"Success: Fetched Skill's Metadata\",\r\n  \"session\": {\"identity\": {\r\n    \"type\": \"host\",\r\n    \"name\": \"0:0:0:0:0:0:0:1_d94a4646\",\r\n    \"anonymous\": true\r\n  }}\r\n}\r\n```\r\n","created_at":"2018-07-10T09:44:46Z","updated_at":"2018-07-10T21:29:58Z","closed_at":"2018-07-10T21:29:58Z","merged_at":"2018-07-10T21:29:57Z","merge_commit_sha":"e906665ee39c88b66d2aad2667a41b80619ac57f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"AnupKumarPanwar","id":10573038,"node_id":"MDQ6VXNlcjEwNTczMDM4","avatar_url":"https://avatars2.githubusercontent.com/u/10573038?v=4","gravatar_id":"","url":"https://api.github.com/users/AnupKumarPanwar","html_url":"https://github.com/AnupKumarPanwar","followers_url":"https://api.github.com/users/AnupKumarPanwar/followers","following_url":"https://api.github.com/users/AnupKumarPanwar/following{/other_user}","gists_url":"https://api.github.com/users/AnupKumarPanwar/gists{/gist_id}","starred_url":"https://api.github.com/users/AnupKumarPanwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnupKumarPanwar/subscriptions","organizations_url":"https://api.github.com/users/AnupKumarPanwar/orgs","repos_url":"https://api.github.com/users/AnupKumarPanwar/repos","events_url":"https://api.github.com/users/AnupKumarPanwar/events{/privacy}","received_events_url":"https://api.github.com/users/AnupKumarPanwar/received_events","type":"User","site_admin":false},{"login":"anshumanv","id":21009455,"node_id":"MDQ6VXNlcjIxMDA5NDU1","avatar_url":"https://avatars0.githubusercontent.com/u/21009455?v=4","gravatar_id":"","url":"https://api.github.com/users/anshumanv","html_url":"https://github.com/anshumanv","followers_url":"https://api.github.com/users/anshumanv/followers","following_url":"https://api.github.com/users/anshumanv/following{/other_user}","gists_url":"https://api.github.com/users/anshumanv/gists{/gist_id}","starred_url":"https://api.github.com/users/anshumanv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anshumanv/subscriptions","organizations_url":"https://api.github.com/users/anshumanv/orgs","repos_url":"https://api.github.com/users/anshumanv/repos","events_url":"https://api.github.com/users/anshumanv/events{/privacy}","received_events_url":"https://api.github.com/users/anshumanv/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/susi_server/pulls/953/commits","review_comments_url":"https://api.github.com/repos/fossasia/susi_server/pulls/953/comments","review_comment_url":"https://api.github.com/repos/fossasia/susi_server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/susi_server/issues/953/comments","statuses_url":"https://api.github.com/repos/fossasia/susi_server/statuses/4a594ceb18e32688926dda209ec1f15dc7e421b8","head":{"label":"Akshat-Jain:changeSkillStatusAPI","ref":"changeSkillStatusAPI","sha":"4a594ceb18e32688926dda209ec1f15dc7e421b8","user":{"login":"Akshat-Jain","id":31135861,"node_id":"MDQ6VXNlcjMxMTM1ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/31135861?v=4","gravatar_id":"","url":"https://api.github.com/users/Akshat-Jain","html_url":"https://github.com/Akshat-Jain","followers_url":"https://api.github.com/users/Akshat-Jain/followers","following_url":"https://api.github.com/users/Akshat-Jain/following{/other_user}","gists_url":"https://api.github.com/users/Akshat-Jain/gists{/gist_id}","starred_url":"https://api.github.com/users/Akshat-Jain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akshat-Jain/subscriptions","organizations_url":"https://api.github.com/users/Akshat-Jain/orgs","repos_url":"https://api.github.com/users/Akshat-Jain/repos","events_url":"https://api.github.com/users/Akshat-Jain/events{/privacy}","received_events_url":"https://api.github.com/users/Akshat-Jain/received_events","type":"User","site_admin":false},"repo":{"id":132250370,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIyNTAzNzA=","name":"susi_server","full_name":"Akshat-Jain/susi_server","owner":{"login":"Akshat-Jain","id":31135861,"node_id":"MDQ6VXNlcjMxMTM1ODYx","avatar_url":"https://avatars1.githubusercontent.com/u/31135861?v=4","gravatar_id":"","url":"https://api.github.com/users/Akshat-Jain","html_url":"https://github.com/Akshat-Jain","followers_url":"https://api.github.com/users/Akshat-Jain/followers","following_url":"https://api.github.com/users/Akshat-Jain/following{/other_user}","gists_url":"https://api.github.com/users/Akshat-Jain/gists{/gist_id}","starred_url":"https://api.github.com/users/Akshat-Jain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Akshat-Jain/subscriptions","organizations_url":"https://api.github.com/users/Akshat-Jain/orgs","repos_url":"https://api.github.com/users/Akshat-Jain/repos","events_url":"https://api.github.com/users/Akshat-Jain/events{/privacy}","received_events_url":"https://api.github.com/users/Akshat-Jain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Akshat-Jain/susi_server","description":"Software and Skills for Personal Assistants using SUSI AI / Artificial Intelligence for Chat Bots http://api.susi.ai","fork":true,"url":"https://api.github.com/repos/Akshat-Jain/susi_server","forks_url":"https://api.github.com/repos/Akshat-Jain/susi_server/forks","keys_url":"https://api.github.com/repos/Akshat-Jain/susi_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Akshat-Jain/susi_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Akshat-Jain/susi_server/teams","hooks_url":"https://api.github.com/repos/Akshat-Jain/susi_server/hooks","issue_events_url":"https://api.github.com/repos/Akshat-Jain/susi_server/issues/events{/number}","events_url":"https://api.github.com/repos/Akshat-Jain/susi_server/events","assignees_url":"https://api.github.com/repos/Akshat-Jain/susi_server/assignees{/user}","branches_url":"https://api.github.com/repos/Akshat-Jain/susi_server/branches{/branch}","tags_url":"https://api.github.com/repos/Akshat-Jain/susi_server/tags","blobs_url":"https://api.github.com/repos/Akshat-Jain/susi_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Akshat-Jain/susi_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Akshat-Jain/susi_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/Akshat-Jain/susi_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Akshat-Jain/susi_server/statuses/{sha}","languages_url":"https://api.github.com/repos/Akshat-Jain/susi_server/languages","stargazers_url":"https://api.github.com/repos/Akshat-Jain/susi_server/stargazers","contributors_url":"https://api.github.com/repos/Akshat-Jain/susi_server/contributors","subscribers_url":"https://api.github.com/repos/Akshat-Jain/susi_server/subscribers","subscription_url":"https://api.github.com/repos/Akshat-Jain/susi_server/subscription","commits_url":"https://api.github.com/repos/Akshat-Jain/susi_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/Akshat-Jain/susi_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/Akshat-Jain/susi_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/Akshat-Jain/susi_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/Akshat-Jain/susi_server/contents/{+path}","compare_url":"https://api.github.com/repos/Akshat-Jain/susi_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Akshat-Jain/susi_server/merges","archive_url":"https://api.github.com/repos/Akshat-Jain/susi_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Akshat-Jain/susi_server/downloads","issues_url":"https://api.github.com/repos/Akshat-Jain/susi_server/issues{/number}","pulls_url":"https://api.github.com/repos/Akshat-Jain/susi_server/pulls{/number}","milestones_url":"https://api.github.com/repos/Akshat-Jain/susi_server/milestones{/number}","notifications_url":"https://api.github.com/repos/Akshat-Jain/susi_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Akshat-Jain/susi_server/labels{/name}","releases_url":"https://api.github.com/repos/Akshat-Jain/susi_server/releases{/id}","deployments_url":"https://api.github.com/repos/Akshat-Jain/susi_server/deployments","created_at":"2018-05-05T13:27:59Z","updated_at":"2018-07-10T05:40:59Z","pushed_at":"2018-07-10T19:27:52Z","git_url":"git://github.com/Akshat-Jain/susi_server.git","ssh_url":"git@github.com:Akshat-Jain/susi_server.git","clone_url":"https://github.com/Akshat-Jain/susi_server.git","svn_url":"https://github.com/Akshat-Jain/susi_server","homepage":"","size":208676,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"b43b2a723e1f0832b9797c81ed290d3eff90faa0","user":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":68240213,"node_id":"MDEwOlJlcG9zaXRvcnk2ODI0MDIxMw==","name":"susi_server","full_name":"fossasia/susi_server","owner":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/susi_server","description":"Software and Skills for Personal Assistants using SUSI AI / Artificial Intelligence for Chat Bots http://api.susi.ai","fork":false,"url":"https://api.github.com/repos/fossasia/susi_server","forks_url":"https://api.github.com/repos/fossasia/susi_server/forks","keys_url":"https://api.github.com/repos/fossasia/susi_server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/susi_server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/susi_server/teams","hooks_url":"https://api.github.com/repos/fossasia/susi_server/hooks","issue_events_url":"https://api.github.com/repos/fossasia/susi_server/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/susi_server/events","assignees_url":"https://api.github.com/repos/fossasia/susi_server/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/susi_server/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/susi_server/tags","blobs_url":"https://api.github.com/repos/fossasia/susi_server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/susi_server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/susi_server/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/susi_server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/susi_server/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/susi_server/languages","stargazers_url":"https://api.github.com/repos/fossasia/susi_server/stargazers","contributors_url":"https://api.github.com/repos/fossasia/susi_server/contributors","subscribers_url":"https://api.github.com/repos/fossasia/susi_server/subscribers","subscription_url":"https://api.github.com/repos/fossasia/susi_server/subscription","commits_url":"https://api.github.com/repos/fossasia/susi_server/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/susi_server/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/susi_server/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/susi_server/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/susi_server/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/susi_server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/susi_server/merges","archive_url":"https://api.github.com/repos/fossasia/susi_server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/susi_server/downloads","issues_url":"https://api.github.com/repos/fossasia/susi_server/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/susi_server/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/susi_server/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/susi_server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/susi_server/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/susi_server/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/susi_server/deployments","created_at":"2016-09-14T20:21:09Z","updated_at":"2018-07-09T20:34:18Z","pushed_at":"2018-07-10T21:29:57Z","git_url":"git://github.com/fossasia/susi_server.git","ssh_url":"git@github.com:fossasia/susi_server.git","clone_url":"https://github.com/fossasia/susi_server.git","svn_url":"https://github.com/fossasia/susi_server","homepage":"","size":208454,"stargazers_count":925,"watchers_count":925,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":688,"mirror_url":null,"archived":false,"open_issues_count":98,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":688,"open_issues":98,"watchers":925,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/953"},"html":{"href":"https://github.com/fossasia/susi_server/pull/953"},"issue":{"href":"https://api.github.com/repos/fossasia/susi_server/issues/953"},"comments":{"href":"https://api.github.com/repos/fossasia/susi_server/issues/953/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/953/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/susi_server/pulls/953/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/susi_server/statuses/4a594ceb18e32688926dda209ec1f15dc7e421b8"}},"author_association":"MEMBER","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"mariobehling","id":1583873,"node_id":"MDQ6VXNlcjE1ODM4NzM=","avatar_url":"https://avatars3.githubusercontent.com/u/1583873?v=4","gravatar_id":"","url":"https://api.github.com/users/mariobehling","html_url":"https://github.com/mariobehling","followers_url":"https://api.github.com/users/mariobehling/followers","following_url":"https://api.github.com/users/mariobehling/following{/other_user}","gists_url":"https://api.github.com/users/mariobehling/gists{/gist_id}","starred_url":"https://api.github.com/users/mariobehling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariobehling/subscriptions","organizations_url":"https://api.github.com/users/mariobehling/orgs","repos_url":"https://api.github.com/users/mariobehling/repos","events_url":"https://api.github.com/users/mariobehling/events{/privacy}","received_events_url":"https://api.github.com/users/mariobehling/received_events","type":"User","site_admin":false},"comments":0,"review_comments":3,"maintainer_can_modify":false,"commits":1,"additions":138,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"mariobehling"}}