Skip to content

Commit

Permalink
feat: add limit orderBy and offset to all query actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Taepper committed Jul 6, 2023
1 parent 5a4b370 commit 13b7e01
Show file tree
Hide file tree
Showing 20 changed files with 2,191 additions and 116 deletions.
30 changes: 30 additions & 0 deletions endToEndTests/test/invalidQueries/OffsetNegative.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"testCaseName": "Details action with order by field EPI_ISL",
"query": {
"action": {
"type": "Details",
"orderByFields": ["gisaid_epi_isl"],
"offset": -1231
},
"filterExpression": {
"type": "And",
"children": [
{
"type": "StringEquals",
"column": "country",
"value": "Switzerland"
},
{
"type": "PangoLineage",
"column": "pango_lineage",
"value": "B.1.1.7",
"includeSublineages": true
}
]
}
},
"expectedError": {
"error": "Bad request",
"message": "If the action contains an offset, it must be a non-negative number"
}
}
Loading

0 comments on commit 13b7e01

Please sign in to comment.