From e7e7d7b2e99d5493992e2319c17203dfb93bb70e Mon Sep 17 00:00:00 2001 From: alisman Date: Tue, 3 Dec 2024 18:08:25 -0500 Subject: [PATCH] Fix unfiltered method call in cacheable condition --- .../ClinicalDataDensityPlotServiceImpl.java | 2 +- .../impl/StudyViewColumnarServiceImpl.java | 36 +++++++++---------- .../service/impl/ViolinPlotServiceImpl.java | 2 +- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/main/java/org/cbioportal/service/impl/ClinicalDataDensityPlotServiceImpl.java b/src/main/java/org/cbioportal/service/impl/ClinicalDataDensityPlotServiceImpl.java index 940828bab10..cb4d8d780e9 100644 --- a/src/main/java/org/cbioportal/service/impl/ClinicalDataDensityPlotServiceImpl.java +++ b/src/main/java/org/cbioportal/service/impl/ClinicalDataDensityPlotServiceImpl.java @@ -26,7 +26,7 @@ public class ClinicalDataDensityPlotServiceImpl implements ClinicalDataDensityPl @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public DensityPlotData getDensityPlotData(List sampleClinicalData, DensityPlotParameters densityPlotParameters, StudyViewFilter studyViewFilter) { diff --git a/src/main/java/org/cbioportal/service/impl/StudyViewColumnarServiceImpl.java b/src/main/java/org/cbioportal/service/impl/StudyViewColumnarServiceImpl.java index 7063f64f560..135eeb8d19e 100644 --- a/src/main/java/org/cbioportal/service/impl/StudyViewColumnarServiceImpl.java +++ b/src/main/java/org/cbioportal/service/impl/StudyViewColumnarServiceImpl.java @@ -57,7 +57,7 @@ public StudyViewColumnarServiceImpl(StudyViewRepository studyViewRepository, Alt @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getFilteredSamples(StudyViewFilter studyViewFilter) { @@ -67,7 +67,7 @@ public List getFilteredSamples(StudyViewFilter studyViewFilter) { @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getMutatedGenes(StudyViewFilter studyViewFilter) throws StudyNotFoundException { @@ -76,7 +76,7 @@ public List getMutatedGenes(StudyViewFilter studyViewFilt @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getMolecularProfileSampleCounts(StudyViewFilter studyViewFilter) { @@ -85,7 +85,7 @@ public List getMolecularProfileSampleCounts(StudyViewFilter st @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getClinicalEventTypeCounts(StudyViewFilter studyViewFilter) { @@ -94,7 +94,7 @@ public List getClinicalEventTypeCounts(StudyViewFilter s @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public PatientTreatmentReport getPatientTreatmentReport(StudyViewFilter studyViewFilter) { @@ -103,7 +103,7 @@ public PatientTreatmentReport getPatientTreatmentReport(StudyViewFilter studyVie @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public SampleTreatmentReport getSampleTreatmentReport(StudyViewFilter studyViewFilter) { @@ -112,7 +112,7 @@ public SampleTreatmentReport getSampleTreatmentReport(StudyViewFilter studyViewF @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getGenomicDataBinCounts(StudyViewFilter studyViewFilter, List genomicDataBinFilters) { @@ -121,7 +121,7 @@ public List getGenomicDataBinCounts(StudyViewFilter study @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getGenericAssayDataBinCounts(StudyViewFilter studyViewFilter, List genericAssayDataBinFilters) { @@ -134,7 +134,7 @@ public List getCnaGenes(StudyViewFilter studyViewFilter) @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getStructuralVariantGenes(StudyViewFilter studyViewFilter) throws StudyNotFoundException { @@ -143,7 +143,7 @@ public List getStructuralVariantGenes(StudyViewFilter stu @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public Map getClinicalAttributeDatatypeMap(StudyViewFilter studyViewFilter) { @@ -152,7 +152,7 @@ public Map getClinicalAttributeDatatypeMap(StudyViewFi @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getClinicalDataCounts(StudyViewFilter studyViewFilter, List filteredAttributes) { @@ -207,7 +207,7 @@ public List getClinicalAttributesForStudies(List stud @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getCaseListDataCounts(StudyViewFilter studyViewFilter) { @@ -219,7 +219,7 @@ public List getCaseListDataCounts(StudyViewFilter studyViewFi @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getPatientClinicalData(StudyViewFilter studyViewFilter, List attributeIds) { @@ -228,7 +228,7 @@ public List getPatientClinicalData(StudyViewFilter studyViewFilter @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getSampleClinicalData(StudyViewFilter studyViewFilter, List attributeIds) { @@ -237,7 +237,7 @@ public List getSampleClinicalData(StudyViewFilter studyViewFilter, @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getCNACountsByGeneSpecific(StudyViewFilter studyViewFilter, List genomicDataFilters) { @@ -246,7 +246,7 @@ public List getCNACountsByGeneSpecific(StudyViewFilter stu @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getGenericAssayDataCounts(StudyViewFilter studyViewFilter, List genericAssayDataFilters) { @@ -255,7 +255,7 @@ public List getGenericAssayDataCounts(StudyViewFilter @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getMutationCountsByGeneSpecific(StudyViewFilter studyViewFilter, List genomicDataFilters) { @@ -276,7 +276,7 @@ public List getMutationCountsByGeneSpecific(StudyViewFilte @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) @Override public List getMutationTypeCountsByGeneSpecific(StudyViewFilter studyViewFilter, List genomicDataFilters) { diff --git a/src/main/java/org/cbioportal/service/impl/ViolinPlotServiceImpl.java b/src/main/java/org/cbioportal/service/impl/ViolinPlotServiceImpl.java index d0218656642..92c0ef233a9 100644 --- a/src/main/java/org/cbioportal/service/impl/ViolinPlotServiceImpl.java +++ b/src/main/java/org/cbioportal/service/impl/ViolinPlotServiceImpl.java @@ -21,7 +21,7 @@ public class ViolinPlotServiceImpl implements ViolinPlotService { @Cacheable( cacheResolver = "staticRepositoryCacheOneResolver", - condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfiltered(#studyViewFilter)" + condition = "@cacheEnabledConfig.getEnabledClickhouse() && @studyViewFilterUtil.isUnfilteredQuery(#studyViewFilter)" ) public ClinicalViolinPlotData getClinicalViolinPlotData( List sampleClinicalDataForViolinPlot,