Skip to content

Commit 0ec3cc5

Browse files
authored
Additional validation for assay run configurations (#118)
1 parent ac82efd commit 0ec3cc5

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

Rlabkey/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: Rlabkey
2-
Version: 3.4.3
2+
Version: 3.4.4
33
Date: 2025-05-12
44
Title: Data Exchange Between R and 'LabKey' Server
55
Authors@R: c(person(given = "Peter",

Rlabkey/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Changes in 3.4.4
2+
o Issue 53481: additional validation for assay run configurations.
3+
14
Changes in 3.4.3
25
o Bugfix to labkey.selectRows when group_concat based field has a NULL value. Related to github issue #112
36
o Update documentation for experiment.createRun to include an example of inserting run level properties

Rlabkey/R/labkey.experiment.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ labkey.experiment.createRun <- function(config, dataInputs = NULL, dataOutputs =
7474

7575
run <- config
7676

77+
## validate run properties if provided
78+
if (!is.null(run$properties) && !is.list(run$properties))
79+
stop (paste("config properties must be a list of key value pairs."))
80+
7781
if (!is.null(dataInputs))
7882
{
7983
if (!is.list(dataInputs))

0 commit comments

Comments
 (0)