Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

venetrius
Copy link
Member

related to: #4757

@venetrius venetrius added the ci:e2e Runs the frontend end-to-end tests. label Nov 1, 2024
@venetrius venetrius self-assigned this Nov 1, 2024
@@ -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);
Copy link
Member Author

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);
Copy link
Member Author

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());
Copy link
Member Author

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.

@venetrius
Copy link
Member Author

Pushed one commit, prev changed passed CI and this should not change behaviour

@tasso94 tasso94 closed this Nov 6, 2024
@tasso94 tasso94 deleted the Support-24208-activiyIdIn-filter branch November 6, 2024 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:e2e Runs the frontend end-to-end tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants