Commit Graph

3869 Commits

Author SHA1 Message Date
Jayke.Lin
d4534d6045 Using UTF-8 encoding for clickhouse POST data 2016-12-12 11:05:16 +08:00
Arik Fraimovich
3cf6e31727 Forgot to add Flaks-Migrate to requirements.txt. 😳 2016-12-11 16:43:50 +02:00
Arik Fraimovich
d631171e81 Fix Query.recent tests 2016-12-11 15:54:13 +02:00
Arik Fraimovich
4df58bb724 Merge pull request #1440 from whummer/fix/dashboard-layout-error
Fix: API errors for dashboards with invalid layout data
2016-12-11 15:43:03 +02:00
Arik Fraimovich
19960eedda Merge pull request #1417 from washort/sqlalchemy
Change: Replace Peewee with SQLAlchemy/Alembic
2016-12-11 15:42:07 +02:00
Arik Fraimovich
b3bfc3bc74 Bring back support for total query time/queries count 2016-12-11 15:41:07 +02:00
Arik Fraimovich
1978e07748 Use group ids instead of groups in Queries.search/recent 2016-12-11 15:11:30 +02:00
Allen Short
e524db0215 Measure query time with statsd 2016-12-09 18:21:56 -06:00
Arik Fraimovich
81fb139b88 Add shell_context_processor to inject models to shell. 2016-12-08 16:16:53 +02:00
Arik Fraimovich
1d18109964 Fix tests that used Query.all_queries 2016-12-08 16:07:25 +02:00
Arik Fraimovich
c380596930 Fix cases where we used User.groups instead of User.group_ids 2016-12-08 16:02:51 +02:00
Arik Fraimovich
106c743647 Keep same logging format in ALembic 2016-12-08 15:36:08 +02:00
Arik Fraimovich
12cbfe1af4 Stamp database on first creation 2016-12-08 15:35:54 +02:00
Arik Fraimovich
3cce4d0ce4 Add warning script to migrations folder 2016-12-08 14:59:21 +02:00
Allen Short
4945d0bec7 fix cleanup_query_results task 2016-12-07 19:59:48 -06:00
Allen Short
4ba399af67 fix basic query execution from UI 2016-12-07 17:57:21 -06:00
Allen Short
da31d983b7 Fix test_cli tests 2016-12-07 13:18:07 -06:00
Arik Fraimovich
923c463e4a Add migration for the is_draft column 2016-12-07 18:33:52 +02:00
Arik Fraimovich
70d545410d Add Flask-Migrate to the project
Also moved old migrations to old_migrations folder (before deleting them entirely).
2016-12-07 17:59:01 +02:00
Arik Fraimovich
74e6ef5c1d Fix users CLI tests 2016-12-07 15:54:08 +02:00
Arik Fraimovich
abf57e4e70 Upgrade setuptools to install mock 2016-12-07 15:33:58 +02:00
Arik Fraimovich
2d206ef470 Switch to flask.cli.AppGroup instead of flask.cli.with_app_context 2016-12-07 15:21:13 +02:00
Arik Fraimovich
2b33963bee Add missing db.session.commit calls in CLI 2016-12-07 15:11:42 +02:00
Arik Fraimovich
a84c3e25f5 Move CLI logic into redash.cli and uses manager for tests.
Otherwise the Flask wasn't created and tests were failing.
2016-12-07 14:58:33 +02:00
Arik Fraimovich
b9024b18c1 Remove unused code 2016-12-07 14:00:37 +02:00
Arik Fraimovich
bcce9cf251 Update circle.yml to skip docker builds for now 2016-12-07 14:00:03 +02:00
Arik Fraimovich
80a7d377fe Fix: set the column name of QueryResult.query_text 2016-12-07 12:43:17 +02:00
Arik Fraimovich
73121890b3 Remove usage of the deprecated flask.ext package 2016-12-07 12:42:46 +02:00
Arik Fraimovich
51117e8e5b Update dependencies to more latest versions 2016-12-07 12:42:01 +02:00
Arik Fraimovich
fb75626458 Create default visualization using a method instead of signal 2016-12-07 12:02:57 +02:00
Arik Fraimovich
045e880f25 Add dedicated delete method to widgets instead of using an event 2016-12-07 12:02:46 +02:00
Arik Fraimovich
0c974bd48b Update User.find_by_email to SQLA 2016-12-07 12:02:31 +02:00
Arik Fraimovich
463da02be1 remove group_hack method (unused) 2016-12-07 12:01:44 +02:00
Arik Fraimovich
ecbed0087e Update create_and_login_user not to call save 2016-12-07 12:01:34 +02:00
Arik Fraimovich
8c2b310419 Add tests to alerts celery task 2016-12-07 12:01:22 +02:00
Arik Fraimovich
6b0e45441c Update QuerySnippets code to SQLA 2016-12-07 12:01:03 +02:00
Arik Fraimovich
74e1b3119f Remove dead code 2016-12-07 12:00:01 +02:00
Allen Short
dc6bc071f1 work around flask proxy object 2016-12-07 03:09:55 -06:00
Allen Short
4edc3e3f21 gratuitous admin query fix 2016-12-07 03:09:41 -06:00
Allen Short
8280859ad3 add test coverage for remaining queries to convert 2016-12-07 03:09:33 -06:00
Arik Fraimovich
f3d813445b Fix data source models tests 2016-12-07 03:09:33 -06:00
Allen Short
520835dad0 Fix test_cli 2016-12-07 03:09:33 -06:00
Arik Fraimovich
a5805d0700 Fix session api (used groups instead of group_ids) 2016-12-07 02:13:52 -06:00
Arik Fraimovich
03b2a416c8 Fix queries update handler 2016-12-07 02:13:52 -06:00
Arik Fraimovich
7d45812ef7 Add setting to enable SQLA echo mode 2016-12-07 02:13:52 -06:00
Arik Fraimovich
3f54799020 More destination handlers test fixes 2016-12-07 02:13:52 -06:00
Arik Fraimovich
c0f48909a7 Fix destinations handlers code 2016-12-07 02:13:52 -06:00
Allen Short
9b5aaa787d test_permissions, test_changes, test_queries 2016-12-07 02:13:20 -06:00
Allen Short
271b468bcb test_alerts 2016-12-07 02:13:20 -06:00
Allen Short
6c3d5d184e test_queries 2016-12-07 02:13:20 -06:00