public class TestItemRepositoryCustomImpl extends java.lang.Object implements TestItemRepositoryCustom
| Modifier and Type | Field and Description |
|---|---|
static int |
HISTORY_LIMIT |
| Constructor and Description |
|---|
TestItemRepositoryCustomImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRetry(java.lang.String id,
TestItem retry)
Adds retry to test item
|
void |
deleteExecutionStatistics(TestItem item) |
void |
deleteIssueStatistics(TestItem item) |
void |
dropIssueStatisticsType(java.lang.String id,
StatisticSubType type) |
java.util.List<TestItem> |
findByHasChildStatus(boolean hasChildren,
java.lang.String launch)
Get elements in launch branches specified by has_childs status.
|
java.util.List<TestItem> |
findByLaunch(Launch launch) |
java.util.List<TestItem> |
findDescendants(java.lang.String... id) |
java.util.List<java.lang.String> |
findDistinctValues(java.lang.String launchId,
java.lang.String containsValue,
java.lang.String distinctBy)
Get list of distinct values from TestItems collection
|
java.util.List<TestItem> |
findForSpecifiedSubType(java.util.List<java.lang.String> launchesIds,
boolean hasChild,
StatisticSubType type)
Get all test items without descendants under specified launches with
specified sub-types.
|
java.util.List<TestItem> |
findIdsByLaunch(java.lang.Iterable<Launch> launches)
Finds testItems by specified launch IDs
|
java.util.List<java.lang.String> |
findIdsNotInIssueType(java.lang.String issueType,
java.lang.String launchId)
Get test items ids for specified launch with issue type that is not
the provided issue type
|
java.util.Set<java.lang.String> |
findIdsWithNameByLaunchesRef(java.lang.String name,
java.util.Set<java.lang.String> launchRef)
Get ids of test-items with specified name for specified launches.
|
java.util.List<TestItem> |
findInIssueTypeItems(java.lang.String issueType,
java.lang.String launchId)
Get test-items for specified launch with specified issue type.
|
java.util.List<java.lang.String> |
findItemIdsByLaunchRef(java.util.List<java.lang.String> launchRefs)
Get test-items ids for specified launches.
|
java.util.List<TestItem> |
findItemsByAutoAnalyzedStatus(boolean status,
java.lang.String launchId)
Find items by provided auto analyzed status of items issue
|
java.util.List<TestItem> |
findItemsNotInIssueType(java.lang.String issueType,
java.lang.String launchId)
Get test items for specified launch with issue type that is not
the provided issue type
|
java.util.List<TestItem> |
findItemsWithType(java.lang.String launchId,
TestItemType type)
Get test-items for specified launch with specified test item type.
|
java.util.List<TestItem> |
findModifiedLaterAgo(java.time.Duration period,
Status status,
Launch launch)
Finds items modified later than provided period with provided status
which is item of provided launch
|
java.util.List<TestItem> |
findModifiedLaterAgo(java.time.Duration period,
Status status,
Launch launch,
boolean hasChilds)
Finds items modified later than provided period with provided status
which is item of provided launch
|
java.util.List<DurationTestItem> |
findMostTimeConsumingTestItems(Queryable filter,
int limit)
Finds most time consuming test cases for specified launch
|
java.util.Map<java.lang.String,java.lang.String> |
findPathNames(java.lang.Iterable<java.lang.String> path)
Get names of path field of test item
|
java.util.List<RetryObject> |
findRetries(java.lang.String launchId)
Find retries in launch
|
java.util.Optional<TestItem> |
findRetry(java.lang.String retryId)
Finds retry
|
TestItem |
findRetryRoot(java.lang.String uniqueId,
java.lang.String parent)
Finds initial item of the retry
|
java.util.List<TestItem> |
findTestItemWithIssues(java.lang.String launchId)
Get test-items for specified launch with any issue type
|
java.util.List<TestItem> |
findWithoutParentByLaunchRef(java.lang.String launchId)
Get test items without parent with specified launch.
|
java.util.List<FlakyHistory> |
getFlakyItemStatusHistory(Queryable filter)
Get status history of potential flaky items in specified launches.
|
java.util.List<MostFailedHistory> |
getMostFailedItemHistory(Queryable filter,
java.lang.String criteria,
int limit)
Get history of most failed test items limited by historyLimit
and sorted by failed count
|
java.util.List<java.lang.String> |
getUniqueTicketsCount(java.util.List<Launch> launches)
Get list of unique tickets for specified list of launches
|
boolean |
hasChildrenWithStatuses(java.lang.String itemId,
Status... statuses) |
boolean |
hasDescendants(java.lang.Object... id) |
boolean |
hasLogs(java.lang.Iterable<TestItem> items)
Whether some of provided items has logs
|
boolean |
hasTestItemsAddedLately(java.time.Duration period,
Launch launch,
Status status)
Whether launch contains any testItems added lately.
|
java.util.List<TestItem> |
loadItemsHistory(java.util.List<java.lang.String> uniqueIds,
java.util.List<java.lang.String> launchesIds)
Load states of specified testItems in specified launches
|
void |
resetExecutionStatistics(TestItem item) |
void |
resetIssueStatistics(TestItem item,
Project.Configuration settings) |
void |
updateExecutionStatistics(TestItem item) |
void |
updateHasChilds(java.lang.String id,
boolean hasChildren)
Updates hasChilds value
|
void |
updateIssueStatistics(TestItem item,
Project.Configuration settings) |
void |
updateItemsIssues(java.util.Map<java.lang.String,TestItemIssue> forUpdate)
Update only issue type for specified items without
updating its' statistics
|
void |
updateRetry(java.lang.String id,
TestItem retry)
Updates retry
|
public static final int HISTORY_LIMIT
public void updateExecutionStatistics(TestItem item)
updateExecutionStatistics in interface StatisticsUpdatePolicy<TestItem,Project.Configuration>public void updateIssueStatistics(TestItem item, Project.Configuration settings)
updateIssueStatistics in interface StatisticsUpdatePolicy<TestItem,Project.Configuration>public void dropIssueStatisticsType(java.lang.String id,
StatisticSubType type)
dropIssueStatisticsType in interface TestItemRepositoryCustompublic void updateHasChilds(java.lang.String id,
boolean hasChildren)
TestItemRepositoryCustomupdateHasChilds in interface TestItemRepositoryCustomid - TestItem IDhasChildren - hasChilds field valuepublic void addRetry(java.lang.String id,
TestItem retry)
TestItemRepositoryCustomaddRetry in interface TestItemRepositoryCustomid - ID of root itemretry - Retry to be addedpublic void updateRetry(java.lang.String id,
TestItem retry)
TestItemRepositoryCustomupdateRetry in interface TestItemRepositoryCustomid - ID of retry itemretry - Retry to be updatedpublic void updateItemsIssues(java.util.Map<java.lang.String,TestItemIssue> forUpdate)
TestItemRepositoryCustomupdateItemsIssues in interface TestItemRepositoryCustomforUpdate - items for updatepublic boolean hasDescendants(java.lang.Object... id)
hasDescendants in interface TestItemRepositoryCustompublic java.util.List<TestItem> findDescendants(java.lang.String... id)
findDescendants in interface TestItemRepositoryCustompublic void resetIssueStatistics(TestItem item, Project.Configuration settings)
resetIssueStatistics in interface StatisticsUpdatePolicy<TestItem,Project.Configuration>public void resetExecutionStatistics(TestItem item)
resetExecutionStatistics in interface StatisticsUpdatePolicy<TestItem,Project.Configuration>public void deleteIssueStatistics(TestItem item)
deleteIssueStatistics in interface StatisticsUpdatePolicy<TestItem,Project.Configuration>public void deleteExecutionStatistics(TestItem item)
deleteExecutionStatistics in interface StatisticsUpdatePolicy<TestItem,Project.Configuration>public java.util.List<TestItem> findByLaunch(Launch launch)
findByLaunch in interface TestItemRepositoryCustompublic java.util.List<TestItem> findIdsByLaunch(java.lang.Iterable<Launch> launches)
TestItemRepositoryCustomfindIdsByLaunch in interface TestItemRepositoryCustompublic java.util.Map<java.lang.String,java.lang.String> findPathNames(java.lang.Iterable<java.lang.String> path)
TestItemRepositoryCustomfindPathNames in interface TestItemRepositoryCustompublic java.util.List<TestItem> findModifiedLaterAgo(java.time.Duration period, Status status, Launch launch, boolean hasChilds)
TestItemRepositoryCustomfindModifiedLaterAgo in interface TestItemRepositoryCustompublic java.util.List<TestItem> findModifiedLaterAgo(java.time.Duration period, Status status, Launch launch)
TestItemRepositoryCustomfindModifiedLaterAgo in interface TestItemRepositoryCustompublic java.util.List<java.lang.String> findDistinctValues(java.lang.String launchId,
java.lang.String containsValue,
java.lang.String distinctBy)
TestItemRepositoryCustomfindDistinctValues in interface TestItemRepositoryCustomlaunchId - - parent launch idcontainsValue - - part of string of searching valuedistinctBy - - field which should contain valuepublic java.util.List<java.lang.String> getUniqueTicketsCount(java.util.List<Launch> launches)
TestItemRepositoryCustomgetUniqueTicketsCount in interface TestItemRepositoryCustompublic java.util.List<MostFailedHistory> getMostFailedItemHistory(Queryable filter, java.lang.String criteria, int limit)
TestItemRepositoryCustomgetMostFailedItemHistory in interface TestItemRepositoryCustomfilter - Filtercriteria - Criterialimit - Limit of historypublic java.util.List<FlakyHistory> getFlakyItemStatusHistory(Queryable filter)
TestItemRepositoryCustomgetFlakyItemStatusHistory in interface TestItemRepositoryCustomfilter - Filterpublic boolean hasLogs(java.lang.Iterable<TestItem> items)
TestItemRepositoryCustomhasLogs in interface TestItemRepositoryCustompublic java.util.List<TestItem> loadItemsHistory(java.util.List<java.lang.String> uniqueIds, java.util.List<java.lang.String> launchesIds)
TestItemRepositoryCustomloadItemsHistory in interface TestItemRepositoryCustomuniqueIds - Items unique idslaunchesIds - Launches idspublic boolean hasTestItemsAddedLately(java.time.Duration period,
Launch launch,
Status status)
TestItemRepositoryCustomhasTestItemsAddedLately in interface TestItemRepositoryCustompublic java.util.List<TestItem> findInIssueTypeItems(java.lang.String issueType, java.lang.String launchId)
TestItemRepositoryCustomfindInIssueTypeItems in interface TestItemRepositoryCustompublic java.util.List<TestItem> findItemsNotInIssueType(java.lang.String issueType, java.lang.String launchId)
TestItemRepositoryCustomfindItemsNotInIssueType in interface TestItemRepositoryCustomissueType - Not in issue typelaunchId - Launch idpublic java.util.List<java.lang.String> findIdsNotInIssueType(java.lang.String issueType,
java.lang.String launchId)
TestItemRepositoryCustomfindIdsNotInIssueType in interface TestItemRepositoryCustomissueType - Not in issue typelaunchId - Launch idpublic java.util.List<java.lang.String> findItemIdsByLaunchRef(java.util.List<java.lang.String> launchRefs)
TestItemRepositoryCustomfindItemIdsByLaunchRef in interface TestItemRepositoryCustompublic java.util.List<TestItem> findItemsWithType(java.lang.String launchId, TestItemType type)
TestItemRepositoryCustomfindItemsWithType in interface TestItemRepositoryCustompublic java.util.Set<java.lang.String> findIdsWithNameByLaunchesRef(java.lang.String name,
java.util.Set<java.lang.String> launchRef)
TestItemRepositoryCustomfindIdsWithNameByLaunchesRef in interface TestItemRepositoryCustompublic java.util.List<TestItem> findByHasChildStatus(boolean hasChildren, java.lang.String launch)
TestItemRepositoryCustomfindByHasChildStatus in interface TestItemRepositoryCustompublic java.util.List<TestItem> findForSpecifiedSubType(java.util.List<java.lang.String> launchesIds, boolean hasChild, StatisticSubType type)
TestItemRepositoryCustomfindForSpecifiedSubType in interface TestItemRepositoryCustompublic java.util.List<TestItem> findTestItemWithIssues(java.lang.String launchId)
TestItemRepositoryCustomfindTestItemWithIssues in interface TestItemRepositoryCustompublic boolean hasChildrenWithStatuses(java.lang.String itemId,
Status... statuses)
hasChildrenWithStatuses in interface TestItemRepositoryCustompublic java.util.List<TestItem> findWithoutParentByLaunchRef(java.lang.String launchId)
TestItemRepositoryCustomfindWithoutParentByLaunchRef in interface TestItemRepositoryCustomlaunchId - launch referencepublic TestItem findRetryRoot(java.lang.String uniqueId, java.lang.String parent)
TestItemRepositoryCustomfindRetryRoot in interface TestItemRepositoryCustomuniqueId - UniqueID of itemparent - ID of retry's parentpublic java.util.Optional<TestItem> findRetry(java.lang.String retryId)
TestItemRepositoryCustomfindRetry in interface TestItemRepositoryCustomretryId - ID of retrypublic java.util.List<RetryObject> findRetries(java.lang.String launchId)
TestItemRepositoryCustomfindRetries in interface TestItemRepositoryCustompublic java.util.List<TestItem> findItemsByAutoAnalyzedStatus(boolean status, java.lang.String launchId)
TestItemRepositoryCustomfindItemsByAutoAnalyzedStatus in interface TestItemRepositoryCustompublic java.util.List<DurationTestItem> findMostTimeConsumingTestItems(Queryable filter, int limit)
TestItemRepositoryCustomfindMostTimeConsumingTestItems in interface TestItemRepositoryCustomfilter - Filterlimit - Query limit