Skip to content

Commit 99a0a01

Browse files
authored
Issue 36474 - add support for ignoreFilter to select_rows (#37)
* Add ignore_filter to select_rows * Bump version to 1.4.0
1 parent 2f7cddb commit 99a0a01

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

CHANGE.txt

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
LabKey Python Client API News
33
+++++++++++
44

5+
What's New in the LabKey 1.4.0 package
6+
==============================
7+
8+
*Release date: 06/17/2020*
9+
10+
- Add ignore_filter option to select_rows
11+
512
What's New in the LabKey 1.3.0 package
613
==============================
714

labkey/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@
1616
from labkey import domain, query, experiment, security, utils
1717

1818
__title__ = 'labkey'
19-
__version__ = '1.3.0'
19+
__version__ = '1.4.0'
2020
__author__ = 'LabKey'
2121
__license__ = 'Apache License 2.0'

labkey/query.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@ def select_rows(server_context, schema_name, query_name, view_name=None,
201201
include_update_column=None,
202202
selection_key=None,
203203
required_version=None,
204-
timeout=_default_timeout
204+
timeout=_default_timeout,
205+
ignore_filter=None,
205206
):
206207
"""
207208
Query data from a LabKey server
@@ -225,6 +226,7 @@ def select_rows(server_context, schema_name, query_name, view_name=None,
225226
:param selection_key:
226227
:param required_version: decimal value that indicates the response version of the api
227228
:param timeout: Request timeout in seconds (defaults to 30s)
229+
:param ignore_filter: Boolean, if true, the command will ignore any filter that may be part of the chosen view.
228230
:return:
229231
"""
230232
url = server_context.build_url('query', 'getQuery.api', container_path=container_path)
@@ -283,6 +285,9 @@ def select_rows(server_context, schema_name, query_name, view_name=None,
283285
if required_version is not None:
284286
payload['apiVersion'] = required_version
285287

288+
if ignore_filter is not None and ignore_filter is True:
289+
payload['query.ignoreFilter'] = 1
290+
286291
return server_context.make_request(url, payload, timeout=timeout)
287292

288293

0 commit comments

Comments
 (0)