Skip to content

Commit 921ae24

Browse files
Merge 25.7 to 25.8
2 parents d56b0c2 + a648590 commit 921ae24

File tree

6 files changed

+21
-3
lines changed

6 files changed

+21
-3
lines changed

ehr/resources/queries/study/demographicsMostRecentWeight.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ null as weightField,
1414
cast((
1515
SELECT round(cast(AVG(w2.weight) as double), 2) AS _expr
1616
FROM study.weight w2
17-
WHERE w.id=w2.id AND w.MostRecentWeightDate=w2.date
17+
WHERE w2.qcstate.publicdata = true AND w.id=w2.id AND w.MostRecentWeightDate=w2.date
1818
) as double) AS MostRecentWeight
1919

2020
FROM (
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE ehr_lookups.cageclass ADD COLUMN LSID LSIDtype;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ALTER TABLE ehr_lookups.cageclass ADD Lsid LsidType null;

ehr/resources/schemas/ehr_lookups.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,17 @@
9393
<fkColumnName>entityid</fkColumnName>
9494
</fk>
9595
</column>
96+
<column columnName="lsid">
97+
<datatype>lsidtype</datatype>
98+
<isReadOnly>true</isReadOnly>
99+
<isHidden>true</isHidden>
100+
<isUserEditable>false</isUserEditable>
101+
<fk>
102+
<fkColumnName>ObjectUri</fkColumnName>
103+
<fkTable>Object</fkTable>
104+
<fkDbSchema>exp</fkDbSchema>
105+
</fk>
106+
</column>
96107
</columns>
97108
</table>
98109
<table tableName="conc_units" tableDbType="TABLE" useColumnOrder="true">

ehr/src/org/labkey/ehr/EHRModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public String getName()
133133
@Override
134134
public @Nullable Double getSchemaVersion()
135135
{
136-
return 25.001;
136+
return 25.002;
137137
}
138138

139139
@Override

snd/src/org/labkey/snd/SNDManager.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3420,7 +3420,12 @@ private String generateEventDataNarrative(Container c, User u, Event event, Even
34203420
value = "<span class='" + AttributeData.ATTRIBUTE_DATA_CSS_CLASS + "'>" + value + "</span>";
34213421
}
34223422

3423-
eventDataNarrative = new StringBuilder(eventDataNarrative.toString().replace("{" + pd.getName() + "}", value));
3423+
// Trim any spaces immediately inside '{' and '}' to make tokens like "{ route 2}" -> "{route 2}"
3424+
String normalized = eventDataNarrative.toString()
3425+
.replaceAll("\\{\\s+", "{")
3426+
.replaceAll("\\s+\\}", "}");
3427+
3428+
eventDataNarrative = new StringBuilder(normalized.replace("{" + pd.getName() + "}", value));
34243429
}
34253430
}
34263431

0 commit comments

Comments
 (0)