Consolidate Dataclass data update methods - use DIB for update only#7483
Open
Consolidate Dataclass data update methods - use DIB for update only#7483
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR consolidates DataClass and Sample update behavior around DataIteratorBuilder (DIB)-based updates, removing LSID as an update/merge key and cleaning up deprecated DataClass storage by dropping the provisioned lsid column via a module upgrade.
Changes:
- Remove LSID-as-key support for sample/data update & merge; enforce RowId or Name-based keys and ignore LSID when provided alongside valid keys.
- Introduce shared
updateRowsUsingPartitionedDIB()logic inAbstractQueryUpdateServiceand route Sample/DataClass updates through it. - Remove provisioned DataClass
lsidcolumn (domain kind + upgrade code + DB scripts) and update integration tests accordingly.
Reviewed changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| experiment/src/org/labkey/experiment/samples/AbstractExpFolderImporter.java | Stops setting the removed UseLsidForUpdate option during TSV import. |
| experiment/src/org/labkey/experiment/api/SampleTypeUpdateServiceDI.java | Routes updates through partitioned DIB; removes LSID-key paths and legacy update methods. |
| experiment/src/org/labkey/experiment/api/ExpDataImpl.java | Selects DataClass provisioned properties by RowId (not LSID) to support dropped provisioned LSID column. |
| experiment/src/org/labkey/experiment/api/ExpDataClassDataTableImpl.java | Enforces RowId/Name keys, blocks LSID-only keying, blocks RowId in merge (behind feature), and uses partitioned DIB updates. |
| experiment/src/org/labkey/experiment/api/DataClassDomainKind.java | Removes lsid from provisioned DataClass base properties, indexes, and FKs. |
| experiment/src/org/labkey/experiment/ExperimentUpgradeCode.java | Adds deferred upgrade to drop provisioned DataClass lsid column (and related indices). |
| experiment/src/org/labkey/experiment/ExperimentModule.java | Bumps schema version to 26.005 and centralizes experimental flag constant usage. |
| experiment/src/org/labkey/experiment/ExpDataIterators.java | Updates derivation/update logic to use RowId/Name instead of LSID-for-update config; removes LSID update config usage. |
| experiment/src/client/test/integration/DataClassCrud.ispec.ts | Expands integration coverage for keying behavior (RowId/Name/LSID) and partitioned-duplicate detection. |
| experiment/resources/schemas/dbscripts/sqlserver/exp-26.004-26.005.sql | Executes Java upgrade to drop provisioned DataClass lsid column (SQL Server). |
| experiment/resources/schemas/dbscripts/postgresql/exp-26.004-26.005.sql | Executes Java upgrade to drop provisioned DataClass lsid column (PostgreSQL). |
| api/src/org/labkey/api/query/DefaultQueryUpdateService.java | Removes conversion-table hook and always uses getDbTable() for convertTypes() entrypoint. |
| api/src/org/labkey/api/query/AbstractQueryUpdateService.java | Adds updateRowsUsingPartitionedDIB() and small null-iterator safety in _pump(). |
| api/src/org/labkey/api/exp/query/ExpDataTable.java | Reorders enum constants (no functional behavior change expected). |
| api/src/org/labkey/api/exp/api/ExperimentService.java | Removes UseLsidForUpdate query option; adds shared experimental feature constant. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
@XingY there's an exp-26.004-26.005.sql script in 26.3 that should be merged to develop shortly. |
Contributor
Author
OK. Thanks for the heads-up. |
labkey-nicka
approved these changes
May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale
This PR consolidates DataClass data update operations to use the DataIteratorBuilder (DIB) pipeline exclusively — the same approach already used for SampleType updates.
Related Pull Requests
altUpdateKeysfromQueryInfolabkey-ui-components#1988Changes