Skip to content

[bot] Fast-forward for 26.3.18 - #989

Merged
github-actions[bot] merged 5 commits into
release26.3from
26.3_ff_bot_26.3.18
Aug 26, 2026
Merged

[bot] Fast-forward for 26.3.18#989
github-actions[bot] merged 5 commits into
release26.3from
26.3_ff_bot_26.3.18

Conversation

@github-actions

Copy link
Copy Markdown

Generated automatically.
Approve all matching PRs simultaneously.
Approval will trigger automatic merge.
View all PRs: https://internal.labkey.com/Scrumtime/Backlog/harvest-gitOpenPullRequests.view?branch=26.3_ff_bot_26.3.18

labkey-bpatel and others added 5 commits July 20, 2026 10:40
* `snprc_ehr` and `snprc_genetics` now declare both `mssql` and `pgsql`
as supported databases
* SNPRC_EHRTest is no longer marked SQL-Server-only
* Replaced SQL-Server's `+` operator with the standard `||` across all
SNPRC custom queries so display values, labels, and concatenated
identifiers render correctly on both dialects.
* Swapped SQL-Server-only `charindex` / `len` for the portable `LOCATE`
/ `LENGTH` in the SND lookup export queries and the
demographics/audit-history queries.
* Added explicit casts in UNION queries, and in joins/comparisons where
SQL Server's implicit conversions previously hid the type mismatch —
Postgres' stricter type system would otherwise reject these queries.
* HL7 pivot joins - aligned the `lp.ServiceId` vs `obr.PROCEDURE_ID`
types across the HL7 pivot queries so the inner joins resolve on
Postgres.
* Replaced bit-style comparisons (`= 0`) with boolean literals (`=
false`), and replaced `truncate` with `FLOOR` in age-range formatting
* The four PIVOT queries that previously read their column list
dynamically from `BaboonColonyGroups` now use a literal list; the
dynamic form fails LabKey query validation against an empty lookup
table. Documented in-line as a maintenance trade-off — adding a new
colony group now requires touching these queries.
* Corrected stale column references in the Tcruzi report view metadata
so they match the columns the underlying queries actually return.

---------

Co-authored-by: Marty Pradere <martyp@labkey.com>
## Rationale

The `_SND Attribute Data` ETL fails on every run that includes a delete
at SNPRC with `java.lang.ClassCastException: class java.lang.Long cannot
be cast to class java.lang.Integer`. exp 25.005 widened
`exp.Object.ObjectId` and `exp.ObjectProperty.ObjectId` to BIGINT, but
`AttributeDataTable.UpdateService.deleteRows` still cast the delete key
to `Integer`. `TransformTask` builds each delete key from the target
table's PK columns, which for this table are `exp.ObjectProperty`'s
`ObjectId` and `PropertyId`, so the first row aborts the step.

## Changes

- `AttributeDataTable.UpdateService.deleteRows` casts `ObjectId` and
`PropertyId` to `Number` rather than `Integer`.
- `EventDataTable` declares its injected `exp.Object.ObjectId` column as
`JdbcType.BIGINT` instead of `JdbcType.INTEGER`, matching the widened
column.
…976)

* Drop redundant unique index on snprc_ehr.labwork_services.ServiceId
* Bump snprc_ehr schema version 26.001 -> 26.002
@github-actions
github-actions Bot merged commit 62df085 into release26.3 Aug 26, 2026
19 of 20 checks passed
@github-actions
github-actions Bot deleted the 26.3_ff_bot_26.3.18 branch August 26, 2026 17:44
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.

5 participants