{"action":"created","comment":{"url":"https://api.github.com/repos/omisego/ewallet/pulls/comments/197415412","pull_request_review_id":131155950,"id":197415412,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NzQxNTQxMg==","diff_hunk":"@@ -41,6 +41,12 @@ defmodule EWalletDB.APIKey do\n     |> assoc_constraint(:account)\n   end\n \n+  defp update_changeset(%APIKey{} = key, attrs) do","path":"apps/ewallet_db/lib/ewallet_db/api_key.ex","position":13,"original_position":13,"commit_id":"28747f4c9bba7f5930804a733b114f32439d0eeb","original_commit_id":"28747f4c9bba7f5930804a733b114f32439d0eeb","user":{"login":"unnawut","id":921194,"node_id":"MDQ6VXNlcjkyMTE5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/921194?v=4","gravatar_id":"","url":"https://api.github.com/users/unnawut","html_url":"https://github.com/unnawut","followers_url":"https://api.github.com/users/unnawut/followers","following_url":"https://api.github.com/users/unnawut/following{/other_user}","gists_url":"https://api.github.com/users/unnawut/gists{/gist_id}","starred_url":"https://api.github.com/users/unnawut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unnawut/subscriptions","organizations_url":"https://api.github.com/users/unnawut/orgs","repos_url":"https://api.github.com/users/unnawut/repos","events_url":"https://api.github.com/users/unnawut/events{/privacy}","received_events_url":"https://api.github.com/users/unnawut/received_events","type":"User","site_admin":false},"body":"Yes! Thank you for letting updates only on specific fields! 🎉 ","created_at":"2018-06-22T11:11:12Z","updated_at":"2018-06-22T11:11:21Z","html_url":"https://github.com/omisego/ewallet/pull/265#discussion_r197415412","pull_request_url":"https://api.github.com/repos/omisego/ewallet/pulls/265","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/omisego/ewallet/pulls/comments/197415412"},"html":{"href":"https://github.com/omisego/ewallet/pull/265#discussion_r197415412"},"pull_request":{"href":"https://api.github.com/repos/omisego/ewallet/pulls/265"}}},"pull_request":{"url":"https://api.github.com/repos/omisego/ewallet/pulls/265","id":196642906,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2NjQyOTA2","html_url":"https://github.com/omisego/ewallet/pull/265","diff_url":"https://github.com/omisego/ewallet/pull/265.diff","patch_url":"https://github.com/omisego/ewallet/pull/265.patch","issue_url":"https://api.github.com/repos/omisego/ewallet/issues/265","number":265,"state":"open","locked":false,"title":"Allow API keys to be disabled/enabled","user":{"login":"T-Dnzt","id":2647689,"node_id":"MDQ6VXNlcjI2NDc2ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/2647689?v=4","gravatar_id":"","url":"https://api.github.com/users/T-Dnzt","html_url":"https://github.com/T-Dnzt","followers_url":"https://api.github.com/users/T-Dnzt/followers","following_url":"https://api.github.com/users/T-Dnzt/following{/other_user}","gists_url":"https://api.github.com/users/T-Dnzt/gists{/gist_id}","starred_url":"https://api.github.com/users/T-Dnzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T-Dnzt/subscriptions","organizations_url":"https://api.github.com/users/T-Dnzt/orgs","repos_url":"https://api.github.com/users/T-Dnzt/repos","events_url":"https://api.github.com/users/T-Dnzt/events{/privacy}","received_events_url":"https://api.github.com/users/T-Dnzt/received_events","type":"User","site_admin":false},"body":"Issue/Task Number: T323\r\n\r\n# Overview\r\n\r\nAdd an `/api_key.update` endpoint to allow admin to enable/disable keys.\r\n\r\n# Changes\r\n\r\n- Add `/api_key.update`\r\n- Update OpenAPI spec\r\n\r\n# Usage\r\n\r\nCall `/api_key.update` with an `id` and `expired` set to `true` or `false`.\r\n\r\nSee OpenAPI spec for more info.","created_at":"2018-06-22T05:46:29Z","updated_at":"2018-06-22T11:11:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25a2455a07a098f2ab58f5ab6024a3fc67c02ac4","assignee":{"login":"unnawut","id":921194,"node_id":"MDQ6VXNlcjkyMTE5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/921194?v=4","gravatar_id":"","url":"https://api.github.com/users/unnawut","html_url":"https://github.com/unnawut","followers_url":"https://api.github.com/users/unnawut/followers","following_url":"https://api.github.com/users/unnawut/following{/other_user}","gists_url":"https://api.github.com/users/unnawut/gists{/gist_id}","starred_url":"https://api.github.com/users/unnawut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unnawut/subscriptions","organizations_url":"https://api.github.com/users/unnawut/orgs","repos_url":"https://api.github.com/users/unnawut/repos","events_url":"https://api.github.com/users/unnawut/events{/privacy}","received_events_url":"https://api.github.com/users/unnawut/received_events","type":"User","site_admin":false},"assignees":[{"login":"unnawut","id":921194,"node_id":"MDQ6VXNlcjkyMTE5NA==","avatar_url":"https://avatars1.githubusercontent.com/u/921194?v=4","gravatar_id":"","url":"https://api.github.com/users/unnawut","html_url":"https://github.com/unnawut","followers_url":"https://api.github.com/users/unnawut/followers","following_url":"https://api.github.com/users/unnawut/following{/other_user}","gists_url":"https://api.github.com/users/unnawut/gists{/gist_id}","starred_url":"https://api.github.com/users/unnawut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unnawut/subscriptions","organizations_url":"https://api.github.com/users/unnawut/orgs","repos_url":"https://api.github.com/users/unnawut/repos","events_url":"https://api.github.com/users/unnawut/events{/privacy}","received_events_url":"https://api.github.com/users/unnawut/received_events","type":"User","site_admin":false},{"login":"jarindr","id":2189889,"node_id":"MDQ6VXNlcjIxODk4ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/2189889?v=4","gravatar_id":"","url":"https://api.github.com/users/jarindr","html_url":"https://github.com/jarindr","followers_url":"https://api.github.com/users/jarindr/followers","following_url":"https://api.github.com/users/jarindr/following{/other_user}","gists_url":"https://api.github.com/users/jarindr/gists{/gist_id}","starred_url":"https://api.github.com/users/jarindr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarindr/subscriptions","organizations_url":"https://api.github.com/users/jarindr/orgs","repos_url":"https://api.github.com/users/jarindr/repos","events_url":"https://api.github.com/users/jarindr/events{/privacy}","received_events_url":"https://api.github.com/users/jarindr/received_events","type":"User","site_admin":false},{"login":"T-Dnzt","id":2647689,"node_id":"MDQ6VXNlcjI2NDc2ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/2647689?v=4","gravatar_id":"","url":"https://api.github.com/users/T-Dnzt","html_url":"https://github.com/T-Dnzt","followers_url":"https://api.github.com/users/T-Dnzt/followers","following_url":"https://api.github.com/users/T-Dnzt/following{/other_user}","gists_url":"https://api.github.com/users/T-Dnzt/gists{/gist_id}","starred_url":"https://api.github.com/users/T-Dnzt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T-Dnzt/subscriptions","organizations_url":"https://api.github.com/users/T-Dnzt/orgs","repos_url":"https://api.github.com/users/T-Dnzt/repos","events_url":"https://api.github.com/users/T-Dnzt/events{/privacy}","received_events_url":"https://api.github.com/users/T-Dnzt/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"jarindr","id":2189889,"node_id":"MDQ6VXNlcjIxODk4ODk=","avatar_url":"https://avatars0.githubusercontent.com/u/2189889?v=4","gravatar_id":"","url":"https://api.github.com/users/jarindr","html_url":"https://github.com/jarindr","followers_url":"https://api.github.com/users/jarindr/followers","following_url":"https://api.github.com/users/jarindr/following{/other_user}","gists_url":"https://api.github.com/users/jarindr/gists{/gist_id}","starred_url":"https://api.github.com/users/jarindr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jarindr/subscriptions","organizations_url":"https://api.github.com/users/jarindr/orgs","repos_url":"https://api.github.com/users/jarindr/repos","events_url":"https://api.github.com/users/jarindr/events{/privacy}","received_events_url":"https://api.github.com/users/jarindr/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":799476945,"node_id":"MDU6TGFiZWw3OTk0NzY5NDU=","url":"https://api.github.com/repos/omisego/ewallet/labels/enhancement%20:rocket:","name":"enhancement :rocket:","color":"84b6eb","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/omisego/ewallet/pulls/265/commits","review_comments_url":"https://api.github.com/repos/omisego/ewallet/pulls/265/comments","review_comment_url":"https://api.github.com/repos/omisego/ewallet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/omisego/ewallet/issues/265/comments","statuses_url":"https://api.github.com/repos/omisego/ewallet/statuses/28747f4c9bba7f5930804a733b114f32439d0eeb","head":{"label":"omisego:T323-update-api-keys-endpoints","ref":"T323-update-api-keys-endpoints","sha":"28747f4c9bba7f5930804a733b114f32439d0eeb","user":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"repo":{"id":116826798,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY4MjY3OTg=","name":"ewallet","full_name":"omisego/ewallet","owner":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omisego/ewallet","description":"eWallet Backend for the OmiseGO SDKs.","fork":false,"url":"https://api.github.com/repos/omisego/ewallet","forks_url":"https://api.github.com/repos/omisego/ewallet/forks","keys_url":"https://api.github.com/repos/omisego/ewallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omisego/ewallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omisego/ewallet/teams","hooks_url":"https://api.github.com/repos/omisego/ewallet/hooks","issue_events_url":"https://api.github.com/repos/omisego/ewallet/issues/events{/number}","events_url":"https://api.github.com/repos/omisego/ewallet/events","assignees_url":"https://api.github.com/repos/omisego/ewallet/assignees{/user}","branches_url":"https://api.github.com/repos/omisego/ewallet/branches{/branch}","tags_url":"https://api.github.com/repos/omisego/ewallet/tags","blobs_url":"https://api.github.com/repos/omisego/ewallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omisego/ewallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omisego/ewallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/omisego/ewallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omisego/ewallet/statuses/{sha}","languages_url":"https://api.github.com/repos/omisego/ewallet/languages","stargazers_url":"https://api.github.com/repos/omisego/ewallet/stargazers","contributors_url":"https://api.github.com/repos/omisego/ewallet/contributors","subscribers_url":"https://api.github.com/repos/omisego/ewallet/subscribers","subscription_url":"https://api.github.com/repos/omisego/ewallet/subscription","commits_url":"https://api.github.com/repos/omisego/ewallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/omisego/ewallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/omisego/ewallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/omisego/ewallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/omisego/ewallet/contents/{+path}","compare_url":"https://api.github.com/repos/omisego/ewallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omisego/ewallet/merges","archive_url":"https://api.github.com/repos/omisego/ewallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omisego/ewallet/downloads","issues_url":"https://api.github.com/repos/omisego/ewallet/issues{/number}","pulls_url":"https://api.github.com/repos/omisego/ewallet/pulls{/number}","milestones_url":"https://api.github.com/repos/omisego/ewallet/milestones{/number}","notifications_url":"https://api.github.com/repos/omisego/ewallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omisego/ewallet/labels{/name}","releases_url":"https://api.github.com/repos/omisego/ewallet/releases{/id}","deployments_url":"https://api.github.com/repos/omisego/ewallet/deployments","created_at":"2018-01-09T14:31:13Z","updated_at":"2018-06-22T09:52:06Z","pushed_at":"2018-06-22T11:04:22Z","git_url":"git://github.com/omisego/ewallet.git","ssh_url":"git@github.com:omisego/ewallet.git","clone_url":"https://github.com/omisego/ewallet.git","svn_url":"https://github.com/omisego/ewallet","homepage":"https://omisego.network/","size":19027,"stargazers_count":180,"watchers_count":180,"language":"Elixir","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":22,"open_issues":12,"watchers":180,"default_branch":"develop"}},"base":{"label":"omisego:develop","ref":"develop","sha":"718099a46a17cf3f71f4208fa54643f03dd12b3d","user":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"repo":{"id":116826798,"node_id":"MDEwOlJlcG9zaXRvcnkxMTY4MjY3OTg=","name":"ewallet","full_name":"omisego/ewallet","owner":{"login":"omisego","id":31544276,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNTQ0Mjc2","avatar_url":"https://avatars3.githubusercontent.com/u/31544276?v=4","gravatar_id":"","url":"https://api.github.com/users/omisego","html_url":"https://github.com/omisego","followers_url":"https://api.github.com/users/omisego/followers","following_url":"https://api.github.com/users/omisego/following{/other_user}","gists_url":"https://api.github.com/users/omisego/gists{/gist_id}","starred_url":"https://api.github.com/users/omisego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omisego/subscriptions","organizations_url":"https://api.github.com/users/omisego/orgs","repos_url":"https://api.github.com/users/omisego/repos","events_url":"https://api.github.com/users/omisego/events{/privacy}","received_events_url":"https://api.github.com/users/omisego/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/omisego/ewallet","description":"eWallet Backend for the OmiseGO SDKs.","fork":false,"url":"https://api.github.com/repos/omisego/ewallet","forks_url":"https://api.github.com/repos/omisego/ewallet/forks","keys_url":"https://api.github.com/repos/omisego/ewallet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omisego/ewallet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omisego/ewallet/teams","hooks_url":"https://api.github.com/repos/omisego/ewallet/hooks","issue_events_url":"https://api.github.com/repos/omisego/ewallet/issues/events{/number}","events_url":"https://api.github.com/repos/omisego/ewallet/events","assignees_url":"https://api.github.com/repos/omisego/ewallet/assignees{/user}","branches_url":"https://api.github.com/repos/omisego/ewallet/branches{/branch}","tags_url":"https://api.github.com/repos/omisego/ewallet/tags","blobs_url":"https://api.github.com/repos/omisego/ewallet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omisego/ewallet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omisego/ewallet/git/refs{/sha}","trees_url":"https://api.github.com/repos/omisego/ewallet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omisego/ewallet/statuses/{sha}","languages_url":"https://api.github.com/repos/omisego/ewallet/languages","stargazers_url":"https://api.github.com/repos/omisego/ewallet/stargazers","contributors_url":"https://api.github.com/repos/omisego/ewallet/contributors","subscribers_url":"https://api.github.com/repos/omisego/ewallet/subscribers","subscription_url":"https://api.github.com/repos/omisego/ewallet/subscription","commits_url":"https://api.github.com/repos/omisego/ewallet/commits{/sha}","git_commits_url":"https://api.github.com/repos/omisego/ewallet/git/commits{/sha}","comments_url":"https://api.github.com/repos/omisego/ewallet/comments{/number}","issue_comment_url":"https://api.github.com/repos/omisego/ewallet/issues/comments{/number}","contents_url":"https://api.github.com/repos/omisego/ewallet/contents/{+path}","compare_url":"https://api.github.com/repos/omisego/ewallet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omisego/ewallet/merges","archive_url":"https://api.github.com/repos/omisego/ewallet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omisego/ewallet/downloads","issues_url":"https://api.github.com/repos/omisego/ewallet/issues{/number}","pulls_url":"https://api.github.com/repos/omisego/ewallet/pulls{/number}","milestones_url":"https://api.github.com/repos/omisego/ewallet/milestones{/number}","notifications_url":"https://api.github.com/repos/omisego/ewallet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omisego/ewallet/labels{/name}","releases_url":"https://api.github.com/repos/omisego/ewallet/releases{/id}","deployments_url":"https://api.github.com/repos/omisego/ewallet/deployments","created_at":"2018-01-09T14:31:13Z","updated_at":"2018-06-22T09:52:06Z","pushed_at":"2018-06-22T11:04:22Z","git_url":"git://github.com/omisego/ewallet.git","ssh_url":"git@github.com:omisego/ewallet.git","clone_url":"https://github.com/omisego/ewallet.git","svn_url":"https://github.com/omisego/ewallet","homepage":"https://omisego.network/","size":19027,"stargazers_count":180,"watchers_count":180,"language":"Elixir","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":22,"open_issues":12,"watchers":180,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/omisego/ewallet/pulls/265"},"html":{"href":"https://github.com/omisego/ewallet/pull/265"},"issue":{"href":"https://api.github.com/repos/omisego/ewallet/issues/265"},"comments":{"href":"https://api.github.com/repos/omisego/ewallet/issues/265/comments"},"review_comments":{"href":"https://api.github.com/repos/omisego/ewallet/pulls/265/comments"},"review_comment":{"href":"https://api.github.com/repos/omisego/ewallet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/omisego/ewallet/pulls/265/commits"},"statuses":{"href":"https://api.github.com/repos/omisego/ewallet/statuses/28747f4c9bba7f5930804a733b114f32439d0eeb"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"unnawut"}}