Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/org/labkey/targetedms/chart/ChromatogramDataset.java
Original file line number Diff line number Diff line change
Expand Up @@ -1462,6 +1462,7 @@ protected String getSeriesLabel()

public static class GroupDataset extends RtRangeDataset
{
private static final int SERIES_LIMIT = 25;
private final PeptideGroup _group;
private final SampleFile _sampleFile;
private final ViewContext _context;
Expand Down Expand Up @@ -1570,6 +1571,12 @@ protected List<PrecursorChromInfoPlus> getPrecursorChromInfos()
}
}

// Ticket 54342: PanoramaWeb overwhelmed with requests for massive targetedms-groupChromatogramChart.view plots
if (_allMolecules.size() > SERIES_LIMIT)
{
_allMolecules = _allMolecules.entrySet().stream().limit(SERIES_LIMIT).collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));
}

List<PrecursorChromInfoPlus> nonOptimizationPeaks = new ArrayList<>();
for(List<PrecursorChromInfoPlus> infos : _allMolecules.values())
{
Expand Down