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
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
Allen Short
8280859ad3
add test coverage for remaining queries to convert
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
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
261b374924
test_permissions
2016-12-07 02:13:20 -06:00
Allen Short
9f789d3018
test_paginate
2016-12-07 02:13:20 -06:00
Allen Short
29cdfcd7a1
test_embed, test_groups
2016-12-07 02:13:20 -06:00
Arik Fraimovich
d103e3f7bf
Fix groups tests (except for delete)
2016-12-07 02:13:20 -06:00
Arik Fraimovich
c5548e9375
Fix query handlers test
2016-12-07 02:13:20 -06:00
Arik Fraimovich
802b812932
Fix query results tests
2016-12-07 02:13:20 -06:00
Arik Fraimovich
9c1450f4c9
Fix users handlers tests
2016-12-07 02:13:20 -06:00
Arik Fraimovich
4459c464ca
use Query#query_text instead of Query#query
2016-12-07 02:13:20 -06:00
Arik Fraimovich
f4c76527ee
Fix refresh queries tests
2016-12-07 02:13:20 -06:00
Arik Fraimovich
419234a23e
Fix widget tests
2016-12-07 02:13:20 -06:00
Arik Fraimovich
b61dbfa16b
Fix test_authentication tests
2016-12-07 02:13:20 -06:00
Arik Fraimovich
c355eeffb6
Fix test_permissions tests
2016-12-07 02:13:20 -06:00
Allen Short
c6ef6041cf
test_data_sources passes
2016-12-07 02:13:20 -06:00
Allen Short
dff39a6849
test_dashboards passes
2016-12-07 02:13:20 -06:00
Allen Short
bb755b5c25
test_models fixes
2016-12-07 02:13:20 -06:00
Allen Short
d1fcb43562
test_alerts passes
2016-12-07 02:13:20 -06:00
Arik Fraimovich
8680ebe96f
Change Dashboard factory to generate non drafts
2016-12-07 02:13:20 -06:00
Arik Fraimovich
d59299b85a
Fix Alert model tests
2016-12-07 02:13:20 -06:00
Arik Fraimovich
9210f5fb0c
Remove unused code
2016-12-07 02:13:20 -06:00
Allen Short
c2378d837a
test_handlers passes
2016-12-07 02:13:20 -06:00
Arik Fraimovich
2a525210e4
Start fixing visualizations tests
2016-12-07 02:13:20 -06:00
Arik Fraimovich
04447e0df6
Fix: connections leaking during tests.
2016-12-07 02:13:20 -06:00
Arik Fraimovich
55cb3747ed
Use db.drop_all/create_all directly
2016-12-07 02:13:20 -06:00
Arik Fraimovich
2bff12b376
Update all tests to use the same test_client
2016-12-07 02:13:20 -06:00
Arik Fraimovich
b390cd2e3d
Close DB connection between tests.
...
Otherwise we were running out of connections.
2016-12-07 02:13:20 -06:00
Allen Short
f00d77dec4
auth tests wip
2016-12-07 02:13:20 -06:00
Allen Short
ea166665d3
test_models passes
2016-12-07 02:13:20 -06:00
Allen Short
24217d969e
schema for sqlalchemy, basic test support
2016-12-07 02:13:20 -06:00
Allen Short
80491ea4c2
Switch from flask_script to click, add CLI unit tests.
2016-12-06 15:14:44 -06:00
Arik Fraimovich
a874d88667
Fix tests & update CircleCI configuration
2016-11-26 11:35:21 +02:00
Arik Fraimovich
9f68deefea
Merge pull request #1256 from ninneko/fork_with_vis
...
Change: when forking a query, copy all visualizations
2016-11-23 11:49:26 +02:00
Arik Fraimovich
971f961bcd
Merge pull request #1353 from washort/draft-toggle
...
Change: make draft status for queries and dashboards toggleable
2016-11-22 23:38:33 +02:00
Antoine Augusti
9118464970
Rate limit the login page
2016-11-20 12:44:43 +01:00
yohei.naruse
8c78252ea2
fix tests
2016-11-11 02:21:30 +09:00
yohei.naruse
1ad0c9c75f
fix errors
2016-11-09 00:37:16 +09:00
yohei.naruse
1d486938c1
fix bugs
2016-11-06 03:05:47 +09:00
yohei.naruse
e5665879bd
add query fork to models.py
2016-11-06 03:02:11 +09:00
Allen Short
65a6385380
Make draft status for queries and dashboards toggleable.
2016-11-02 12:31:33 -05:00
Arik Fraimovich
2f090435a5
Merge pull request #1113 from whummer/feat/share-access-permissions
...
Add: share modify/access permissions for queries and dashboard
2016-10-28 19:11:03 +03:00
Arik Fraimovich
d9bad96e8e
Remove MQL tests
2016-10-28 18:16:54 +03:00
Arik Fraimovich
6c5dd09a78
Add change tracking and fix tests
2016-10-26 16:09:55 +03:00
Arik Fraimovich
df17759ab4
Fix tests
2016-10-26 11:47:40 +03:00
Arik Fraimovich
6218421266
Tests for the permissions API (and rewrite)
2016-10-26 10:52:24 +03:00
Arik Fraimovich
f34471ec10
Return 409 when dashboard can't be updated due to conflict
2016-10-25 11:58:43 +03:00
Arik Fraimovich
40cc592591
Make sure error are logged in tests
2016-10-25 11:58:25 +03:00
Arik Fraimovich
bb96702ae6
Update dashboard testS
2016-10-25 10:45:00 +03:00
Arik Fraimovich
8b091129ed
Use new helper for dashboards API
2016-10-24 21:33:49 +03:00
Arik Fraimovich
edea6f3a05
WIP:
...
- Move version/change tracking logic to mixins (the change mixin is still WIP).
- Tests for queries update API.
2016-10-24 16:58:30 +03:00
Arik Fraimovich
c51477ac93
Add tests outline
2016-10-24 13:56:39 +03:00
Arik Fraimovich
9f3bbfee13
Renames
2016-10-24 13:56:31 +03:00
Arik Fraimovich
7ba5a2062a
Remove unused method
2016-10-24 13:37:32 +03:00
Waldemar Hummer
60a79cbe08
address code review comments
2016-10-24 12:33:29 +03:00
Waldemar Hummer
e0672f4c4d
add optimistic locking for dashboard editing
2016-10-24 12:33:29 +03:00
Waldemar Hummer
903ba0c1e0
add backend API and tests for managing access permissions.
2016-10-24 12:33:29 +03:00
Arik Fraimovich
ae2cd5363f
Change: pass the user object to the run_query method
...
This to allow different use cases like checking permissions
based on who is currently running the query.
2016-10-20 23:42:25 +03:00
Arik Fraimovich
5096e4ed79
Change: paginate query page & add explicit urls.
...
- Paginate the queries API result.
- Split the API to /api/queries (all queries) and /api/queries/my which returns
a user's queries (or drafts).
- In the interface have explicit URLs for all queries (/queries), my queries (/queries/my)
and drafts (/queries/drafts).
2016-10-05 14:14:26 +03:00
Arik Fraimovich
09a848f524
Change: deduplicate Google Spreadsheet columns
2016-09-11 09:41:15 +03:00
Arik Fraimovich
d4bfbc2c57
Fix: Excel file generation fails when row missing column value.
2016-07-11 11:51:55 +03:00
Arik Fraimovich
95fa6849b3
More robust parsing of worksheets with handling:
...
- handle the case of empty worksheet.
- handle the case of worksheet with no data.
2016-07-04 22:25:10 +03:00
Arik Fraimovich
6905340c2d
Google Spreadsheets: Add support for unicode
2016-07-04 18:31:42 +03:00
Arik Fraimovich
f21276ec06
Merge pull request #1119 from getredash/feature/params_ui
...
Feature: add UI to delete alerts
2016-06-14 12:00:53 +03:00
Arik Fraimovich
2d2fb69b7b
Add API to delete alerts ( #731 ).
2016-06-14 11:21:05 +03:00
Arik Fraimovich
3ce27b9652
Merge pull request #1118 from getredash/feature/params_ui
...
Fix: remove alerts for archived queries
2016-06-14 11:15:50 +03:00
Arik Fraimovich
da4db94cf8
Close #930 : remove alerts for archived queries
2016-06-14 11:09:35 +03:00
Arik Fraimovich
4cbc79a7aa
Use default user for alert_subscription factory
2016-06-14 11:04:41 +03:00
Arik Fraimovich
df637e3f6b
Merge pull request #1116 from getredash/feature/params_ui
...
Return meaningful error when there is no cached result.
2016-06-14 10:44:24 +03:00
Arik Fraimovich
68465b0c60
Return meaningful error when there is no cached result.
...
Previously it was crashing as it was trying to access an unreferenced
variables (query_result).
2016-06-14 10:41:01 +03:00
Arik Fraimovich
52558043ee
Merge pull request #1091 from whummer/feature/cache_embeds
...
Add caching for queries used in embeds
2016-06-14 08:34:13 +03:00
Arik Fraimovich
0c7f0c25a8
Fix #1109 : mixed group permissions resulting in wrong permission
2016-06-09 19:59:26 +03:00
Arik Fraimovich
7159f0beb0
Remove potnetially concurrency not safe code form enqueue_query.
...
This might have been causing the behavior described in #1097 .
2016-06-09 16:53:29 +03:00
Arik Fraimovich
b67f412f58
Add test for enqueue_query
2016-06-08 20:00:59 +03:00
Waldemar Hummer
011ca74338
add caching for queries used in embeds
2016-06-03 09:14:59 +10:00
Arik Fraimovich
434615a1be
Merge remote-tracking branch 'origin/master' into flexible_notifications
2016-06-02 10:21:52 +03:00
Arik Fraimovich
857caab20e
Merge pull request #1085 from getredash/feature/pause-api
...
Feature: API to pause a data source
2016-05-31 09:08:03 +03:00
Arik Fraimovich
59f8af2c44
Switch to Redis for pause state storage
2016-05-30 22:44:09 +03:00
Arik Fraimovich
9538ee7c31
Feature: API to pause a data source
2016-05-30 18:30:05 +03:00
Arik Fraimovich
07d2b5ba42
Fix #1049 : duplicate alerts
2016-05-30 14:39:58 +03:00
Arik Fraimovich
214aa3b799
Merge pull request #1060 from thoughtworks/saml-authorization
...
Feature: support configuring user's groups with SAML
2016-05-26 23:07:30 +03:00
Kumar Vora
8900d02c95
fixing test
2016-05-20 14:35:49 -05:00
Kumar Vora
c1c2db4a73
use user.org instead of passing org as a separate argument
2016-05-20 14:28:08 -05:00
Arik Fraimovich
b2e2277d0b
Fix: old task trackers were not really removed
2016-05-19 09:58:30 +03:00
Ama Asare
ad85b9a62c
Ama/Kumar: Configure authorization for SAML
2016-05-17 14:01:18 -05:00
Arik Fraimovich
e069374232
Merge w/ latest master
2016-05-07 17:49:49 +03:00
Waldemar Hummer
e415189017
add test case for embeds with parameters; minor fix in embeds.py
2016-05-05 11:15:49 +10:00