Skip to content

Commit fef750e

Browse files
authored
Issue 48298: Align API Filter Operators (#95)
- Update news - Rearrange ordering of operator types to align with other APIs - Add the following operators: - EXP_CHILD_OF - EXP_PARENT_OF - EXP_LINEAGE_OF
1 parent a6803e1 commit fef750e

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

Rlabkey/DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: Rlabkey
2-
Version: 2.11.0
3-
Date: 2023-05-02
2+
Version: 2.12.0
3+
Date: 2023-08-18
44
Title: Data Exchange Between R and 'LabKey' Server
55
Author: Peter Hussey
66
Maintainer: Cory Nathe <[email protected]>

Rlabkey/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Changes in 2.12.0
2+
o Issue 48298: Add Lineage filter types to makeFilter
3+
14
Changes in 2.11.0
25
o Add labkey.security.renameContainer
36
o Note: only supported for LabKey Server v23.5

Rlabkey/R/makeFilter.R

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@
5050
"DATE_GT"="dategt",
5151
"DATE_GREATER_THAN"="dategt",
5252

53+
"LT"="lt",
54+
"LESS_THAN"="lt",
55+
"DATE_LT"="datelt",
56+
"DATE_LESS_THAN"="datelt",
57+
5358
"GTE"="gte",
5459
"GREATER_THAN_OR_EQUAL_TO"="gte",
5560
"GREATER_THAN_OR_EQUAL"="gte",
5661
"DATE_GTE"="dategte",
5762
"DATE_GREATER_THAN_OR_EQUAL"="dategte",
5863

59-
"LT"="lt",
60-
"LESS_THAN"="lt",
61-
"DATE_LT"="datelt",
62-
"DATE_LESS_THAN"="datelt",
63-
6464
"LTE"="lte",
6565
"LESS_THAN_OR_EQUAL_TO"="lte",
6666
"LESS_THAN_OR_EQUAL"="lte",
@@ -110,10 +110,17 @@
110110
"Q"="q",
111111

112112
#
113-
# Ontology filters
113+
# Ontology operators
114114
#
115115
"ONTOLOGY_IN_SUBTREE"="concept:insubtree",
116116
"ONTOLOGY_NOT_IN_SUBTREE"="concept:notinsubtree",
117+
118+
#
119+
# Lineage operators
120+
#
121+
"EXP_CHILD_OF" = "exp:childof",
122+
"EXP_PARENT_OF" = "exp:parentof",
123+
"EXP_LINEAGE_OF" = "exp:lineageof",
117124
)
118125

119126
if(is.null(fop)==TRUE) stop ("Invalid operator name.")

Rlabkey/man/Rlabkey-package.Rd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ schema objects (\code{labkey.getSchema}).
1818
\tabular{ll}{
1919
Package: \tab Rlabkey\cr
2020
Type: \tab Package\cr
21-
Version: \tab 2.11.0\cr
22-
Date: \tab 2023-05-02\cr
21+
Version: \tab 2.12.0\cr
22+
Date: \tab 2023-08-18\cr
2323
License: \tab Apache License 2.0\cr
2424
LazyLoad: \tab yes\cr
2525
}

Rlabkey/man/makeFilter.Rd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ NO_MV_INDICATOR\cr
5353
Q\cr
5454
ONTOLOGY_IN_SUBTREE\cr
5555
ONTOLOGY_NOT_IN_SUBTREE\cr
56+
EXP_CHILD_OF\cr
57+
EXP_PARENT_OF\cr
58+
EXP_LINEAGE_OF\cr
5659

5760
When using the MISSING, NOT_MISSING, MV_INDICATOR, or NO_MV_INDICATOR operators, an empty string should be supplied as the value.
5861
See example below.

0 commit comments

Comments
 (0)