-
Notifications
You must be signed in to change notification settings - Fork 511
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rfc80/clinical data counts refactor (#11084)
* ♻️ Refactor NewStudyViewFilterUtil * Update SQL to return ClinicalDataCountItem.. NA's not implemented * Add NA counts to SQL for clinical data counts * Remove unused methods * Fix unit tests for clinical data counts * Remove unused import * Fix Review Comments --------- Co-authored-by: alisman <[email protected]>
- Loading branch information
Showing
9 changed files
with
149 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 6 additions & 10 deletions
16
src/main/java/org/cbioportal/web/columnar/util/NewStudyViewFilterUtil.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
package org.cbioportal.web.columnar.util; | ||
|
||
|
||
import org.cbioportal.web.parameter.StudyViewFilter; | ||
import org.cbioportal.web.parameter.ClinicalDataFilter; | ||
|
||
public class NewStudyViewFilterUtil { | ||
import java.util.List; | ||
|
||
public static void removeSelfFromFilter(String attributeId, StudyViewFilter studyViewFilter) { | ||
if (studyViewFilter!= null && studyViewFilter.getClinicalDataFilters() != null) { | ||
studyViewFilter.getClinicalDataFilters().removeIf(f -> f.getAttributeId().equals(attributeId)); | ||
} | ||
} | ||
public class NewStudyViewFilterUtil { | ||
|
||
public static void removeSelfCustomDataFromFilter(String attributeId, StudyViewFilter studyViewFilter) { | ||
if (studyViewFilter != null && studyViewFilter.getCustomDataFilters() != null) { | ||
studyViewFilter.getCustomDataFilters().removeIf(f -> f.getAttributeId().equals(attributeId)); | ||
public static void removeClinicalDataFilter(String attributeId, List<ClinicalDataFilter> dataFilterList ) { | ||
if (dataFilterList != null) { | ||
dataFilterList.removeIf(f -> f.getAttributeId().equals(attributeId)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.