Skip to content

Commit 230fc7f

Browse files
committed
Hold GUID instead of Container
1 parent af77997 commit 230fc7f

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

ms2/src/org/labkey/ms2/MS2Run.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818

1919
import org.apache.logging.log4j.Logger;
2020
import org.labkey.api.data.Container;
21+
import org.labkey.api.data.ContainerManager;
2122
import org.labkey.api.data.SQLFragment;
2223
import org.labkey.api.data.SqlSelector;
2324
import org.labkey.api.protein.MassType;
2425
import org.labkey.api.query.FieldKey;
26+
import org.labkey.api.util.GUID;
2527
import org.labkey.api.util.MemTracker;
2628
import org.labkey.api.util.logging.LogHelper;
2729
import org.labkey.api.view.ViewContext;
@@ -41,7 +43,7 @@ public abstract class MS2Run implements Serializable
4143
protected final static String[] EMPTY_STRING_ARRAY = new String[0];
4244

4345
protected int run;
44-
protected Container container;
46+
protected GUID containerId;
4547
protected String description;
4648
protected String path;
4749
protected String fileName;
@@ -252,13 +254,13 @@ public void setRun(int run)
252254

253255
public Container getContainer()
254256
{
255-
return container;
257+
return ContainerManager.getForId(containerId);
256258
}
257259

258260

259261
public void setContainer(Container container)
260262
{
261-
this.container = container;
263+
this.containerId = container.getEntityId();
262264
}
263265

264266

ms2/src/org/labkey/ms2/pipeline/mascot/MascotRun.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ public class MascotRun extends MS2Run
4848
public void adjustScores(Map<String, String> map)
4949
{
5050
// Mascot exported pepXML can exclude "homologyscore"
51-
if (null == map.get("homologyscore"))
52-
map.put("homologyscore", "-1");
51+
map.putIfAbsent("homologyscore", "-1");
5352
// Issue 30322 - ProteomeDiscoverer pep.xml files use a different name for the score value
5453
if (null == map.get("ionscore") && map.containsKey("Ions Score"))
5554
map.put("ionscore", map.get("Ions Score"));

nab/src/org/labkey/nab/NabAssayController.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,8 +331,6 @@ private DilutionAssayRun _getNabAssayRun(ExpRun run, StatsService.CurveFitType f
331331
return assay;
332332
}
333333

334-
private static final String LAST_NAB_RUN_KEY = NabAssayController.class.getName() + "/LastNAbRun";
335-
336334
@RequiresPermission(ReadPermission.class)
337335
@ContextualRoles(RunDatasetContextualRoles.class)
338336
public class DetailsAction extends RunDetailsAction<RenderAssayBean>

0 commit comments

Comments
 (0)