Skip to content

Commit

Permalink
Add Profiles enable (new) clickhouse components
Browse files Browse the repository at this point in the history
  • Loading branch information
haynescd committed Feb 3, 2025
1 parent 102d127 commit b4addb6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.cbioportal.legacy.web.parameter.sort.StudySortBy;
import org.cbioportal.shared.SortAndSearchCriteria;
import org.cbioportal.shared.enums.ProjectionType;
import org.springframework.context.annotation.Profile;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
Expand All @@ -35,6 +36,7 @@
*/
@RestController
@RequestMapping("/api/column-store")
@Profile("clickhouse")
public class ColumnStoreStudyController {

private final GetCancerStudyMetadataUseCase getCancerStudyMetadataUseCase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import org.cbioportal.cancerstudy.repository.CancerStudyRepository;
import org.cbioportal.shared.SortAndSearchCriteria;
import org.cbioportal.shared.enums.ProjectionType;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

import java.util.Collections;
Expand Down Expand Up @@ -42,6 +43,7 @@
* @see CancerStudyMetadata
*/
@Service
@Profile("clickhouse")
public final class GetCancerStudyMetadataUseCase {

private final CancerStudyRepository studyRepository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.cbioportal.cancerstudy.CancerStudyMetadata;
import org.cbioportal.cancerstudy.repository.CancerStudyRepository;
import org.cbioportal.shared.SortAndSearchCriteria;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Repository;

import java.util.List;
Expand All @@ -12,6 +13,7 @@
* This class delegates database queries to {@link ClickhouseCancerStudyMapper}.
*/
@Repository
@Profile("clickhouse")
public class ClickhouseCancerStudyRepository implements CancerStudyRepository {

private final ClickhouseCancerStudyMapper cancerStudyMapper;
Expand Down

0 comments on commit b4addb6

Please sign in to comment.