redash/tests/models
Omer Lachish 76fbe858ba refresh_queries requires Request Context (#4045)
* avoid using 'abort' in parameterized query - raise an exception instead

* when facing invalid parameters or detached dropdown queries - continue to refresh the rest of the outdated queries

* test that dropdown queries detached from data source raise an exception when fetch values is attempted

* test that queries with invalid parameters arent refreshed

* test that queries with dropdown query parameters which are detached from the data source are skipped

* fix stale test double name

* newlines. newlines everywhere.

* pass org into dropdown_values

* pass in org in every ParameterizedQuery usage

* Update redash/tasks/queries.py

Co-Authored-By: Arik Fraimovich <arik@arikfr.com>

* reduce refresh_queries log noise

* track failure count for queries that failed to apply parameters, and also notify the failures

* Update redash/tasks/queries.py

Co-Authored-By: Arik Fraimovich <arik@arikfr.com>

* newlines. newlines everywhere.
2019-08-09 15:26:31 +03:00
..
__init__.py Format files to end in a single newline per PEP 8 2016-02-29 12:00:03 -08:00
test_alerts.py Fix: Alert.evaluate failing when the column is missing. (#3167) 2018-12-05 11:28:05 +02:00
test_api_keys.py API to create api key for dashboards 2016-03-10 10:09:26 +02:00
test_changes.py Disable query version check in test (#1550) 2017-01-26 22:25:12 +02:00
test_dashboards.py Use None as "not scheduled" default value of a query (#3277) 2019-01-18 11:30:45 +02:00
test_data_sources.py Remove schema after deleting data source (#3894) 2019-06-10 22:39:26 +03:00
test_parameterized_query.py refresh_queries requires Request Context (#4045) 2019-08-09 15:26:31 +03:00
test_permissions.py Revoke permission should respect to given grantee and access type. 2017-10-06 12:52:35 +02:00
test_queries.py Support multi-byte search for query names and descriptions (#3908) 2019-07-08 10:01:47 +03:00
test_query_results.py CSV: correctly serialize booleans and dates. (#3841) 2019-05-29 10:45:29 +03:00
test_users.py Add regenerate function of user's API key (#3224) 2019-01-20 13:38:20 +02:00