Skip to content

Commit

Permalink
EPMRPP-89958 || Remove update of parent test item if it has status an… (
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanKustau committed Apr 1, 2024
1 parent 53f8a90 commit fbc5e29
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import static com.epam.ta.reportportal.entity.enums.StatusEnum.FAILED;
import static com.epam.ta.reportportal.entity.enums.StatusEnum.INFO;
import static com.epam.ta.reportportal.entity.enums.StatusEnum.PASSED;
import static com.epam.ta.reportportal.entity.enums.StatusEnum.SKIPPED;
import static com.epam.ta.reportportal.entity.enums.StatusEnum.WARN;
import static com.epam.ta.reportportal.ws.converter.converters.TestItemConverter.TO_ACTIVITY_RESOURCE;
import static java.util.Optional.ofNullable;
Expand Down Expand Up @@ -93,6 +94,7 @@ private boolean isParentStatusUpdateRequired(TestItem parent) {
return parent.getItemResults().getStatus() != StatusEnum.IN_PROGRESS
&& parent.getItemResults().getStatus() != PASSED
&& parent.getItemResults().getStatus() != FAILED
&& parent.getItemResults().getStatus() != SKIPPED
&& !testItemRepository.hasItemsInStatusByParent(parent.getItemId(), parent.getPath(),
StatusEnum.IN_PROGRESS.name());
}
Expand Down

0 comments on commit fbc5e29

Please sign in to comment.