Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions data/api/rlabkey-api-query.xml
Original file line number Diff line number Diff line change
Expand Up @@ -625,4 +625,47 @@
]]>
</response>
</test>
<test name="make filters" type="post">
<url>
<![CDATA[
library(Rlabkey)
makeFilter(
c("foo/Reagent", "CONTAINS", "this or that"),
c("Temp_C", "GREATER_THAN", "12"),
c("SystolicBloodPressure", "MISSING", ""))
]]>
</url>
<response>
<![CDATA[
[1] "query.foo%2FReagent~contains=this%20or%20that"
[2] "query.Temp_C~gt=12"
[3] "query.SystolicBloodPressure~isblank="
]]>
</response>
</test>
<!--
Uncomment when Rlabkey 3.4.5 is available
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests on TeamCity should run with the latest code in the package, so you should be able to uncomment this new test case now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nevermind. I didn't see the comment from the other PR until now.

<test name="make filters as list" type="post">
<url>
<![CDATA[
library(Rlabkey)
makeFilter(
c("foo/Reagent", "CONTAINS", "this or that"),
c("Temp_C", "GREATER_THAN", "12"),
c("SystolicBloodPressure", "MISSING", ""), asList=TRUE)
]]>
</url>
<response>
<![CDATA[
$`query.foo/Reagent~contains`
[1] "this or that"
$`query.Temp_C~gt`
[1] "12"
$`query.SystolicBloodPressure~isblank`
[1] ""
]]>
</response>
</test>-->
</ApiTests>
2 changes: 1 addition & 1 deletion data/api/rlabkey-api.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<url>
<![CDATA[
library(Rlabkey)
print(labkey.getFolders(labkey.url.base, "/%projectName%", includeEffectivePermissions=FALSE))
print(labkey.getFolders(labkey.url.base, "/%projectName%", includeEffectivePermissions=FALSE, includeSubfolders=TRUE))
]]>
</url>
<response>
Expand Down