From 8e9dd127517fe7e4cae628f731b924656c123762 Mon Sep 17 00:00:00 2001 From: Evelina02 Date: Thu, 19 Feb 2026 16:10:48 +0300 Subject: [PATCH 1/2] EPMRPP-112203 delete elementsCounting --- .../ta/reportportal/dao/LogRepository.java | 4 -- .../reportportal/dao/TestItemRepository.java | 46 ------------------- 2 files changed, 50 deletions(-) diff --git a/src/main/java/com/epam/ta/reportportal/dao/LogRepository.java b/src/main/java/com/epam/ta/reportportal/dao/LogRepository.java index 9da0d9c72..49fb637d3 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/LogRepository.java +++ b/src/main/java/com/epam/ta/reportportal/dao/LogRepository.java @@ -35,10 +35,6 @@ public interface LogRepository extends ReportPortalRepository, LogRep List findLogsByLogTime(Timestamp timestamp); - long countLogsByTestItemItemIdIn(List testItemIds); - - long countLogsByLaunchId(Long launchId); - @Query(value = """ WITH ParentPath AS ( SELECT path diff --git a/src/main/java/com/epam/ta/reportportal/dao/TestItemRepository.java b/src/main/java/com/epam/ta/reportportal/dao/TestItemRepository.java index bbddd7b72..1cedaeb9b 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/TestItemRepository.java +++ b/src/main/java/com/epam/ta/reportportal/dao/TestItemRepository.java @@ -179,17 +179,6 @@ Slice findTestItemsByAttributeAndStatuses(@Param("projectId") Long pro @Param("value") String attributeValue, @Param("statuses") List statuses, Pageable pageable); - /** - * Retrieve list of test item ids for provided launch - * - * @param launchId Launch id - * @return List of test item ids - */ - @Query(value = "SELECT item_id FROM test_item WHERE launch_id = :launchId UNION " - + "SELECT item_id FROM test_item WHERE retry_of IS NOT NULL AND retry_of IN " - + "(SELECT item_id FROM test_item WHERE launch_id = :launchId);", nativeQuery = true) - List findIdsByLaunchId(@Param("launchId") Long launchId); - /** * Retrieve the {@link List} of the {@link TestItem#getItemId()} by launch ID, * {@link StatusEnum#name()} and {@link TestItem#isHasChildren()} == false @@ -525,41 +514,6 @@ Optional findLatestIdByTestCaseHashAndLaunchIdAndParentId( @Query(value = "SELECT t.name FROM test_item t WHERE t.item_id = :itemId", nativeQuery = true) Optional findItemNameByItemId(Long itemId); - /** - * Count items by launch id - * - * @param launchId Launch id - * @return Number of {@link TestItem} - */ - long countTestItemByLaunchId(Long launchId); - - /** - * Select items with provided parent ids - * - * @param parentIds Parent test items id - * @return List of item ids - */ - @Query(value = "SELECT t.item_id FROM test_item t WHERE t.parent_id IN (:parentIds)", nativeQuery = true) - List findIdsByParentIds(@Param("parentIds") Long... parentIds); - - /** - * Select item paths by provided parent ids - * - * @param parentIds Parent test items id - * @return List of item paths - */ - @Query(value = "SELECT CAST(t.path AS VARCHAR) FROM test_item t WHERE t.parent_id IN (:parentIds)", nativeQuery = true) - List findPathsByParentIds(@Param("parentIds") Long... parentIds); - - /** - * Select items ids with provided retry of - * - * @param retryOf Retry of test item id - * @return List of item ids - */ - @Query(value = "SELECT t.item_id FROM test_item t WHERE t.retry_of = :retryOf", nativeQuery = true) - List findIdsByRetryOf(@Param("retryOf") Long retryOf); - /** * Returns IDs (from itemIds) that have nested steps. * From e54b5dc19b0b5d8cf5c6a1e3de8a29572174d35a Mon Sep 17 00:00:00 2001 From: Evelina02 Date: Thu, 19 Feb 2026 16:23:17 +0300 Subject: [PATCH 2/2] EPMRPP-112203 delete elementsCounting --- project-properties.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project-properties.gradle b/project-properties.gradle index 2553bec75..7a46fc725 100755 --- a/project-properties.gradle +++ b/project-properties.gradle @@ -6,7 +6,7 @@ project.ext { dependencyRepos = ["commons", "commons-rules", "commons-model", "commons-bom"] releaseMode = project.hasProperty("releaseMode") ? project.releaseMode.toBoolean() : false hasDBSchema = project.hasProperty("DB_SCHEMA_POSTGRES") - scriptsUrl = commonScriptsUrl + (releaseMode ? getProperty('scripts.version') : '01231cd') + scriptsUrl = commonScriptsUrl + (releaseMode ? getProperty('scripts.version') : '5.14.0') migrationsUrl = migrationsScriptsUrl + (releaseMode ? getProperty('migrations.version') : 'EPMRPP-111517') //TODO refactor with archive download