{"action":"created","comment":{"url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/comments/144819873","pull_request_review_id":69511928,"id":144819873,"diff_hunk":"@@ -0,0 +1,40 @@\n+module ReadOnlyAssociations\n+  extend ActiveSupport::Concern\n+\n+  class_methods do\n+\n+    # Example\n+    # read_only_associations :foo, :bar, {baz: :polymorphic}\n+    def read_only_associations *associations","path":"platform-hub-api/app/models/concerns/read_only_associations.rb","position":8,"original_position":8,"commit_id":"e7a3a0b6f93129936d78277f21cd7674620df2c7","original_commit_id":"a5dd0de9360e74d0147d89dac7f79a5ffbe30c84","user":{"login":"jits","id":31973,"avatar_url":"https://avatars2.githubusercontent.com/u/31973?v=4","gravatar_id":"","url":"https://api.github.com/users/jits","html_url":"https://github.com/jits","followers_url":"https://api.github.com/users/jits/followers","following_url":"https://api.github.com/users/jits/following{/other_user}","gists_url":"https://api.github.com/users/jits/gists{/gist_id}","starred_url":"https://api.github.com/users/jits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jits/subscriptions","organizations_url":"https://api.github.com/users/jits/orgs","repos_url":"https://api.github.com/users/jits/repos","events_url":"https://api.github.com/users/jits/events{/privacy}","received_events_url":"https://api.github.com/users/jits/received_events","type":"User","site_admin":false},"body":"Is this actually used anywhere?","created_at":"2017-10-16T11:24:10Z","updated_at":"2017-10-16T11:49:32Z","html_url":"https://github.com/UKHomeOffice/platform-hub/pull/137#discussion_r144819873","pull_request_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/comments/144819873"},"html":{"href":"https://github.com/UKHomeOffice/platform-hub/pull/137#discussion_r144819873"},"pull_request":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137"}}},"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137","id":146175438,"html_url":"https://github.com/UKHomeOffice/platform-hub/pull/137","diff_url":"https://github.com/UKHomeOffice/platform-hub/pull/137.diff","patch_url":"https://github.com/UKHomeOffice/platform-hub/pull/137.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/137","number":137,"state":"open","locked":false,"title":"Kube token refactor","user":{"login":"marcinc","id":28119,"avatar_url":"https://avatars1.githubusercontent.com/u/28119?v=4","gravatar_id":"","url":"https://api.github.com/users/marcinc","html_url":"https://github.com/marcinc","followers_url":"https://api.github.com/users/marcinc/followers","following_url":"https://api.github.com/users/marcinc/following{/other_user}","gists_url":"https://api.github.com/users/marcinc/gists{/gist_id}","starred_url":"https://api.github.com/users/marcinc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcinc/subscriptions","organizations_url":"https://api.github.com/users/marcinc/orgs","repos_url":"https://api.github.com/users/marcinc/repos","events_url":"https://api.github.com/users/marcinc/events{/privacy}","received_events_url":"https://api.github.com/users/marcinc/received_events","type":"User","site_admin":false},"body":"- [x] TODO: Add migration to port data from HR to new model.\r\n\r\nPost deploy: \r\n- [ ] Remove tokens data from kubernetes identities:\r\n```ruby\r\nIdentity.kubernetes.each do |i|\r\n  if i.data && i.data['tokens']\r\n    i.data.delete('tokens')\r\n    i.save\r\n  end\r\nend\r\n```\r\n\r\n- [ ] Remove static robot tokens for all defined clusters:\r\n```ruby\r\nKubernetesCluster.all.each do |c|\r\n  HashRecord.kubernetes.delete(\"#{c.name}-static-robot-tokens\")\r\nend\r\n```","created_at":"2017-10-12T10:43:54Z","updated_at":"2017-10-16T11:49:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0871bbc6e091b9b65681302a1eb868b42629a370","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/137/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/statuses/e7a3a0b6f93129936d78277f21cd7674620df2c7","head":{"label":"UKHomeOffice:kube-token-refactor","ref":"kube-token-refactor","sha":"e7a3a0b6f93129936d78277f21cd7674620df2c7","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":78856365,"name":"platform-hub","full_name":"UKHomeOffice/platform-hub","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/platform-hub","description":"Software powering the Application Container Platform Hub at the UK Home Office","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/platform-hub","forks_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/deployments","created_at":"2017-01-13T14:30:18Z","updated_at":"2017-06-29T09:24:54Z","pushed_at":"2017-10-16T11:29:28Z","git_url":"git://github.com/UKHomeOffice/platform-hub.git","ssh_url":"git@github.com:UKHomeOffice/platform-hub.git","clone_url":"https://github.com/UKHomeOffice/platform-hub.git","svn_url":"https://github.com/UKHomeOffice/platform-hub","homepage":"","size":913,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"UKHomeOffice:projects-self-serve-tokens-integration","ref":"projects-self-serve-tokens-integration","sha":"74d8f469a3f9832dd652193cb51ddb7fa8a47a24","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":78856365,"name":"platform-hub","full_name":"UKHomeOffice/platform-hub","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars2.githubusercontent.com/u/3778081?v=4","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/platform-hub","description":"Software powering the Application Container Platform Hub at the UK Home Office","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/platform-hub","forks_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/platform-hub/deployments","created_at":"2017-01-13T14:30:18Z","updated_at":"2017-06-29T09:24:54Z","pushed_at":"2017-10-16T11:29:28Z","git_url":"git://github.com/UKHomeOffice/platform-hub.git","ssh_url":"git@github.com:UKHomeOffice/platform-hub.git","clone_url":"https://github.com/UKHomeOffice/platform-hub.git","svn_url":"https://github.com/UKHomeOffice/platform-hub","homepage":"","size":913,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137"},"html":{"href":"https://github.com/UKHomeOffice/platform-hub/pull/137"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/137"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/issues/137/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/pulls/137/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/platform-hub/statuses/e7a3a0b6f93129936d78277f21cd7674620df2c7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jits"}}