Skip to content

Commit a2feb93

Browse files
authored
EPMRPP-112203 || Delete unused elements counting methods (#1198)
* EPMRPP-112203 delete elementsCounting * EPMRPP-112203 delete elementsCounting
1 parent 81ea323 commit a2feb93

File tree

3 files changed

+1
-51
lines changed

3 files changed

+1
-51
lines changed

project-properties.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project.ext {
66
dependencyRepos = ["commons", "commons-rules", "commons-model", "commons-bom"]
77
releaseMode = project.hasProperty("releaseMode") ? project.releaseMode.toBoolean() : false
88
hasDBSchema = project.hasProperty("DB_SCHEMA_POSTGRES")
9-
scriptsUrl = commonScriptsUrl + (releaseMode ? getProperty('scripts.version') : '01231cd')
9+
scriptsUrl = commonScriptsUrl + (releaseMode ? getProperty('scripts.version') : '5.14.0')
1010
migrationsUrl = migrationsScriptsUrl + (releaseMode ? getProperty('migrations.version') : 'EPMRPP-111517')
1111

1212
//TODO refactor with archive download

src/main/java/com/epam/ta/reportportal/dao/LogRepository.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ public interface LogRepository extends ReportPortalRepository<Log, Long>, LogRep
3535

3636
List<Log> findLogsByLogTime(Timestamp timestamp);
3737

38-
long countLogsByTestItemItemIdIn(List<Long> testItemIds);
39-
40-
long countLogsByLaunchId(Long launchId);
41-
4238
@Query(value = """
4339
WITH ParentPath AS (
4440
SELECT path

src/main/java/com/epam/ta/reportportal/dao/TestItemRepository.java

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -179,17 +179,6 @@ Slice<TestItem> findTestItemsByAttributeAndStatuses(@Param("projectId") Long pro
179179
@Param("value") String attributeValue, @Param("statuses") List<String> statuses,
180180
Pageable pageable);
181181

182-
/**
183-
* Retrieve list of test item ids for provided launch
184-
*
185-
* @param launchId Launch id
186-
* @return List of test item ids
187-
*/
188-
@Query(value = "SELECT item_id FROM test_item WHERE launch_id = :launchId UNION "
189-
+ "SELECT item_id FROM test_item WHERE retry_of IS NOT NULL AND retry_of IN "
190-
+ "(SELECT item_id FROM test_item WHERE launch_id = :launchId);", nativeQuery = true)
191-
List<Long> findIdsByLaunchId(@Param("launchId") Long launchId);
192-
193182
/**
194183
* Retrieve the {@link List} of the {@link TestItem#getItemId()} by launch ID,
195184
* {@link StatusEnum#name()} and {@link TestItem#isHasChildren()} == false
@@ -525,41 +514,6 @@ Optional<Long> findLatestIdByTestCaseHashAndLaunchIdAndParentId(
525514
@Query(value = "SELECT t.name FROM test_item t WHERE t.item_id = :itemId", nativeQuery = true)
526515
Optional<String> findItemNameByItemId(Long itemId);
527516

528-
/**
529-
* Count items by launch id
530-
*
531-
* @param launchId Launch id
532-
* @return Number of {@link TestItem}
533-
*/
534-
long countTestItemByLaunchId(Long launchId);
535-
536-
/**
537-
* Select items with provided parent ids
538-
*
539-
* @param parentIds Parent test items id
540-
* @return List of item ids
541-
*/
542-
@Query(value = "SELECT t.item_id FROM test_item t WHERE t.parent_id IN (:parentIds)", nativeQuery = true)
543-
List<Long> findIdsByParentIds(@Param("parentIds") Long... parentIds);
544-
545-
/**
546-
* Select item paths by provided parent ids
547-
*
548-
* @param parentIds Parent test items id
549-
* @return List of item paths
550-
*/
551-
@Query(value = "SELECT CAST(t.path AS VARCHAR) FROM test_item t WHERE t.parent_id IN (:parentIds)", nativeQuery = true)
552-
List<String> findPathsByParentIds(@Param("parentIds") Long... parentIds);
553-
554-
/**
555-
* Select items ids with provided retry of
556-
*
557-
* @param retryOf Retry of test item id
558-
* @return List of item ids
559-
*/
560-
@Query(value = "SELECT t.item_id FROM test_item t WHERE t.retry_of = :retryOf", nativeQuery = true)
561-
List<Long> findIdsByRetryOf(@Param("retryOf") Long retryOf);
562-
563517
/**
564518
* Returns IDs (from itemIds) that have nested steps.
565519
*

0 commit comments

Comments
 (0)