Skip to content

Commit 7aecdd1

Browse files
Issue 1035: Add terminal storage location name column to sample grids (#7607)
1 parent 3a97e9e commit 7aecdd1

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

api/src/org/labkey/api/inventory/InventoryService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ enum InventoryStatusColumn
5252
StorageColSort,
5353
StorageComment,
5454
StorageLocation,
55+
StorageTerminalLocation,
5556
StorageRow,
5657
StorageRowSort,
5758
StoragePositionNumber,

experiment/src/org/labkey/experiment/api/ExpMaterialTableImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,11 @@ protected void populateColumns()
875875
addColumn(RawAliquotUnit).getRenderer().addQueryFieldKeys(new HashSet<>(Set.of(AliquotUnit.fieldKey())));
876876

877877
if (InventoryService.get() != null && (st == null || !st.isMedia()))
878-
defaultCols.addAll(InventoryService.get().addInventoryStatusColumns(st == null ? null : st.getMetricUnit(), this, getContainer(), _userSchema.getUser()));
878+
{
879+
List<FieldKey> inventoryCols = InventoryService.get().addInventoryStatusColumns(st == null ? null : st.getMetricUnit(), this, getContainer(), _userSchema.getUser());
880+
// GH Issue 1035: Don't include StorageTerminalLocation in the default view
881+
defaultCols.addAll(inventoryCols.stream().filter(fk -> !fk.equals(InventoryService.InventoryStatusColumn.StorageTerminalLocation.fieldKey())).toList());
882+
}
879883

880884
SQLFragment sql;
881885
UserSchema plateUserSchema;

0 commit comments

Comments
 (0)