Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into fb_entityCreateTyp…
Browse files Browse the repository at this point in the history
…eChoice
  • Loading branch information
labkey-susanh committed Nov 14, 2024
2 parents 5b60867 + 474a459 commit fc6b55e
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 31 deletions.
8 changes: 4 additions & 4 deletions assay/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion assay/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"clean": "rimraf resources/web/assay/gen && rimraf resources/views/gen && rimraf resources/web/gen"
},
"dependencies": {
"@labkey/components": "5.22.0"
"@labkey/components": "5.22.9"
},
"devDependencies": {
"@labkey/build": "8.3.0",
Expand Down
18 changes: 12 additions & 6 deletions assay/src/org/labkey/assay/plate/PlateManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -682,9 +682,10 @@ else if (matchingPlates.isEmpty())
*/
public ContainerFilter getPlateContainerFilter(@Nullable ExpProtocol protocol, Container container, User user)
{
ContainerFilter lookupCf = QueryService.get().getContainerFilterForLookups(container, user);
ContainerFilter currentCf = ContainerFilter.Type.Current.create(protocol != null ? protocol.getContainer() : container, user);
return lookupCf != null ? lookupCf : currentCf;
ContainerFilter containerFilter = QueryService.get().getContainerFilterForLookups(container, user);
if (containerFilter == null)
containerFilter = ContainerFilter.Type.Current.create(protocol != null ? protocol.getContainer() : container, user);
return containerFilter;
}

@Override
Expand Down Expand Up @@ -1531,14 +1532,19 @@ public TableInfo getPlateTableInfo()
return getPlateTable(container, user, null);
}

public @NotNull TableInfo getPlateTable(Container container, User user, @Nullable ContainerFilter cf)
private @NotNull TableInfo getPlateTable(Container container, User user, @Nullable ContainerFilter cf)
{
return getPlateUserSchema(container, user).getTableOrThrow(PlateTable.NAME, cf);
}

private @NotNull TableInfo getWellTable(Container container, User user)
{
return getPlateUserSchema(container, user).getTableOrThrow(WellTable.NAME);
return getWellTable(container, user, null);
}

private @NotNull TableInfo getWellTable(Container container, User user, @Nullable ContainerFilter cf)
{
return getPlateUserSchema(container, user).getTableOrThrow(WellTable.NAME, cf);
}

private @NotNull QueryUpdateService requiredUpdateService(@NotNull TableInfo table)
Expand Down Expand Up @@ -3497,7 +3503,7 @@ public List<WellData> getWellData(Container container, User user, int plateRowId
if (includeSamples)
columns.add(WellTable.Column.SampleID.name());

var wellTable = getWellTable(container, user);
var wellTable = getWellTable(container, user, getPlateLookupContainerFilter(container, user));
var filter = new SimpleFilter(FieldKey.fromParts(WellTable.Column.PlateId.name()), plateRowId);
var wellDatas = new TableSelector(wellTable, columns, filter, new Sort(WellTable.Column.RowId.name())).getArrayList(WellData.class);

Expand Down
8 changes: 4 additions & 4 deletions core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
}
},
"dependencies": {
"@labkey/components": "5.22.2",
"@labkey/components": "5.22.9",
"@labkey/themes": "1.4.0"
},
"devDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions experiment/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions experiment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"test-integration": "cross-env NODE_ENV=test jest --ci --runInBand -c test/js/jest.config.integration.js"
},
"dependencies": {
"@labkey/components": "5.22.2"
"@labkey/components": "5.22.9"
},
"devDependencies": {
"@labkey/build": "8.3.0",
"@labkey/test": "1.7.0",
"@labkey/test": "1.7.1",
"@types/jest": "29.5.14",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
Expand Down
8 changes: 4 additions & 4 deletions pipeline/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build-prod": "npm run clean && cross-env NODE_ENV=production PROD_SOURCE_MAP=source-map webpack --config node_modules/@labkey/build/webpack/prod.config.js --color --progress --profile"
},
"dependencies": {
"@labkey/components": "5.22.0"
"@labkey/components": "5.22.9"
},
"devDependencies": {
"@labkey/build": "8.3.0",
Expand Down

0 comments on commit fc6b55e

Please sign in to comment.