Skip to content

Commit

Permalink
Set ExpRun's filePathRoot to be the container's file root (#724)
Browse files Browse the repository at this point in the history
Set ExpRun's filePathRoot to be the container's file root.
---------
Co-authored-by: labkey-martyp <martyp@labkey.com>
  • Loading branch information
vagisha authored May 23, 2023
1 parent 13efd5f commit ceaaf25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/labkey/targetedms/TargetedMSManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
import org.labkey.api.exp.api.ExpProtocol;
import org.labkey.api.exp.api.ExpRun;
import org.labkey.api.exp.api.ExperimentService;
import org.labkey.api.files.FileContentService;
import org.labkey.api.module.Module;
import org.labkey.api.module.ModuleLoader;
import org.labkey.api.module.ModuleProperty;
Expand Down Expand Up @@ -692,12 +693,11 @@ private static ExpRun wrapRun(TargetedMSRun run, User user, PipeRoot pipeRoot, I
}

ExpData expData = ExperimentService.get().getExpData(run.getDataId());
Path skylineFile = pipeRoot.resolveToNioPathFromUrl(expData.getDataFileUrl());

ExpRun expRun = ExperimentService.get().createExperimentRun(container, run.getDescription());
expRun.setProtocol(protocol);
expRun.setJobId(jobId);
expRun.setFilePathRootPath(null != skylineFile ? skylineFile.getParent() : null);
expRun.setFilePathRootPath(FileContentService.get().getFileRootPath(container, FileContentService.ContentType.files));
ViewBackgroundInfo info = new ViewBackgroundInfo(container, user, null);

Map<ExpData, String> inputDatas = new HashMap<>();
Expand Down

0 comments on commit ceaaf25

Please sign in to comment.