Skip to content

GH Issue 1866: Keep seconds in DateTime values passed through assay transform scripts - #8308

Open
labkey-jeckels wants to merge 2 commits into
developfrom
fb_di_tsv_transform_seconds_1866
Open

labkey-jeckels wants to merge 2 commits into
developfrom
fb_di_tsv_transform_seconds_1866

Conversation

@labkey-jeckels

@labkey-jeckels labkey-jeckels commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

This PR stops assay transform scripts from silently dropping the seconds and milliseconds of every DateTime and Time result they pass through (GH Issue 1866). The run data file handed to the script wrote dates as yyyy-MM-dd HH:mm, so a script that echoed values back caused them to be re-imported and stored truncated to the minute.

Date values in that file are now always written as yyyy-MM-dd HH:mm:ss.SSS, one uniform shape so scripts that infer a column's format from its first value keep working. Scripts that parse dates against the old exact shape need updating; this is noted in the issue's User Education.

Tested with a new unit test, TsvDataSerializerTestCase, which failed before the fix and passes after, plus the neighboring API unit tests, all run against a local server.

Related Pull Requests

None

Changes

  • Transform-script run data files keep seconds and milliseconds for date and time values
  • Unit test covering the date round trip through the run data file

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.

1 participant