diff --git a/src/main/java/com/epam/ta/reportportal/dao/organization/OrganizationUsersRepositoryCustomImpl.java b/src/main/java/com/epam/ta/reportportal/dao/organization/OrganizationUsersRepositoryCustomImpl.java index 45e641983..877a95132 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/organization/OrganizationUsersRepositoryCustomImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/organization/OrganizationUsersRepositoryCustomImpl.java @@ -20,7 +20,6 @@ import static com.epam.ta.reportportal.dao.util.OrganizationMapper.ORGANIZATION_USERS_LIST_FETCHER; import com.epam.reportportal.api.model.OrganizationUserInfo; -import com.epam.ta.reportportal.commons.querygen.FilterTarget; import com.epam.ta.reportportal.commons.querygen.QueryBuilder; import com.epam.ta.reportportal.commons.querygen.Queryable; import java.util.List; @@ -64,6 +63,6 @@ public Page findByFilter(Queryable filter, Pageable pageab return PageableExecutionUtils.getPage( ORGANIZATION_USERS_LIST_FETCHER.apply(dsl.fetch(query)), pageable, - () -> dsl.fetchCount(QueryBuilder.newBuilder(FilterTarget.ORGANIZATION_USERS).build())); + () -> dsl.fetchCount(QueryBuilder.newBuilder(filter).build())); } } diff --git a/src/main/java/com/epam/ta/reportportal/dao/project/OrganizationProjectRepositoryImpl.java b/src/main/java/com/epam/ta/reportportal/dao/project/OrganizationProjectRepositoryImpl.java index 39ea3ecfb..7ef3e4bbd 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/project/OrganizationProjectRepositoryImpl.java +++ b/src/main/java/com/epam/ta/reportportal/dao/project/OrganizationProjectRepositoryImpl.java @@ -2,10 +2,9 @@ import static com.epam.ta.reportportal.dao.util.ResultFetchers.ORGANIZATION_PROJECT_LIST_FETCHER; -import com.epam.ta.reportportal.commons.querygen.FilterTarget; +import com.epam.reportportal.api.model.ProjectProfile; import com.epam.ta.reportportal.commons.querygen.QueryBuilder; import com.epam.ta.reportportal.commons.querygen.Queryable; -import com.epam.reportportal.api.model.ProjectProfile; import org.jooq.DSLContext; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; @@ -28,7 +27,7 @@ public Page getProjectProfileListByFilter(Queryable filter, Page return PageableExecutionUtils.getPage(ORGANIZATION_PROJECT_LIST_FETCHER.apply( dsl.fetch(QueryBuilder.newBuilder(filter).with(pageable).build())), pageable, - () -> dsl.fetchCount(QueryBuilder.newBuilder(FilterTarget.PROJECT_PROFILE).build())); + () -> dsl.fetchCount(QueryBuilder.newBuilder(filter).build())); } } diff --git a/src/main/java/com/epam/ta/reportportal/dao/util/OrganizationMapper.java b/src/main/java/com/epam/ta/reportportal/dao/util/OrganizationMapper.java index f88e426d6..af994f673 100644 --- a/src/main/java/com/epam/ta/reportportal/dao/util/OrganizationMapper.java +++ b/src/main/java/com/epam/ta/reportportal/dao/util/OrganizationMapper.java @@ -87,7 +87,7 @@ private OrganizationMapper() { // set launches OrganizationRelationRelationshipsLaunches orl = new OrganizationRelationRelationshipsLaunches(); orl.meta(new OrganizationRelationRelationshipsLaunchesMeta() - //.count(row.get(OrganizationFilter.LAUNCHES_QUANTITY, Integer.class)) + .count(row.get(OrganizationFilter.LAUNCHES_QUANTITY, Integer.class)) .lastOccurredAt(row.get(OrganizationFilter.LAST_RUN, Instant.class))); // set projects