Skip to content

Commit 06599c3

Browse files
committed
Merge discvr-25.11 to develop
2 parents 74ae020 + 8c5ba3c commit 06599c3

File tree

27 files changed

+192
-211
lines changed

27 files changed

+192
-211
lines changed

GenotypeAssays/src/org/labkey/genotypeassays/GenotypeAssaysManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ private void processSet(String assayType, Map<Integer, List<Map<String, Object>>
320320
}
321321
catch (Exception e)
322322
{
323-
_log.error(e);
323+
_log.error(e.getMessage(), e);
324324
throw new IllegalArgumentException(e.getMessage());
325325
}
326326
}

SivStudies/resources/queries/study/assignment.query.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<fkDbSchema>studies</fkDbSchema>
3434
<fkTable>studyCohorts</fkTable>
3535
<fkColumnName>rowId</fkColumnName>
36-
<fkDisplayColumnName>labelOrName</fkDisplayColumnName>
36+
<fkDisplayColumnName>studyAndCohort</fkDisplayColumnName>
3737
</fk>
3838
</column>
3939
<column columnName="description">
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<query xmlns="http://labkey.org/data/xml/query">
2+
<metadata>
3+
<tables xmlns="http://labkey.org/data/xml">
4+
<table tableName="duplicatePVLs" tableDbType="NOT_IN_DB">
5+
<tableTitle>Duplicate PVLs</tableTitle>
6+
<columns>
7+
8+
</columns>
9+
</table>
10+
</tables>
11+
</metadata>
12+
</query>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
SELECT
2+
t.Id,
3+
t.date,
4+
t.sampleType,
5+
t.assayType,
6+
t.target,
7+
t.result,
8+
t.resultOORIndicator,
9+
t.dataSource,
10+
t.lsid,
11+
t.created,
12+
v.maxLsid,
13+
CASE WHEN t.lsid = v.maxLsid THEN TRUE ELSE FALSE END as isMostRecent
14+
15+
FROM study.viralLoads t
16+
INNER JOIN (
17+
SELECT v.Id, v.date, v.sampleType, v.assayType, max(v.lsid) as maxLsid
18+
FROM study.viralLoads v
19+
GROUP BY v.Id, v.date, v.sampleType, v.assayType
20+
HAVING count(*) > 1
21+
) v ON (v.Id = t.Id AND v.date = t.date AND v.sampleType = t.sampleType AND v.assayType = t.assayType)

SivStudies/src/org/labkey/sivstudies/etl/PerformManualIdrStepsTask.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ private void pruneSivChallenges(PipelineJob pipelineJob) throws PipelineJobExcep
9595
private static final Pattern mir126_RE = Pattern.compile("miR[- ]{0,1}126", Pattern.CASE_INSENSITIVE);
9696
private static final Pattern mir142_RE = Pattern.compile("miR[- ]{0,1}142", Pattern.CASE_INSENSITIVE);
9797
private static final Pattern mir126_142_RE = Pattern.compile("miR[- ]{0,1}142[ ,-]{1,2}126", Pattern.CASE_INSENSITIVE);
98+
private static final Pattern pp71_RE = Pattern.compile("pp71", Pattern.CASE_INSENSITIVE);
9899

99100
private void updateVaccineInformation(PipelineJob pipelineJob) throws PipelineJobException
100101
{
@@ -133,6 +134,10 @@ else if (treatment.contains("RhCMV") && treatment.contains("d186-189"))
133134
{
134135
updatedRow.put("backbone", "68-1 d186-189");
135136
}
137+
else if (treatment.contains("RhCMV") && treatment.contains("pp71"))
138+
{
139+
updatedRow.put("backbone", "68-1 delta-pp71");
140+
}
136141
}
137142

138143
if (treatment.toUpperCase().contains("MOCK"))

SivStudies/src/org/labkey/sivstudies/notification/SivStudiesDataValidationNotification.java

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public String getEmailSubject(Container c)
7878
idsMissingFromDemographics(c, u, msg);
7979
missingArtRecord(c, u, msg);
8080
missingAnchorDates(c, u, msg);
81+
duplicatePVLs(c, u, msg);
8182

8283
if (!msg.isEmpty())
8384
{
@@ -128,7 +129,7 @@ private void genericQueryCheck(Container c, User u, StringBuilder msg, String sc
128129
if (count > 0)
129130
{
130131
msg.append("<b>WARNING: There are ").append(count).append(" " + message + "</b><br>\n");
131-
msg.append("<p><a href='").append(getExecuteQueryUrl(c, schemaName, queryName, null)).append("'>Click here to view them</a><br>\n\n");
132+
msg.append("<p><a href='").append(getExecuteQueryUrl(c, schemaName, queryName, null, filter)).append("'>Click here to view them</a><br>\n\n");
132133
msg.append("<hr>\n\n");
133134
}
134135
}
@@ -161,7 +162,7 @@ private void missingArtRecord(Container c, User u, StringBuilder msg)
161162
SimpleFilter filter = new SimpleFilter(FieldKey.fromString("projects/studyDescription"), "ART", CompareType.CONTAINS);
162163
filter.addCondition(FieldKey.fromString("projects/studyDescription"), "No ART", CompareType.DOES_NOT_CONTAIN);
163164
filter.addCondition(FieldKey.fromString("sivART/artInitiationDPI"), null, CompareType.ISBLANK);
164-
genericQueryCheck(c, u, msg, "study", s.getSubjectNounSingular(), "IDs assigned to an ART study without a record of ART", filter);
165+
genericQueryCheck(c, u, msg, "study", "demographics", "IDs assigned to an ART study without a record of ART", filter);
165166
}
166167

167168
private void missingAnchorDates(Container c, User u, StringBuilder msg)
@@ -175,6 +176,17 @@ private void missingAnchorDates(Container c, User u, StringBuilder msg)
175176
genericQueryCheck(c, u, msg, "study", "missingAnchorDates", "records missing from the anchor dates table");
176177
}
177178

179+
private void duplicatePVLs(Container c, User u, StringBuilder msg)
180+
{
181+
Study s = StudyService.get().getStudy(getTargetContainer(c));
182+
if (s == null)
183+
{
184+
return;
185+
}
186+
187+
genericQueryCheck(c, u, msg, "study", "duplicatePVLs", "duplicate PVL records");
188+
}
189+
178190
protected Container getTargetContainer(Container c)
179191
{
180192
return c.isWorkbookOrTab() ? c.getParent() : c;

mGAP/src/org/labkey/mgap/mGAPController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ public boolean handlePost(Object o, BindException errors) throws Exception
877877
}
878878
catch (Exception e)
879879
{
880-
_log.error(e);
880+
_log.error(e.getMessage(), e);
881881
throw e;
882882
}
883883

0 commit comments

Comments
 (0)