{"action":"created","comment":{"url":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/comments/188920352","pull_request_review_id":120993656,"id":188920352,"diff_hunk":"@@ -191,26 +176,43 @@ def deploy_from_appstore(path, options = { :client => GoodData.client, :project\n           }\n         }\n \n+        save(data, options)\n+      end\n+\n+      def deploy_component(data, options = { :client => GoodData.client, :project => GoodData.project })\n+        client, project = GoodData.get_client_and_project(options)\n+        data = { process: data } unless data[:process]\n+        data[:process ] = GoodData::Helpers.symbolize_keys(data[:process]).select { |k| [:type, :name, :component].include? k }\n+        data[:process][:component] = GoodData::Helpers.symbolize_keys(data[:process][:component]).select { |k| [:name, :version].include? k }\n+\n+        # TODO: we should not have to do this\n+        client.post \"/gdc/projects/#{project.pid}/projectFeatureFlags\",\n+                    featureFlag: {\n+                      key: 'enableEtlComponent',\n+                      value: true\n+                    }\n+\n+       save(data, options)\n+      end\n+\n+      private\n+\n+      def save(data, options = { client: GoodData.client, project: GoodData.project })","path":"lib/gooddata/models/process.rb","position":74,"original_position":74,"commit_id":"36c4f380580cf70b83a1887a7a0a826c1fb3a4bd","original_commit_id":"36c4f380580cf70b83a1887a7a0a826c1fb3a4bd","user":{"login":"yenkins","id":1506393,"avatar_url":"https://avatars1.githubusercontent.com/u/1506393?v=4","gravatar_id":"","url":"https://api.github.com/users/yenkins","html_url":"https://github.com/yenkins","followers_url":"https://api.github.com/users/yenkins/followers","following_url":"https://api.github.com/users/yenkins/following{/other_user}","gists_url":"https://api.github.com/users/yenkins/gists{/gist_id}","starred_url":"https://api.github.com/users/yenkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yenkins/subscriptions","organizations_url":"https://api.github.com/users/yenkins/orgs","repos_url":"https://api.github.com/users/yenkins/repos","events_url":"https://api.github.com/users/yenkins/events{/privacy}","received_events_url":"https://api.github.com/users/yenkins/received_events","type":"User","site_admin":false},"body":"Has approx 6 statements (TooManyStatements)","created_at":"2018-05-17T11:08:22Z","updated_at":"2018-05-17T11:08:22Z","html_url":"https://github.com/gooddata/gooddata-ruby/pull/1164#discussion_r188920352","pull_request_url":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/comments/188920352"},"html":{"href":"https://github.com/gooddata/gooddata-ruby/pull/1164#discussion_r188920352"},"pull_request":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164"}}},"pull_request":{"url":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164","id":187187984,"html_url":"https://github.com/gooddata/gooddata-ruby/pull/1164","diff_url":"https://github.com/gooddata/gooddata-ruby/pull/1164.diff","patch_url":"https://github.com/gooddata/gooddata-ruby/pull/1164.patch","issue_url":"https://api.github.com/repos/gooddata/gooddata-ruby/issues/1164","number":1164,"state":"open","locked":false,"title":"TMA-832: support for pluggable component process type","user":{"login":"kubamahnert","id":9719839,"avatar_url":"https://avatars3.githubusercontent.com/u/9719839?v=4","gravatar_id":"","url":"https://api.github.com/users/kubamahnert","html_url":"https://github.com/kubamahnert","followers_url":"https://api.github.com/users/kubamahnert/followers","following_url":"https://api.github.com/users/kubamahnert/following{/other_user}","gists_url":"https://api.github.com/users/kubamahnert/gists{/gist_id}","starred_url":"https://api.github.com/users/kubamahnert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubamahnert/subscriptions","organizations_url":"https://api.github.com/users/kubamahnert/orgs","repos_url":"https://api.github.com/users/kubamahnert/repos","events_url":"https://api.github.com/users/kubamahnert/events{/privacy}","received_events_url":"https://api.github.com/users/kubamahnert/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-10T13:08:58Z","updated_at":"2018-05-17T11:08:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fd5e80cec94c1d36ced28480aee359009b639a5a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"panjan","id":2116809,"avatar_url":"https://avatars2.githubusercontent.com/u/2116809?v=4","gravatar_id":"","url":"https://api.github.com/users/panjan","html_url":"https://github.com/panjan","followers_url":"https://api.github.com/users/panjan/followers","following_url":"https://api.github.com/users/panjan/following{/other_user}","gists_url":"https://api.github.com/users/panjan/gists{/gist_id}","starred_url":"https://api.github.com/users/panjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panjan/subscriptions","organizations_url":"https://api.github.com/users/panjan/orgs","repos_url":"https://api.github.com/users/panjan/repos","events_url":"https://api.github.com/users/panjan/events{/privacy}","received_events_url":"https://api.github.com/users/panjan/received_events","type":"User","site_admin":false},{"login":"Hahihula","id":4068385,"avatar_url":"https://avatars2.githubusercontent.com/u/4068385?v=4","gravatar_id":"","url":"https://api.github.com/users/Hahihula","html_url":"https://github.com/Hahihula","followers_url":"https://api.github.com/users/Hahihula/followers","following_url":"https://api.github.com/users/Hahihula/following{/other_user}","gists_url":"https://api.github.com/users/Hahihula/gists{/gist_id}","starred_url":"https://api.github.com/users/Hahihula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hahihula/subscriptions","organizations_url":"https://api.github.com/users/Hahihula/orgs","repos_url":"https://api.github.com/users/Hahihula/repos","events_url":"https://api.github.com/users/Hahihula/events{/privacy}","received_events_url":"https://api.github.com/users/Hahihula/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164/commits","review_comments_url":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164/comments","review_comment_url":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gooddata/gooddata-ruby/issues/1164/comments","statuses_url":"https://api.github.com/repos/gooddata/gooddata-ruby/statuses/36c4f380580cf70b83a1887a7a0a826c1fb3a4bd","head":{"label":"kubamahnert:TMA-832","ref":"TMA-832","sha":"36c4f380580cf70b83a1887a7a0a826c1fb3a4bd","user":{"login":"kubamahnert","id":9719839,"avatar_url":"https://avatars3.githubusercontent.com/u/9719839?v=4","gravatar_id":"","url":"https://api.github.com/users/kubamahnert","html_url":"https://github.com/kubamahnert","followers_url":"https://api.github.com/users/kubamahnert/followers","following_url":"https://api.github.com/users/kubamahnert/following{/other_user}","gists_url":"https://api.github.com/users/kubamahnert/gists{/gist_id}","starred_url":"https://api.github.com/users/kubamahnert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubamahnert/subscriptions","organizations_url":"https://api.github.com/users/kubamahnert/orgs","repos_url":"https://api.github.com/users/kubamahnert/repos","events_url":"https://api.github.com/users/kubamahnert/events{/privacy}","received_events_url":"https://api.github.com/users/kubamahnert/received_events","type":"User","site_admin":false},"repo":{"id":105879030,"name":"gooddata-ruby","full_name":"kubamahnert/gooddata-ruby","owner":{"login":"kubamahnert","id":9719839,"avatar_url":"https://avatars3.githubusercontent.com/u/9719839?v=4","gravatar_id":"","url":"https://api.github.com/users/kubamahnert","html_url":"https://github.com/kubamahnert","followers_url":"https://api.github.com/users/kubamahnert/followers","following_url":"https://api.github.com/users/kubamahnert/following{/other_user}","gists_url":"https://api.github.com/users/kubamahnert/gists{/gist_id}","starred_url":"https://api.github.com/users/kubamahnert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubamahnert/subscriptions","organizations_url":"https://api.github.com/users/kubamahnert/orgs","repos_url":"https://api.github.com/users/kubamahnert/repos","events_url":"https://api.github.com/users/kubamahnert/events{/privacy}","received_events_url":"https://api.github.com/users/kubamahnert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kubamahnert/gooddata-ruby","description":"GoodData API Ruby Gem","fork":true,"url":"https://api.github.com/repos/kubamahnert/gooddata-ruby","forks_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/forks","keys_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/teams","hooks_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/hooks","issue_events_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/events","assignees_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/tags","blobs_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/languages","stargazers_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/stargazers","contributors_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/contributors","subscribers_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/subscribers","subscription_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/subscription","commits_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/merges","archive_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/downloads","issues_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/labels{/name}","releases_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/kubamahnert/gooddata-ruby/deployments","created_at":"2017-10-05T10:54:30Z","updated_at":"2018-05-07T09:40:47Z","pushed_at":"2018-05-17T11:07:30Z","git_url":"git://github.com/kubamahnert/gooddata-ruby.git","ssh_url":"git@github.com:kubamahnert/gooddata-ruby.git","clone_url":"https://github.com/kubamahnert/gooddata-ruby.git","svn_url":"https://github.com/kubamahnert/gooddata-ruby","homepage":"http://developer.gooddata.com/","size":4821,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"gooddata:develop","ref":"develop","sha":"909f23c0fa700a7e962d142cdefc51f79b1878e4","user":{"login":"gooddata","id":291394,"avatar_url":"https://avatars2.githubusercontent.com/u/291394?v=4","gravatar_id":"","url":"https://api.github.com/users/gooddata","html_url":"https://github.com/gooddata","followers_url":"https://api.github.com/users/gooddata/followers","following_url":"https://api.github.com/users/gooddata/following{/other_user}","gists_url":"https://api.github.com/users/gooddata/gists{/gist_id}","starred_url":"https://api.github.com/users/gooddata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gooddata/subscriptions","organizations_url":"https://api.github.com/users/gooddata/orgs","repos_url":"https://api.github.com/users/gooddata/repos","events_url":"https://api.github.com/users/gooddata/events{/privacy}","received_events_url":"https://api.github.com/users/gooddata/received_events","type":"Organization","site_admin":false},"repo":{"id":891109,"name":"gooddata-ruby","full_name":"gooddata/gooddata-ruby","owner":{"login":"gooddata","id":291394,"avatar_url":"https://avatars2.githubusercontent.com/u/291394?v=4","gravatar_id":"","url":"https://api.github.com/users/gooddata","html_url":"https://github.com/gooddata","followers_url":"https://api.github.com/users/gooddata/followers","following_url":"https://api.github.com/users/gooddata/following{/other_user}","gists_url":"https://api.github.com/users/gooddata/gists{/gist_id}","starred_url":"https://api.github.com/users/gooddata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gooddata/subscriptions","organizations_url":"https://api.github.com/users/gooddata/orgs","repos_url":"https://api.github.com/users/gooddata/repos","events_url":"https://api.github.com/users/gooddata/events{/privacy}","received_events_url":"https://api.github.com/users/gooddata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gooddata/gooddata-ruby","description":"GoodData API Ruby Gem","fork":false,"url":"https://api.github.com/repos/gooddata/gooddata-ruby","forks_url":"https://api.github.com/repos/gooddata/gooddata-ruby/forks","keys_url":"https://api.github.com/repos/gooddata/gooddata-ruby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gooddata/gooddata-ruby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gooddata/gooddata-ruby/teams","hooks_url":"https://api.github.com/repos/gooddata/gooddata-ruby/hooks","issue_events_url":"https://api.github.com/repos/gooddata/gooddata-ruby/issues/events{/number}","events_url":"https://api.github.com/repos/gooddata/gooddata-ruby/events","assignees_url":"https://api.github.com/repos/gooddata/gooddata-ruby/assignees{/user}","branches_url":"https://api.github.com/repos/gooddata/gooddata-ruby/branches{/branch}","tags_url":"https://api.github.com/repos/gooddata/gooddata-ruby/tags","blobs_url":"https://api.github.com/repos/gooddata/gooddata-ruby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gooddata/gooddata-ruby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gooddata/gooddata-ruby/git/refs{/sha}","trees_url":"https://api.github.com/repos/gooddata/gooddata-ruby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gooddata/gooddata-ruby/statuses/{sha}","languages_url":"https://api.github.com/repos/gooddata/gooddata-ruby/languages","stargazers_url":"https://api.github.com/repos/gooddata/gooddata-ruby/stargazers","contributors_url":"https://api.github.com/repos/gooddata/gooddata-ruby/contributors","subscribers_url":"https://api.github.com/repos/gooddata/gooddata-ruby/subscribers","subscription_url":"https://api.github.com/repos/gooddata/gooddata-ruby/subscription","commits_url":"https://api.github.com/repos/gooddata/gooddata-ruby/commits{/sha}","git_commits_url":"https://api.github.com/repos/gooddata/gooddata-ruby/git/commits{/sha}","comments_url":"https://api.github.com/repos/gooddata/gooddata-ruby/comments{/number}","issue_comment_url":"https://api.github.com/repos/gooddata/gooddata-ruby/issues/comments{/number}","contents_url":"https://api.github.com/repos/gooddata/gooddata-ruby/contents/{+path}","compare_url":"https://api.github.com/repos/gooddata/gooddata-ruby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gooddata/gooddata-ruby/merges","archive_url":"https://api.github.com/repos/gooddata/gooddata-ruby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gooddata/gooddata-ruby/downloads","issues_url":"https://api.github.com/repos/gooddata/gooddata-ruby/issues{/number}","pulls_url":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls{/number}","milestones_url":"https://api.github.com/repos/gooddata/gooddata-ruby/milestones{/number}","notifications_url":"https://api.github.com/repos/gooddata/gooddata-ruby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gooddata/gooddata-ruby/labels{/name}","releases_url":"https://api.github.com/repos/gooddata/gooddata-ruby/releases{/id}","deployments_url":"https://api.github.com/repos/gooddata/gooddata-ruby/deployments","created_at":"2010-09-06T11:19:17Z","updated_at":"2018-05-10T13:08:46Z","pushed_at":"2018-05-17T11:08:21Z","git_url":"git://github.com/gooddata/gooddata-ruby.git","ssh_url":"git@github.com:gooddata/gooddata-ruby.git","clone_url":"https://github.com/gooddata/gooddata-ruby.git","svn_url":"https://github.com/gooddata/gooddata-ruby","homepage":"http://developer.gooddata.com/","size":4811,"stargazers_count":59,"watchers_count":59,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":91,"mirror_url":null,"archived":false,"open_issues_count":21,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":91,"open_issues":21,"watchers":59,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164"},"html":{"href":"https://github.com/gooddata/gooddata-ruby/pull/1164"},"issue":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/issues/1164"},"comments":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/issues/1164/comments"},"review_comments":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164/comments"},"review_comment":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/pulls/1164/commits"},"statuses":{"href":"https://api.github.com/repos/gooddata/gooddata-ruby/statuses/36c4f380580cf70b83a1887a7a0a826c1fb3a4bd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yenkins"}}