-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(webapps): activityIdIn filter returns all relevant instances #4758
Conversation
…ces" This reverts commit e0f66d6.
@@ -2071,8 +2121,7 @@ public void shouldQueryByActivityIdInWithMultipleScope() { | |||
assertThat(queryByInnerServiceActivityId.size()).isEqualTo(1); | |||
assertThat(queryByInnerServiceActivityId.get(0).getId()).isEqualTo(processInstance.getId()); | |||
|
|||
assertThat(queryBySubProcessActivityId.size()).isEqualTo(1); | |||
assertThat(queryBySubProcessActivityId.get(0).getId()).isEqualTo(processInstance.getId()); | |||
assertNull(queryBySubProcessActivityId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have 2 instances one at user task innerTask
and one in user task outerTask
.
Querying by subProcess
should return null. The Runtime query has the same behaviur (not returning instances by subProcess
activityId)
@@ -2032,8 +2082,8 @@ public void shouldQueryByActivityIdInWithMultipleScopeAndIncident() { | |||
assertThat(queryByInnerServiceActivityId.size()).isEqualTo(1); | |||
assertThat(queryByInnerServiceActivityId.get(0).getId()).isEqualTo(processInstance.getId()); | |||
|
|||
assertThat(queryBySubProcessActivityId.size()).isEqualTo(1); | |||
assertThat(queryBySubProcessActivityId.get(0).getId()).isEqualTo(processInstance.getId()); | |||
assertNull(queryBySubProcessActivityId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have 2 instances one at service task innerServiceTask
and one in service task outerTask
.
Querying by subProcess should return null. The Runtime query has the same behaviour (not returning instances by subProcess
activityId)
@@ -1924,8 +1973,9 @@ public void testHistoricProcInstQueryWithActivityIdsWithFailingActivity() { | |||
|
|||
// then | |||
assertNotNull(result); | |||
assertEquals(1, result.size()); | |||
assertEquals(result.get(0).getId(), failingInstance.getId()); | |||
assertEquals(2, result.size()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now the instance that has not failed yet as in async waiting returned correctly.
Pushed one commit, prev changed passed CI and this should not change behaviour |
related to: #4757