Skip to content

Use UpdateService instead of raw DbSchema layer for assay_template edits#292

Open
bbimber wants to merge 4 commits into
release25.7-SNAPSHOTfrom
25.7_fb_scope_assay_template_lookups2
Open

Use UpdateService instead of raw DbSchema layer for assay_template edits#292
bbimber wants to merge 4 commits into
release25.7-SNAPSHOTfrom
25.7_fb_scope_assay_template_lookups2

Conversation

@bbimber

@bbimber bbimber commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

@labkey-martyp, this is another take on: #290. I think by using UpdateService instead of DbSchema directly we solve the container/permission issues. I added some additional validation over update permissions to fail faster as well.

@labkey-martyp labkey-martyp left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok this looks good. I added a few comments. A couple of them I think need to be fixed before merging this in.

Comment thread laboratory/src/org/labkey/laboratory/assay/AssayHelper.java Outdated
Comment thread laboratory/src/org/labkey/laboratory/assay/AssayHelper.java Outdated
Comment thread laboratory/src/org/labkey/laboratory/assay/AssayHelper.java
@labkey-martyp

Copy link
Copy Markdown

@bbimber there are a couple test failures I think related to my suggestions above. Let me know if you want me to push any of those changes.

@bbimber

bbimber commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

hey @labkey-martyp: this is a very old codepath that my group doesnt really use anymore, so it took a minute to remember how it's all supposed to work. My last commits tightened up behavior for cross-container rows. The intended usage involves creating/editing/saving rows from the same container, including workbooks. My changes some times query across a larger container space it identify the existence of a template, but errors if it's from the wrong container.

@labkey-martyp labkey-martyp force-pushed the 25.7_fb_scope_assay_template_lookups2 branch from cfe725e to d8e37ff Compare June 24, 2026 17:59
This module sets sourceCompatibility=17, but List.getFirst() was added in Java 21 (SequencedCollection), so it failed to resolve. Replaced both calls with List.get(0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants