{"action":"created","comment":{"url":"https://api.github.com/repos/temenostech/IRIS/pulls/comments/67466741","id":67466741,"diff_hunk":"@@ -650,25 +650,27 @@ private Response buildResponse(HttpHeaders headers, MultivaluedMap<String, Strin\n             ResourceState currentState = ctx.getCurrentState();\n             assert (currentState.getAllTargets() != null && currentState.getAllTargets().size() > 0) : \"A pseudo state that creates a new resource MUST contain an auto transition to that new resource\";\n             List<Transition> autoTransitions = getTransitions(ctx, currentState, Transition.AUTO);\n-\n             if (!autoTransitions.isEmpty()) {\n-                Transition autoTransition = autoTransitions.get(0);\n-                if (autoTransitions.size() > 1)\n-                    logger.warn(\"Resource state [\" + currentState.getName()\n+                List<Transition> innerTransitions = autoTransitions;\n+                Transition autoTransition;\n+                do {\n+                    autoTransition = innerTransitions.get(0);","path":"interaction-core/src/main/java/com/temenos/interaction/core/rim/HTTPHypermediaRIM.java","position":31,"original_position":31,"commit_id":"7cce5dd1a49cce3b3c4db3e6de685692cb5916f2","original_commit_id":"7cce5dd1a49cce3b3c4db3e6de685692cb5916f2","user":{"login":"mtemenos","id":7769860,"avatar_url":"https://avatars.githubusercontent.com/u/7769860?v=3","gravatar_id":"","url":"https://api.github.com/users/mtemenos","html_url":"https://github.com/mtemenos","followers_url":"https://api.github.com/users/mtemenos/followers","following_url":"https://api.github.com/users/mtemenos/following{/other_user}","gists_url":"https://api.github.com/users/mtemenos/gists{/gist_id}","starred_url":"https://api.github.com/users/mtemenos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtemenos/subscriptions","organizations_url":"https://api.github.com/users/mtemenos/orgs","repos_url":"https://api.github.com/users/mtemenos/repos","events_url":"https://api.github.com/users/mtemenos/events{/privacy}","received_events_url":"https://api.github.com/users/mtemenos/received_events","type":"User","site_admin":false},"body":"Given innerTransitions has to have at least one element why not simplify the code by using a forach loop?  ","created_at":"2016-06-17T06:51:19Z","updated_at":"2016-06-17T06:51:19Z","html_url":"https://github.com/temenostech/IRIS/pull/395#discussion_r67466741","pull_request_url":"https://api.github.com/repos/temenostech/IRIS/pulls/395","_links":{"self":{"href":"https://api.github.com/repos/temenostech/IRIS/pulls/comments/67466741"},"html":{"href":"https://github.com/temenostech/IRIS/pull/395#discussion_r67466741"},"pull_request":{"href":"https://api.github.com/repos/temenostech/IRIS/pulls/395"}}},"pull_request":{"url":"https://api.github.com/repos/temenostech/IRIS/pulls/395","id":74101505,"html_url":"https://github.com/temenostech/IRIS/pull/395","diff_url":"https://github.com/temenostech/IRIS/pull/395.diff","patch_url":"https://github.com/temenostech/IRIS/pull/395.patch","issue_url":"https://api.github.com/repos/temenostech/IRIS/issues/395","number":395,"state":"open","locked":false,"title":"Set location response header to the final destination of all participating automatic transitions","user":{"login":"dlgroves","id":16207267,"avatar_url":"https://avatars.githubusercontent.com/u/16207267?v=3","gravatar_id":"","url":"https://api.github.com/users/dlgroves","html_url":"https://github.com/dlgroves","followers_url":"https://api.github.com/users/dlgroves/followers","following_url":"https://api.github.com/users/dlgroves/following{/other_user}","gists_url":"https://api.github.com/users/dlgroves/gists{/gist_id}","starred_url":"https://api.github.com/users/dlgroves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlgroves/subscriptions","organizations_url":"https://api.github.com/users/dlgroves/orgs","repos_url":"https://api.github.com/users/dlgroves/repos","events_url":"https://api.github.com/users/dlgroves/events{/privacy}","received_events_url":"https://api.github.com/users/dlgroves/received_events","type":"User","site_admin":false},"body":"This change updates IRIS's location header to the destination of a fully resolved chain of automatic transitions and appends any parameters that were resolved during this process.","created_at":"2016-06-16T15:28:47Z","updated_at":"2016-06-17T06:51:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f1934a388c13e680cbf86bc5121a5d16d6fccf9","assignee":{"login":"ssethupathi","id":837708,"avatar_url":"https://avatars.githubusercontent.com/u/837708?v=3","gravatar_id":"","url":"https://api.github.com/users/ssethupathi","html_url":"https://github.com/ssethupathi","followers_url":"https://api.github.com/users/ssethupathi/followers","following_url":"https://api.github.com/users/ssethupathi/following{/other_user}","gists_url":"https://api.github.com/users/ssethupathi/gists{/gist_id}","starred_url":"https://api.github.com/users/ssethupathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssethupathi/subscriptions","organizations_url":"https://api.github.com/users/ssethupathi/orgs","repos_url":"https://api.github.com/users/ssethupathi/repos","events_url":"https://api.github.com/users/ssethupathi/events{/privacy}","received_events_url":"https://api.github.com/users/ssethupathi/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/temenostech/IRIS/pulls/395/commits","review_comments_url":"https://api.github.com/repos/temenostech/IRIS/pulls/395/comments","review_comment_url":"https://api.github.com/repos/temenostech/IRIS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/temenostech/IRIS/issues/395/comments","statuses_url":"https://api.github.com/repos/temenostech/IRIS/statuses/7cce5dd1a49cce3b3c4db3e6de685692cb5916f2","head":{"label":"dlgroves:rtc_1765274","ref":"rtc_1765274","sha":"7cce5dd1a49cce3b3c4db3e6de685692cb5916f2","user":{"login":"dlgroves","id":16207267,"avatar_url":"https://avatars.githubusercontent.com/u/16207267?v=3","gravatar_id":"","url":"https://api.github.com/users/dlgroves","html_url":"https://github.com/dlgroves","followers_url":"https://api.github.com/users/dlgroves/followers","following_url":"https://api.github.com/users/dlgroves/following{/other_user}","gists_url":"https://api.github.com/users/dlgroves/gists{/gist_id}","starred_url":"https://api.github.com/users/dlgroves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlgroves/subscriptions","organizations_url":"https://api.github.com/users/dlgroves/orgs","repos_url":"https://api.github.com/users/dlgroves/repos","events_url":"https://api.github.com/users/dlgroves/events{/privacy}","received_events_url":"https://api.github.com/users/dlgroves/received_events","type":"User","site_admin":false},"repo":{"id":49962117,"name":"IRIS","full_name":"dlgroves/IRIS","owner":{"login":"dlgroves","id":16207267,"avatar_url":"https://avatars.githubusercontent.com/u/16207267?v=3","gravatar_id":"","url":"https://api.github.com/users/dlgroves","html_url":"https://github.com/dlgroves","followers_url":"https://api.github.com/users/dlgroves/followers","following_url":"https://api.github.com/users/dlgroves/following{/other_user}","gists_url":"https://api.github.com/users/dlgroves/gists{/gist_id}","starred_url":"https://api.github.com/users/dlgroves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlgroves/subscriptions","organizations_url":"https://api.github.com/users/dlgroves/orgs","repos_url":"https://api.github.com/users/dlgroves/repos","events_url":"https://api.github.com/users/dlgroves/events{/privacy}","received_events_url":"https://api.github.com/users/dlgroves/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dlgroves/IRIS","description":"Temenos Interaction, Reporting & Information Services","fork":true,"url":"https://api.github.com/repos/dlgroves/IRIS","forks_url":"https://api.github.com/repos/dlgroves/IRIS/forks","keys_url":"https://api.github.com/repos/dlgroves/IRIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlgroves/IRIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlgroves/IRIS/teams","hooks_url":"https://api.github.com/repos/dlgroves/IRIS/hooks","issue_events_url":"https://api.github.com/repos/dlgroves/IRIS/issues/events{/number}","events_url":"https://api.github.com/repos/dlgroves/IRIS/events","assignees_url":"https://api.github.com/repos/dlgroves/IRIS/assignees{/user}","branches_url":"https://api.github.com/repos/dlgroves/IRIS/branches{/branch}","tags_url":"https://api.github.com/repos/dlgroves/IRIS/tags","blobs_url":"https://api.github.com/repos/dlgroves/IRIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlgroves/IRIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlgroves/IRIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlgroves/IRIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlgroves/IRIS/statuses/{sha}","languages_url":"https://api.github.com/repos/dlgroves/IRIS/languages","stargazers_url":"https://api.github.com/repos/dlgroves/IRIS/stargazers","contributors_url":"https://api.github.com/repos/dlgroves/IRIS/contributors","subscribers_url":"https://api.github.com/repos/dlgroves/IRIS/subscribers","subscription_url":"https://api.github.com/repos/dlgroves/IRIS/subscription","commits_url":"https://api.github.com/repos/dlgroves/IRIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlgroves/IRIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlgroves/IRIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlgroves/IRIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlgroves/IRIS/contents/{+path}","compare_url":"https://api.github.com/repos/dlgroves/IRIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlgroves/IRIS/merges","archive_url":"https://api.github.com/repos/dlgroves/IRIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlgroves/IRIS/downloads","issues_url":"https://api.github.com/repos/dlgroves/IRIS/issues{/number}","pulls_url":"https://api.github.com/repos/dlgroves/IRIS/pulls{/number}","milestones_url":"https://api.github.com/repos/dlgroves/IRIS/milestones{/number}","notifications_url":"https://api.github.com/repos/dlgroves/IRIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlgroves/IRIS/labels{/name}","releases_url":"https://api.github.com/repos/dlgroves/IRIS/releases{/id}","deployments_url":"https://api.github.com/repos/dlgroves/IRIS/deployments","created_at":"2016-01-19T15:30:23Z","updated_at":"2016-01-19T15:30:27Z","pushed_at":"2016-06-16T15:24:48Z","git_url":"git://github.com/dlgroves/IRIS.git","ssh_url":"git@github.com:dlgroves/IRIS.git","clone_url":"https://github.com/dlgroves/IRIS.git","svn_url":"https://github.com/dlgroves/IRIS","homepage":"","size":15092,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"master"}},"base":{"label":"temenostech:master","ref":"master","sha":"bc2768f4258a5e872236942090c71de9817cb0b7","user":{"login":"temenostech","id":5080721,"avatar_url":"https://avatars.githubusercontent.com/u/5080721?v=3","gravatar_id":"","url":"https://api.github.com/users/temenostech","html_url":"https://github.com/temenostech","followers_url":"https://api.github.com/users/temenostech/followers","following_url":"https://api.github.com/users/temenostech/following{/other_user}","gists_url":"https://api.github.com/users/temenostech/gists{/gist_id}","starred_url":"https://api.github.com/users/temenostech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temenostech/subscriptions","organizations_url":"https://api.github.com/users/temenostech/orgs","repos_url":"https://api.github.com/users/temenostech/repos","events_url":"https://api.github.com/users/temenostech/events{/privacy}","received_events_url":"https://api.github.com/users/temenostech/received_events","type":"Organization","site_admin":false},"repo":{"id":2802488,"name":"IRIS","full_name":"temenostech/IRIS","owner":{"login":"temenostech","id":5080721,"avatar_url":"https://avatars.githubusercontent.com/u/5080721?v=3","gravatar_id":"","url":"https://api.github.com/users/temenostech","html_url":"https://github.com/temenostech","followers_url":"https://api.github.com/users/temenostech/followers","following_url":"https://api.github.com/users/temenostech/following{/other_user}","gists_url":"https://api.github.com/users/temenostech/gists{/gist_id}","starred_url":"https://api.github.com/users/temenostech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/temenostech/subscriptions","organizations_url":"https://api.github.com/users/temenostech/orgs","repos_url":"https://api.github.com/users/temenostech/repos","events_url":"https://api.github.com/users/temenostech/events{/privacy}","received_events_url":"https://api.github.com/users/temenostech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/temenostech/IRIS","description":"Temenos Interaction, Reporting & Information Services","fork":false,"url":"https://api.github.com/repos/temenostech/IRIS","forks_url":"https://api.github.com/repos/temenostech/IRIS/forks","keys_url":"https://api.github.com/repos/temenostech/IRIS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/temenostech/IRIS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/temenostech/IRIS/teams","hooks_url":"https://api.github.com/repos/temenostech/IRIS/hooks","issue_events_url":"https://api.github.com/repos/temenostech/IRIS/issues/events{/number}","events_url":"https://api.github.com/repos/temenostech/IRIS/events","assignees_url":"https://api.github.com/repos/temenostech/IRIS/assignees{/user}","branches_url":"https://api.github.com/repos/temenostech/IRIS/branches{/branch}","tags_url":"https://api.github.com/repos/temenostech/IRIS/tags","blobs_url":"https://api.github.com/repos/temenostech/IRIS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/temenostech/IRIS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/temenostech/IRIS/git/refs{/sha}","trees_url":"https://api.github.com/repos/temenostech/IRIS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/temenostech/IRIS/statuses/{sha}","languages_url":"https://api.github.com/repos/temenostech/IRIS/languages","stargazers_url":"https://api.github.com/repos/temenostech/IRIS/stargazers","contributors_url":"https://api.github.com/repos/temenostech/IRIS/contributors","subscribers_url":"https://api.github.com/repos/temenostech/IRIS/subscribers","subscription_url":"https://api.github.com/repos/temenostech/IRIS/subscription","commits_url":"https://api.github.com/repos/temenostech/IRIS/commits{/sha}","git_commits_url":"https://api.github.com/repos/temenostech/IRIS/git/commits{/sha}","comments_url":"https://api.github.com/repos/temenostech/IRIS/comments{/number}","issue_comment_url":"https://api.github.com/repos/temenostech/IRIS/issues/comments{/number}","contents_url":"https://api.github.com/repos/temenostech/IRIS/contents/{+path}","compare_url":"https://api.github.com/repos/temenostech/IRIS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/temenostech/IRIS/merges","archive_url":"https://api.github.com/repos/temenostech/IRIS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/temenostech/IRIS/downloads","issues_url":"https://api.github.com/repos/temenostech/IRIS/issues{/number}","pulls_url":"https://api.github.com/repos/temenostech/IRIS/pulls{/number}","milestones_url":"https://api.github.com/repos/temenostech/IRIS/milestones{/number}","notifications_url":"https://api.github.com/repos/temenostech/IRIS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/temenostech/IRIS/labels{/name}","releases_url":"https://api.github.com/repos/temenostech/IRIS/releases{/id}","deployments_url":"https://api.github.com/repos/temenostech/IRIS/deployments","created_at":"2011-11-18T12:45:12Z","updated_at":"2016-03-26T17:00:06Z","pushed_at":"2016-06-17T06:47:38Z","git_url":"git://github.com/temenostech/IRIS.git","ssh_url":"git@github.com:temenostech/IRIS.git","clone_url":"https://github.com/temenostech/IRIS.git","svn_url":"https://github.com/temenostech/IRIS","homepage":"","size":16658,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":62,"mirror_url":null,"open_issues_count":49,"forks":62,"open_issues":49,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/temenostech/IRIS/pulls/395"},"html":{"href":"https://github.com/temenostech/IRIS/pull/395"},"issue":{"href":"https://api.github.com/repos/temenostech/IRIS/issues/395"},"comments":{"href":"https://api.github.com/repos/temenostech/IRIS/issues/395/comments"},"review_comments":{"href":"https://api.github.com/repos/temenostech/IRIS/pulls/395/comments"},"review_comment":{"href":"https://api.github.com/repos/temenostech/IRIS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/temenostech/IRIS/pulls/395/commits"},"statuses":{"href":"https://api.github.com/repos/temenostech/IRIS/statuses/7cce5dd1a49cce3b3c4db3e6de685692cb5916f2"}}}}
{"actor":{"display_login":"mtemenos"}}