@@ -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