Commit Graph

1479 Commits

Author SHA1 Message Date
vera-liu 19fab6eea7 Get table viz work in explore v2: Added d3 format to mock slice (#1353)
* Added d3format() function to mock slice in explorev2

Problem:
table viz was not working in explorev2 due to d3format() not defined in
mock slice.

* Change column_formats to camel case
2016-10-24 16:01:06 -07:00
Maxime Beauchemin 63161b11c3 [sqllab] proper, quoted, select * on the server side (#1404)
* [sqllab] proper, quoted, select * on the server side

* fixing tests
2016-10-21 16:55:37 -07:00
Bogdan 4f886d65ec Fix None view_menues in permissions. (#1409) 2016-10-21 16:09:51 -07:00
Maxime Beauchemin 62e0e195e8 [docfix] d3.format docs have moved 2016-10-21 16:08:55 -07:00
Maxime Beauchemin e9d4749f44 [hotfix] sqllab presto 2016-10-21 13:35:21 -07:00
Maxime Beauchemin 93f8e7d8e9 Fix the js build running out of heap space (#1408) 2016-10-21 13:05:14 -07:00
Maxime Beauchemin 3dea6e0da5 [sqllab] adding more descriptive labels to left panel (#1407) 2016-10-21 12:51:50 -07:00
Maxime Beauchemin 6fb3b305ad [sqllab] add support for results backends (#1377)
* [sqllab] add support for results backends

Long running SQL queries (beyond the scope of a web request) can now use
a k/v store to hold their result sets.

* Addressing comments, fixed js tests

* Fixing mysql has gone away

* Adressing more comments

* Touchups
2016-10-20 23:40:24 -07:00
Maxime Beauchemin 7dfe891cc1 [hotfix] timeseries_limit_metric: Not a valid choice 2016-10-20 17:42:16 -07:00
Bogdan 5c3966a32d Override the role with perms for given datasources. (#1399)
* Override the role with perms for give datasources.

* Address comments.
2016-10-20 15:30:09 -07:00
Bogdan c198535292 Change slice ids in the position json during dashboard import. (#1380)
* Change slice ids in the position json during dashboard import.

* Update slice ids in the dashboard json metadata.
2016-10-20 09:17:51 -07:00
ShengyaoQian ece69fbb75 Fix migration for make creator owners (#1262) 2016-10-20 08:51:13 -07:00
Ryan Ye 458651fa3e Add parens for custom where and having (#1337) 2016-10-20 08:22:21 -07:00
Maxime Beauchemin b2f7081c6f bumping versions of JS packages to latest (#1352)
* bumping versions of JS packages to latest

* Pining mapbox-gl back to previous version

* bump mapbox-gl to 0.26 ad react-map-gl to 1.7.0
2016-10-19 10:06:11 -07:00
Maxime Beauchemin c255e89219 [sqllab] show partition metadata for Presto (#1342) 2016-10-19 09:17:08 -07:00
Nick Barnwell 2edce5bf8a Enable "Run Query in New Tab" in SQL Lab (#1343)
* Enable "Clone to New Tab" btn in QueryHistoryTable

Method #1; doesn't feel very clean.

Going to attempt to reimplement using an action and changing state directly
through the reducer rather than creating a new QueryEditor object directly from
the QueryTable

* Move Clone Logic to Action

* Implement PR feedback

* Clean up reducer action; fix bug

Bug => Attempting to clone anything other than the most recent Query for a given
TabbedQueryEditor would throw an exception, because we depended on lastQueryId
to find the title of the QueryEditor to clone. Since you can only activate a
clone from the currently active tab, we can instead fetch the ID of the Editor
to copy the Title of from the tip of tabHistory.

* Tests for Reducer Action

* Fix CodeClimate feedback
2016-10-18 16:02:29 -07:00
Maxime Beauchemin 8f299448ea [bugfix] text as subquery fails with 'Series Limit' (#1347) 2016-10-17 18:36:49 -07:00
Maxime Beauchemin ecb951bb74 Specify the metric to order by for Series Limit (#1351) 2016-10-17 18:34:26 -07:00
Riccardo Magliocchetti 0dff6a9030 Add quarter time grain to postgresql (#1362)
The timestamp returned is the start date of the period.

Reference:
https://www.postgresql.org/docs/9.1/static/functions-datetime.html
2016-10-17 18:32:47 -07:00
vera-liu 2095095895 Fixed big number issue (#1355) 2016-10-15 10:40:16 -07:00
Maxime Beauchemin 4fc8a17f2a [hotfix] use instead of prod for Travis build, take 3 2016-10-15 08:40:10 -07:00
Maxime Beauchemin 3cb737f8c8 [hotfix] use instead of prod for Travis build, take2 2016-10-15 08:11:37 -07:00
Maxime Beauchemin 7449aa813b [hotfix] use instead of prod for Travis build 2016-10-15 07:58:41 -07:00
Maxime Beauchemin 7a3bcc227c [bugfix] NaN issue in Big Number viz (#1346) 2016-10-14 15:08:52 -07:00
Alanna Scott b669a14081 [explore-v2] make chart container work with existing visualization files (#1333)
* make chart container work with nvd3_vis.js

* map vis to module, remove unneeded components

* fix linting

* use existing query and save btns, don't fork more things

* comment out chart and exploreviecontainer specs

* make a change because i think the js test is failing spuriously
2016-10-14 12:54:18 -07:00
Alanna Scott 9db4cc8c6d add node/npm versions to contributing.md (#1344)
* add node and npm versions

* use lower case npm

* update wording
2016-10-14 00:00:12 -07:00
ComputeThis 65c744f242 Fix utc time calculation if provided datetime has tz info (#1287) 2016-10-13 21:03:20 -07:00
Maxime Beauchemin 82bcadf7f8 Moving 'CSS TEmplates' to the Manage menu category (#1336) 2016-10-13 20:55:44 -07:00
Bogdan f0f8478922 Revert "Override the role with perms for give datasources." (#1345) 2016-10-13 19:21:21 -07:00
Bogdan 40e7057bce Override the role with perms for give datasources. (#1335)
* Override the role with perms for give datasources.

* Address comments.
2016-10-13 18:18:03 -07:00
Bogdan 11a8e3591d Some dashboard import/export fixes. (#1340) 2016-10-13 14:36:39 -07:00
Maxime Beauchemin 5bea3986b2 [hotfix] handling json errors in explore view 2016-10-12 19:42:03 -07:00
Maxime Beauchemin 89cb726284 [hotfix] explore errors are not raise properly 2 2016-10-12 17:46:31 -07:00
Maxime Beauchemin 4e9392d21b [hotfix] explore errors are not raise properly 2016-10-12 17:20:42 -07:00
vera-liu b785d27241 Taking out object spread operator (#1311)
* Changed eslint channel in codeclimate.yml for object spread

* Revert "Changed eslint channel in codeclimate.yml for object spread"

This reverts commit b9deb8ce84478f9c8f48ca7d41662e7222f40376.

* Took out the object spread operator
2016-10-12 15:54:51 -07:00
Alanna Scott 451860afca remove #app styling (#1312) 2016-10-12 14:04:38 -07:00
Ryan Ye 4cf4e3805c Bugfix when there's only date filter in FilterBox (no groupby) (#1326) 2016-10-12 13:51:40 -07:00
Maxime Beauchemin ef2670ca32 Using inheritance scheme to organize db specific code (#1294)
* Using inheritance scheme to organize db specific code

* Addressing comments
2016-10-12 13:50:47 -07:00
Bogdan 8626c80d3a Stop duplicating datasources (#1321)
* Prevent creating duplicate tables.

* Stop duplicating the tables and druid datasouces.

* Use sqlalchemy func.count
2016-10-12 12:48:24 -07:00
Alanna Scott 5cb3cc2ed8 polyfill es2015 in older browsers and for phantomjs (#1323)
* use babel polyfill

* alphabetize entry files, only add babel-polyfill once for each entry
2016-10-12 10:41:26 -07:00
Bogdan 73cd2ea3b1 Import / export of the dashboards. (#1197)
* Implement import / export dashboard functionality.

* Address comments from discussion.

* Add function descriptions.

* Minor fixes

* Fix tests for python 3.

* Export datasources.

* Implement tables import.

* Json.loads does not support trailing commas.

* Improve alter_dict func

* Resolve comments.

* Refactor tests

* Move params_dict and alter_params to the ImportMixin

* Fix flask menues.
2016-10-11 17:54:40 -07:00
Dennis O'Brien cd2ab42abc do not overwrite the stored password with the masked password (#1209)
* do not over-write the stored password with a masked password.
his addresses issue #1199

* added a test to validate that sending a password-masked sqlalchemy_uri does not over-write the stored sqlalchemy_uri

* requery the database object after the update.
use self.assertEqual for more informative error messages.
2016-10-11 16:49:40 -07:00
Maxime Beauchemin bf1f5ea3de [sqllab] use encodeURIComponent for copy query URL (#1317)
had to bump babel-preset-airbnb for object-rest-spread to work in my
env.

Change the menu icon, text and tooltip to clarify the usage
2016-10-11 15:50:36 -07:00
Mihail Diordiev 79460abdd2 [SQLLab] Fix the usage of Redux DevTools Enhancer (#1278)
* Fix the usage of Redux DevTools Enhancer

* Fix ESLint error
2016-10-11 15:27:25 -07:00
Juho Lamminmäki 1e6e144d24 Fixed viewing dashboards as anonymous (#1320) 2016-10-11 08:04:00 -07:00
Alanna Scott fe66557bbb [explore-v2] hook up ExploreViewContainer to state and add specs (#1300)
* add getParams func to common

* get data from redux state

* specs for chart container and explore view container
2016-10-10 13:46:00 -07:00
vera-liu f8e2ce6ff3 Change status color in tab to match with success (#1247) 2016-10-10 13:32:38 -07:00
Bogdan 19677438c2 Add cascade delete to the 1 to composite relationships. (#1295) 2016-10-09 19:06:22 -07:00
Alanna Scott 9012b11101 add ImmutableMultiDict back to views.py (#1298) 2016-10-07 18:27:19 -07:00
Maxime Beauchemin f70d301f0d Refactor the explore view (#1252)
* Refactor the explore view

* Fixing the tests

* Addressing comments
2016-10-07 16:24:39 -07:00