Skip to content

Commit f10dfc6

Browse files
author
Sebastian Benjamin
committed
Merge branch '25.3_fb_studydef' of github.com:BimberLab/DiscvrLabKeyModules into 25.3_fb_studydef
2 parents 106c789 + 7e3d206 commit f10dfc6

File tree

26 files changed

+694
-43
lines changed

26 files changed

+694
-43
lines changed

SequenceAnalysis/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ dependencies {
4444
BuildUtils.addLabKeyDependency(project: project, config: "apiImplementation", depProjectPath: ":server:modules:LabDevKitModules:laboratory", depProjectConfig: "apiJarFile")
4545
BuildUtils.addLabKeyDependency(project: project, config: "implementation", depProjectPath: ":server:modules:LabDevKitModules:LDK", depProjectConfig: "apiJarFile")
4646
BuildUtils.addLabKeyDependency(project: project, config: "apiImplementation", depProjectPath: ":server:modules:LabDevKitModules:LDK", depProjectConfig: "apiJarFile")
47+
BuildUtils.addLabKeyDependency(project: project, config: "implementation", depProjectPath: ":server:modules:DiscvrLabKeyModules:discvrcore", depProjectConfig: "apiJarFile")
4748
BuildUtils.addExternalDependency(
4849
project,
4950
new ExternalDependency(

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceAnalysisController.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
import org.labkey.api.data.Table;
7373
import org.labkey.api.data.TableInfo;
7474
import org.labkey.api.data.TableSelector;
75+
import org.labkey.api.discvrcore.annotation.UtilityAction;
7576
import org.labkey.api.exceptions.OptimisticConflictException;
7677
import org.labkey.api.exp.ExperimentException;
7778
import org.labkey.api.exp.api.DataType;
@@ -501,6 +502,7 @@ public void export(ConvertTextToFileForm form, HttpServletResponse response, Bin
501502
}
502503
}
503504

505+
@UtilityAction(label = "Find Orphan Files", description = "This will start a pipeline job that will inspect all files in this folder to identify potential orphan or otherwise unnecessary files")
504506
@RequiresPermission(ReadPermission.class)
505507
public static class FindOrphanFilesAction extends ConfirmAction<Object>
506508
{
@@ -5065,6 +5067,7 @@ public void setOutputFileIds(Integer[] outputFileIds)
50655067
}
50665068
}
50675069

5070+
@UtilityAction(label = "Update ExpData Path", description = "This will update the DataFileUrl on the selected ExpData to the path provided")
50685071
@RequiresSiteAdmin
50695072
public static class UpdateExpDataPathAction extends ConfirmAction<UpdateExpDataPathForm>
50705073
{

SequenceAnalysis/src/org/labkey/sequenceanalysis/SequenceProvider.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,17 +236,17 @@ public List<TabbedReportItem> getTabbedReportItems(Container c, User u)
236236
TabbedReportItem analyses = new QueryTabbedReportItem(cache, this, SequenceAnalysisSchema.SCHEMA_NAME, SequenceAnalysisSchema.TABLE_ANALYSES, "Sequence Analyses", category);
237237
analyses.setSubjectIdFieldKey(FieldKey.fromString("readset/subjectid"));
238238
analyses.setSampleDateFieldKey(FieldKey.fromString("readset/sampledate"));
239-
analyses.setAllProjectsFieldKey(FieldKey.fromString("readset/allProjectsPivot"));
240-
analyses.setOverlappingProjectsFieldKey(FieldKey.fromString("readset/overlappingProjectsPivot"));
239+
analyses.setKeyOverride("allProjectsFieldName", FieldKey.fromString("readset/allProjectsPivot"));
240+
analyses.setKeyOverride("overlappingProjectsFieldName", FieldKey.fromString("readset/overlappingProjectsPivot"));
241241
analyses.setOwnerKey(owner.getPropertyManagerKey());
242242
analyses.setVisible(owner.isVisible(c, u));
243243
items.add(analyses);
244244

245245
TabbedReportItem outputs = new QueryTabbedReportItem(cache, this, SequenceAnalysisSchema.SCHEMA_NAME, SequenceAnalysisSchema.TABLE_OUTPUTFILES, "Sequence Outputs", category);
246246
outputs.setSubjectIdFieldKey(FieldKey.fromString("readset/subjectid"));
247247
outputs.setSampleDateFieldKey(FieldKey.fromString("readset/sampledate"));
248-
outputs.setAllProjectsFieldKey(FieldKey.fromString("readset/allProjectsPivot"));
249-
outputs.setOverlappingProjectsFieldKey(FieldKey.fromString("readset/overlappingProjectsPivot"));
248+
outputs.setKeyOverride("allProjectsFieldName", FieldKey.fromString("readset/allProjectsPivot"));
249+
outputs.setKeyOverride("overlappingProjectsFieldName", FieldKey.fromString("readset/overlappingProjectsPivot"));
250250
outputs.setOwnerKey(owner.getPropertyManagerKey());
251251
outputs.setVisible(owner.isVisible(c, u));
252252
items.add(outputs);

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/OrphanFilePipelineJob.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ public void getOrphanFilesForContainer(Container c, User u, Set<File> orphanFile
344344
return;
345345
}
346346

347+
348+
getJob().updateStatusForTask();
347349
if (getJob().isCancelled())
348350
{
349351
throw new CancelledException();

Studies/src/org/labkey/studies/query/ResultsOOODisplayColumn.java renamed to Studies/api-src/org/labkey/api/studies/query/ResultsOORDisplayColumn.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package org.labkey.studies.query;
1+
package org.labkey.api.studies.query;
22

33
import org.apache.commons.lang3.StringUtils;
44
import org.labkey.api.data.ColumnInfo;
@@ -9,9 +9,9 @@
99
import java.text.DecimalFormat;
1010
import java.util.Set;
1111

12-
public class ResultsOOODisplayColumn extends DataColumn
12+
public class ResultsOORDisplayColumn extends DataColumn
1313
{
14-
public ResultsOOODisplayColumn(ColumnInfo col)
14+
public ResultsOORDisplayColumn(ColumnInfo col)
1515
{
1616
super(col);
1717
}
@@ -48,15 +48,15 @@ public Object getDisplayValue(RenderContext ctx)
4848

4949
private FieldKey getOOR()
5050
{
51-
FieldKey oor = FieldKey.fromString("resultOOOIndicator");
52-
if (getBoundColumn() != null)
51+
ColumnInfo col = getBoundColumn();
52+
if (col == null)
5353
{
54-
return FieldKey.fromParts(getBoundColumn().getFieldKey().getParent(), oor);
55-
}
56-
else
57-
{
58-
return oor;
54+
return null;
5955
}
56+
57+
FieldKey oor = FieldKey.fromString(col.getFieldKey().getName() + "OORIndicator");
58+
59+
return getBoundColumn().getFieldKey().getParent() == null ? oor : FieldKey.fromParts(getBoundColumn().getFieldKey().getParent(), oor);
6060
}
6161

6262
@Override
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CREATE TABLE studies.subjectAnchorDates (
2+
rowid serial,
3+
subjectId varchar(4000),
4+
date int,
5+
eventLabel varchar(1000),
6+
anchorEventId int,
7+
8+
container entityid,
9+
created timestamp,
10+
createdby int,
11+
modified timestamp,
12+
modifiedby int,
13+
14+
CONSTRAINT PK_subjectAnchorDates PRIMARY KEY (rowid)
15+
);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE studies.subjectAnchorDates DROP COLUMN date;
2+
ALTER TABLE studies.subjectAnchorDates ADD COLUMN date timestamp;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE studies.subjectAnchorDates ADD COLUMN dataSource varchar(1000);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
CREATE TABLE studies.subjectAnchorDates (
2+
rowid int identity(1,1),
3+
subjectId varchar(4000),
4+
date int,
5+
eventLabel varchar(1000),
6+
anchorEventId int,
7+
8+
container entityid,
9+
created datetime,
10+
createdby int,
11+
modified datetime,
12+
modifiedby int,
13+
14+
CONSTRAINT PK_subjectAnchorDates PRIMARY KEY (rowid)
15+
);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ALTER TABLE studies.subjectAnchorDates DROP COLUMN date;
2+
ALTER TABLE studies.subjectAnchorDates ADD date datetime;

0 commit comments

Comments
 (0)