{"action":"created","comment":{"url":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments/42375388","id":42375388,"diff_hunk":"@@ -2043,4 +2047,38 @@ public void testSegmentMergeOnRuleRemovalWithNotExistingSegment() throws Excepti\n \n         kc.updateToVersion(releaseId2);\n     }\n+\n+    @Test\n+    public void testRemoveRuleWithRia() throws Exception {\n+        // DROOLS-954\n+        String drl1 =\n+                \"import \" + List.class.getCanonicalName() + \"\\n\" +\n+                \"rule R when\\n\" +\n+                \"    $list : List()\\n\" +\n+                \"    exists Integer( this == 1 ) from $list\\n\" +\n+                \"    exists Integer( this == 2 ) from $list\\n\" +\n+                \"then \\n\" +\n+                \"end\\n\";\n+\n+        KieServices ks = KieServices.Factory.get();\n+\n+        ReleaseId releaseId1 = ks.newReleaseId(\"org.kie\", \"test-upgrade\", \"1.1.1\");\n+        KieModule km = createAndDeployJar(ks, releaseId1, drl1);\n+\n+        KieContainer kc = ks.newKieContainer(km.getReleaseId());\n+        KieSession ksession = kc.newKieSession();\n+\n+        kc.updateToVersion(releaseId1);","path":"drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java","position":37,"original_position":37,"commit_id":"fe3ca6e86e7f704125e1f25b0ac92f93c5f13c6a","original_commit_id":"fe3ca6e86e7f704125e1f25b0ac92f93c5f13c6a","user":{"login":"etirelli","id":457009,"avatar_url":"https://avatars.githubusercontent.com/u/457009?v=3","gravatar_id":"","url":"https://api.github.com/users/etirelli","html_url":"https://github.com/etirelli","followers_url":"https://api.github.com/users/etirelli/followers","following_url":"https://api.github.com/users/etirelli/following{/other_user}","gists_url":"https://api.github.com/users/etirelli/gists{/gist_id}","starred_url":"https://api.github.com/users/etirelli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etirelli/subscriptions","organizations_url":"https://api.github.com/users/etirelli/orgs","repos_url":"https://api.github.com/users/etirelli/repos","events_url":"https://api.github.com/users/etirelli/events{/privacy}","received_events_url":"https://api.github.com/users/etirelli/received_events","type":"User","site_admin":false},"body":"Out of curiosity, why do you call updateToVersion() using the same releaseId the current container was created with?","created_at":"2015-10-19T14:14:02Z","updated_at":"2015-10-19T14:14:02Z","html_url":"https://github.com/droolsjbpm/drools/pull/513#discussion_r42375388","pull_request_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/513","_links":{"self":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments/42375388"},"html":{"href":"https://github.com/droolsjbpm/drools/pull/513#discussion_r42375388"},"pull_request":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/513"}}},"pull_request":{"url":"https://api.github.com/repos/droolsjbpm/drools/pulls/513","id":48041579,"html_url":"https://github.com/droolsjbpm/drools/pull/513","diff_url":"https://github.com/droolsjbpm/drools/pull/513.diff","patch_url":"https://github.com/droolsjbpm/drools/pull/513.patch","issue_url":"https://api.github.com/repos/droolsjbpm/drools/issues/513","number":513,"state":"open","locked":false,"title":"[DROOLS-954] fix removal of a rule with a sub-subnetwork","user":{"login":"mariofusco","id":372781,"avatar_url":"https://avatars.githubusercontent.com/u/372781?v=3","gravatar_id":"","url":"https://api.github.com/users/mariofusco","html_url":"https://github.com/mariofusco","followers_url":"https://api.github.com/users/mariofusco/followers","following_url":"https://api.github.com/users/mariofusco/following{/other_user}","gists_url":"https://api.github.com/users/mariofusco/gists{/gist_id}","starred_url":"https://api.github.com/users/mariofusco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariofusco/subscriptions","organizations_url":"https://api.github.com/users/mariofusco/orgs","repos_url":"https://api.github.com/users/mariofusco/repos","events_url":"https://api.github.com/users/mariofusco/events{/privacy}","received_events_url":"https://api.github.com/users/mariofusco/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-19T08:11:05Z","updated_at":"2015-10-19T14:14:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adfb8dd66c9e5e4365663b4b3d49baac815f5070","assignee":{"login":"mdproctor","id":521762,"avatar_url":"https://avatars.githubusercontent.com/u/521762?v=3","gravatar_id":"","url":"https://api.github.com/users/mdproctor","html_url":"https://github.com/mdproctor","followers_url":"https://api.github.com/users/mdproctor/followers","following_url":"https://api.github.com/users/mdproctor/following{/other_user}","gists_url":"https://api.github.com/users/mdproctor/gists{/gist_id}","starred_url":"https://api.github.com/users/mdproctor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdproctor/subscriptions","organizations_url":"https://api.github.com/users/mdproctor/orgs","repos_url":"https://api.github.com/users/mdproctor/repos","events_url":"https://api.github.com/users/mdproctor/events{/privacy}","received_events_url":"https://api.github.com/users/mdproctor/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/513/commits","review_comments_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/513/comments","review_comment_url":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/droolsjbpm/drools/issues/513/comments","statuses_url":"https://api.github.com/repos/droolsjbpm/drools/statuses/fe3ca6e86e7f704125e1f25b0ac92f93c5f13c6a","head":{"label":"mariofusco:d954","ref":"d954","sha":"fe3ca6e86e7f704125e1f25b0ac92f93c5f13c6a","user":{"login":"mariofusco","id":372781,"avatar_url":"https://avatars.githubusercontent.com/u/372781?v=3","gravatar_id":"","url":"https://api.github.com/users/mariofusco","html_url":"https://github.com/mariofusco","followers_url":"https://api.github.com/users/mariofusco/followers","following_url":"https://api.github.com/users/mariofusco/following{/other_user}","gists_url":"https://api.github.com/users/mariofusco/gists{/gist_id}","starred_url":"https://api.github.com/users/mariofusco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariofusco/subscriptions","organizations_url":"https://api.github.com/users/mariofusco/orgs","repos_url":"https://api.github.com/users/mariofusco/repos","events_url":"https://api.github.com/users/mariofusco/events{/privacy}","received_events_url":"https://api.github.com/users/mariofusco/received_events","type":"User","site_admin":false},"repo":{"id":2061042,"name":"drools","full_name":"mariofusco/drools","owner":{"login":"mariofusco","id":372781,"avatar_url":"https://avatars.githubusercontent.com/u/372781?v=3","gravatar_id":"","url":"https://api.github.com/users/mariofusco","html_url":"https://github.com/mariofusco","followers_url":"https://api.github.com/users/mariofusco/followers","following_url":"https://api.github.com/users/mariofusco/following{/other_user}","gists_url":"https://api.github.com/users/mariofusco/gists{/gist_id}","starred_url":"https://api.github.com/users/mariofusco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariofusco/subscriptions","organizations_url":"https://api.github.com/users/mariofusco/orgs","repos_url":"https://api.github.com/users/mariofusco/repos","events_url":"https://api.github.com/users/mariofusco/events{/privacy}","received_events_url":"https://api.github.com/users/mariofusco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mariofusco/drools","description":"Drools Expert is the rule engine and Drools Fusion does complex event processing (CEP).","fork":true,"url":"https://api.github.com/repos/mariofusco/drools","forks_url":"https://api.github.com/repos/mariofusco/drools/forks","keys_url":"https://api.github.com/repos/mariofusco/drools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mariofusco/drools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mariofusco/drools/teams","hooks_url":"https://api.github.com/repos/mariofusco/drools/hooks","issue_events_url":"https://api.github.com/repos/mariofusco/drools/issues/events{/number}","events_url":"https://api.github.com/repos/mariofusco/drools/events","assignees_url":"https://api.github.com/repos/mariofusco/drools/assignees{/user}","branches_url":"https://api.github.com/repos/mariofusco/drools/branches{/branch}","tags_url":"https://api.github.com/repos/mariofusco/drools/tags","blobs_url":"https://api.github.com/repos/mariofusco/drools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mariofusco/drools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mariofusco/drools/git/refs{/sha}","trees_url":"https://api.github.com/repos/mariofusco/drools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mariofusco/drools/statuses/{sha}","languages_url":"https://api.github.com/repos/mariofusco/drools/languages","stargazers_url":"https://api.github.com/repos/mariofusco/drools/stargazers","contributors_url":"https://api.github.com/repos/mariofusco/drools/contributors","subscribers_url":"https://api.github.com/repos/mariofusco/drools/subscribers","subscription_url":"https://api.github.com/repos/mariofusco/drools/subscription","commits_url":"https://api.github.com/repos/mariofusco/drools/commits{/sha}","git_commits_url":"https://api.github.com/repos/mariofusco/drools/git/commits{/sha}","comments_url":"https://api.github.com/repos/mariofusco/drools/comments{/number}","issue_comment_url":"https://api.github.com/repos/mariofusco/drools/issues/comments{/number}","contents_url":"https://api.github.com/repos/mariofusco/drools/contents/{+path}","compare_url":"https://api.github.com/repos/mariofusco/drools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mariofusco/drools/merges","archive_url":"https://api.github.com/repos/mariofusco/drools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mariofusco/drools/downloads","issues_url":"https://api.github.com/repos/mariofusco/drools/issues{/number}","pulls_url":"https://api.github.com/repos/mariofusco/drools/pulls{/number}","milestones_url":"https://api.github.com/repos/mariofusco/drools/milestones{/number}","notifications_url":"https://api.github.com/repos/mariofusco/drools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mariofusco/drools/labels{/name}","releases_url":"https://api.github.com/repos/mariofusco/drools/releases{/id}","created_at":"2011-07-17T08:40:19Z","updated_at":"2014-11-25T16:47:27Z","pushed_at":"2015-10-19T10:57:46Z","git_url":"git://github.com/mariofusco/drools.git","ssh_url":"git@github.com:mariofusco/drools.git","clone_url":"https://github.com/mariofusco/drools.git","svn_url":"https://github.com/mariofusco/drools","homepage":"http://www.jboss.org/drools","size":148030,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"droolsjbpm:master","ref":"master","sha":"010d0a59c5f125c0cf6f82dfe638e131cd497af8","user":{"login":"droolsjbpm","id":517980,"avatar_url":"https://avatars.githubusercontent.com/u/517980?v=3","gravatar_id":"","url":"https://api.github.com/users/droolsjbpm","html_url":"https://github.com/droolsjbpm","followers_url":"https://api.github.com/users/droolsjbpm/followers","following_url":"https://api.github.com/users/droolsjbpm/following{/other_user}","gists_url":"https://api.github.com/users/droolsjbpm/gists{/gist_id}","starred_url":"https://api.github.com/users/droolsjbpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droolsjbpm/subscriptions","organizations_url":"https://api.github.com/users/droolsjbpm/orgs","repos_url":"https://api.github.com/users/droolsjbpm/repos","events_url":"https://api.github.com/users/droolsjbpm/events{/privacy}","received_events_url":"https://api.github.com/users/droolsjbpm/received_events","type":"Organization","site_admin":false},"repo":{"id":1381673,"name":"drools","full_name":"droolsjbpm/drools","owner":{"login":"droolsjbpm","id":517980,"avatar_url":"https://avatars.githubusercontent.com/u/517980?v=3","gravatar_id":"","url":"https://api.github.com/users/droolsjbpm","html_url":"https://github.com/droolsjbpm","followers_url":"https://api.github.com/users/droolsjbpm/followers","following_url":"https://api.github.com/users/droolsjbpm/following{/other_user}","gists_url":"https://api.github.com/users/droolsjbpm/gists{/gist_id}","starred_url":"https://api.github.com/users/droolsjbpm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droolsjbpm/subscriptions","organizations_url":"https://api.github.com/users/droolsjbpm/orgs","repos_url":"https://api.github.com/users/droolsjbpm/repos","events_url":"https://api.github.com/users/droolsjbpm/events{/privacy}","received_events_url":"https://api.github.com/users/droolsjbpm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/droolsjbpm/drools","description":"Drools Expert is the rule engine and Drools Fusion does complex event processing (CEP).","fork":false,"url":"https://api.github.com/repos/droolsjbpm/drools","forks_url":"https://api.github.com/repos/droolsjbpm/drools/forks","keys_url":"https://api.github.com/repos/droolsjbpm/drools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/droolsjbpm/drools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/droolsjbpm/drools/teams","hooks_url":"https://api.github.com/repos/droolsjbpm/drools/hooks","issue_events_url":"https://api.github.com/repos/droolsjbpm/drools/issues/events{/number}","events_url":"https://api.github.com/repos/droolsjbpm/drools/events","assignees_url":"https://api.github.com/repos/droolsjbpm/drools/assignees{/user}","branches_url":"https://api.github.com/repos/droolsjbpm/drools/branches{/branch}","tags_url":"https://api.github.com/repos/droolsjbpm/drools/tags","blobs_url":"https://api.github.com/repos/droolsjbpm/drools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/droolsjbpm/drools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/droolsjbpm/drools/git/refs{/sha}","trees_url":"https://api.github.com/repos/droolsjbpm/drools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/droolsjbpm/drools/statuses/{sha}","languages_url":"https://api.github.com/repos/droolsjbpm/drools/languages","stargazers_url":"https://api.github.com/repos/droolsjbpm/drools/stargazers","contributors_url":"https://api.github.com/repos/droolsjbpm/drools/contributors","subscribers_url":"https://api.github.com/repos/droolsjbpm/drools/subscribers","subscription_url":"https://api.github.com/repos/droolsjbpm/drools/subscription","commits_url":"https://api.github.com/repos/droolsjbpm/drools/commits{/sha}","git_commits_url":"https://api.github.com/repos/droolsjbpm/drools/git/commits{/sha}","comments_url":"https://api.github.com/repos/droolsjbpm/drools/comments{/number}","issue_comment_url":"https://api.github.com/repos/droolsjbpm/drools/issues/comments{/number}","contents_url":"https://api.github.com/repos/droolsjbpm/drools/contents/{+path}","compare_url":"https://api.github.com/repos/droolsjbpm/drools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/droolsjbpm/drools/merges","archive_url":"https://api.github.com/repos/droolsjbpm/drools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/droolsjbpm/drools/downloads","issues_url":"https://api.github.com/repos/droolsjbpm/drools/issues{/number}","pulls_url":"https://api.github.com/repos/droolsjbpm/drools/pulls{/number}","milestones_url":"https://api.github.com/repos/droolsjbpm/drools/milestones{/number}","notifications_url":"https://api.github.com/repos/droolsjbpm/drools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/droolsjbpm/drools/labels{/name}","releases_url":"https://api.github.com/repos/droolsjbpm/drools/releases{/id}","created_at":"2011-02-18T08:37:05Z","updated_at":"2015-10-09T16:37:24Z","pushed_at":"2015-10-19T11:00:06Z","git_url":"git://github.com/droolsjbpm/drools.git","ssh_url":"git@github.com:droolsjbpm/drools.git","clone_url":"https://github.com/droolsjbpm/drools.git","svn_url":"https://github.com/droolsjbpm/drools","homepage":"http://www.drools.org","size":298958,"stargazers_count":471,"watchers_count":471,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":700,"mirror_url":null,"open_issues_count":6,"forks":700,"open_issues":6,"watchers":471,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/513"},"html":{"href":"https://github.com/droolsjbpm/drools/pull/513"},"issue":{"href":"https://api.github.com/repos/droolsjbpm/drools/issues/513"},"comments":{"href":"https://api.github.com/repos/droolsjbpm/drools/issues/513/comments"},"review_comments":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/513/comments"},"review_comment":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/droolsjbpm/drools/pulls/513/commits"},"statuses":{"href":"https://api.github.com/repos/droolsjbpm/drools/statuses/fe3ca6e86e7f704125e1f25b0ac92f93c5f13c6a"}}}}