Compare commits

..
Author SHA1 Message Date
Maxime Beauchemin 1493650d0c 0.28.0rc3 2018-08-21 10:19:40 -07:00
Maxime Beauchemin 524a15372d 0.28.0rc3 2018-08-21 10:18:22 -07:00
Maxime BeaucheminandGitHub 50042af25d [bug] 'an error has ooccured' when saving datasource (#5683)
The check_ownership was failing when Alpha user was saving a datasource
from the datasource editor.
2018-08-21 10:10:44 -07:00
hitdemoandMaxime Beauchemin 5e5360fc11 make some text localizable, mainly in dashboard, explore, datasource editor, webpage title (#5685) 2018-08-21 10:10:09 -07:00
Sumedh SakdeoandMaxime Beauchemin 0fbda33c68 Handling bigquery dialect when previewing data (#5655)
* Handling bigquery dialect when previewing data

* review comments

* lint
2018-08-20 22:04:22 -07:00
Maxime BeaucheminandGitHub 2d23ae1065 [bugfix] df is None breaks df.empty check (#5657) 2018-08-20 17:01:03 -07:00
Krist WongsuphasawatandMaxime Beauchemin 683edc377e Refactor Chord vis (#5671)
* refactor Chord vis

* Add PropTypes

* change module.exports to export default
2018-08-20 17:00:25 -07:00
Beto DealmeidaandMaxime Beauchemin fef39a7878 Fix time filter in cache (#5681) 2018-08-20 16:37:19 -07:00
Krist WongsuphasawatandChris Williams cdd348ab94 Minor improvements to SQL Lab UI (#5662)
* Remove "for"

* add space

* Separate control to select table from database and schema.

* Adjust schema displays

* Fix caret and arrow position in Select and Tab

* Reduce space after caret in tab header

* Use translator

* Align icons in the pop-up menu in Sql Lab

* Add new table in front of the list (so it will appear on top)

* shorten message

* reduce line
2018-08-19 22:43:00 -07:00
Beto DealmeidaandHugh A. Miles II 4c5142d969 Filter out null locations by default (#5642)
* Filter out null locations by default

* Move exception to better place

* Add unit test

* Return columns in order for test and readibility
2018-08-19 16:04:01 -07:00
Hugh A. Miles IIandGitHub dd5e0ba70b Update CONTRIBUTING.md (#5668) 2018-08-19 15:42:09 -07:00
Chris WilliamsandGitHub 3d15d910af [sqllab] call out transient state of tabs to users (#5652) 2018-08-17 17:44:56 -07:00
Maxime BeaucheminandGitHub 0a1aa6dd50 [bugfix] TypeError: adhocMetric.comparator.join is not a function (#5661)
Somehow we have a "IN" filter where the filter is a string, not an
array. While this may need to get fixed upstream as well, this prevents
the explore view from completely crashing.

Side note: this function looked somewhat brittle, I'm assuming it's used to keep
the free form SQL tab in sync and not used to generate the actual SQL
being executed.
2018-08-17 15:53:04 -07:00
Yongjie ZhaoandMaxime Beauchemin 5a4b70dad7 Fix checkbox is fails When disable Druid datasource (#5645) 2018-08-16 23:54:27 -07:00
Junda YangandMaxime Beauchemin 97acfc7f17 fix multilayer viz backend error (#5649) 2018-08-16 23:52:39 -07:00
Sumedh SakdeoandMaxime Beauchemin cc9324ae8b handle exception and set dtype value to JSON, when column type JSON (#5644)
* handle exception and set dtype value to JSON, when column type JSON

* review comment

* only when we handle exception
2018-08-16 20:04:08 -07:00
timifasubaaandGitHub 4ff5686e0c make filters use security manager (#5567)
* make filters use security manager

* remove the superset short-circuit
2018-08-16 14:17:41 -07:00
michellethomasandGrace Guo 32b3d00825 Updating yarn.lock for the vx upgrade (#5648) 2018-08-16 13:16:52 -07:00
michellethomasandChris Williams 2e0418034f Upgrading vx responsive to fix ResizeObserver issue (#5647) 2018-08-16 11:17:22 -07:00
michellethomasandJohn Bodley 492ad6c49a use_slice_data in slice_json calls (#5643) 2018-08-16 09:35:34 -07:00
Sumedh SakdeoandMaxime Beauchemin 5966a674e5 Explore View Perf Fix (#5637) 2018-08-15 12:27:08 -07:00
michellethomasandGrace Guo bf0afef7a9 Fix form data issue switching viz types (#5100)
* Fixing issue with extra params in formData

* Pass in param use_slice_data to decide whether to use slice data

* Fixing core_tests to not use explore_json overrides
2018-08-15 11:25:06 -07:00
John BodleyandGitHub 4e3b2e7cbc [title] Fix issue with non-string names in series title (#5433) 2018-08-15 09:35:44 -07:00
Sumedh SakdeoandMaxime Beauchemin c9bd5a6167 Fetch a batch of rows from bigquery (#5632)
* Fetch a batch of rows from bigquery

* unused const

* review comments
2018-08-14 21:44:04 -07:00
John BodleyandGitHub 46f89f4516 [bubble] Fixing ad-hoc metric labels (#5630) 2018-08-14 17:11:40 -07:00
Maxime BeaucheminandGitHub d601ff4747 Tackling late-arriving comments from #5186 (#5626) 2018-08-14 16:30:50 -07:00
Maxime BeaucheminandGitHub be04c98cd3 [sql lab] always use NullPool (#5612)
I think that the only place where we want db connection pooling would be
to talk to the metadata database. SQL Lab should close its connections
and never pool them.
Given that each Gunicorn worker will create its own pool that can lead
to way too many connections opened.

closes https://github.com/apache/incubator-superset/issues/4666
2018-08-14 16:27:13 -07:00
CongleiandJohn Bodley 2171ffb630 [bug fix] Fixed forced percentage format on tooltips and bubble chart tooltips format. (#5631)
* fixed forced percentage format on tooltip and correct reflection on bubble chart tooltip format

* re-trigger build
2018-08-14 16:04:24 -07:00
Maxime BeaucheminandGitHub 4c2be71e83 [bugfix] TIMESTAMP not detected as date (#5629)
* [bugfix] TIMESTAMP not detected as date

* minor tweak
2018-08-14 13:01:28 -07:00
Hugh A. Miles IIandGitHub 85a6da19ee Fix annotation_json endpoint (#5621)
* fix annotation_json endpoint

* add time back

* set db to None

* change if condition

* remove prop

* add guard for to_dttm

* linting
2018-08-14 11:40:14 -07:00
Grace GuoandGitHub 9f6ac0898e [Dashobard]Fix bad merge (#5624) 2018-08-14 10:56:45 -07:00
Krist WongsuphasawatandChris Williams 1d7f4f282e [bugfix] line_multi chart crashed on chosen (#5568) (#5572)
* Fix bug for line_multi

* refactor forEach to map

* reorder fields

* fix issue with datasource
2018-08-14 10:48:21 -07:00
Jillian RoweandMaxime Beauchemin a39dfb9ff9 Add additional heatmap schemas (#5549)
* got skeleton started

* added d3-scale-chromatic to package.json

* got hex values instead of calling from a function

* got rid of d3-scale-chromatic - no longer needed

* added schemas to controls

* damn editor broken some line spacing

* commit

* fix style issues

* whyyyyy won't this build

* whyyyyy won't this build

* damn typo

* hahaha got editor to deal with style configs

* no i guess i didn't

* gotta get them all

* again

* trying to get docker build ot work

* updated installation docs with some osx instructions

* restoring yarn.lock not sure why it changed

* trying to fix indent

* trying again

* CODE STYLE CHANGES WORK

* removing some colors that are too close to white

* human readable labels for names

* human readable labels for names
2018-08-13 23:37:17 -07:00
Beto DealmeidaandMaxime Beauchemin 763eeca75a No exception on no data (#5597)
* No exception on no data

* Remove unreachable exception
2018-08-13 22:33:29 -07:00
Beto DealmeidaandMaxime Beauchemin 5c1d906976 Add option to run query with ctrl+enter (#5622) 2018-08-13 21:43:57 -07:00
Krist WongsuphasawatandChris Williams 536478e96d [feature] Allow min/max value for the sparkline in time series table (#5603)
* Allow min/max value for the sparkline in time series table

* show bound lines

* User can choose to show y-axis bounds

* show label for the bounds

* compute necessary padding for the bound label

* extract sparkline code to another component

* can show y-axis in sparkline without setting bounds

* reorder option rows
2018-08-13 16:19:19 -07:00
John BodleyandGitHub e0c02be14e [dashboards] Increasing position_json to MEDIUMTEXT for MySQL (#5618) 2018-08-13 14:52:59 -07:00
John BodleyandGitHub 2685ab4f1f [fix] Enforcing main dttm column (#5584) 2018-08-13 13:54:55 -07:00
hitdemoandMaxime Beauchemin 50981dbc69 make some text localizable (#5611) 2018-08-12 20:47:55 -07:00
Narcissus7andMaxime Beauchemin 7d61eea604 fix cal_heatmap tips location error (#5480) (#5587)
* fix cal_heatmap tips location error

* fix graph-legend
2018-08-12 20:44:54 -07:00
John BodleyandGitHub d1ef81f102 [ad-hoc filters] Fixing legacy conversion (#5589) 2018-08-10 10:22:06 -07:00
Maxime Beauchemin f4aaad7945 Merge branch 'master' into 0.28 2018-08-09 14:49:31 -07:00
Maxime BeaucheminandGitHub 682ca3874e [sql lab - explore flow] make sure groupby is empty (#5596) 2018-08-09 14:48:36 -07:00
Grace GuoandMaxime Beauchemin 21bf8d9f8f [bug]Fix load_examples dashboard version key name (#5592) 2018-08-09 13:09:14 -07:00
Maxime BeaucheminandGitHub f4b45f07c3 [sql lab] visualization flow to detect unaliased columns (#5579)
* [sql lab] visualization flow to detect unaliased columns

* Addressing comments
2018-08-09 13:04:09 -07:00
Maxime BeaucheminandGitHub a8f4849911 [table editor] disable 'Sync table metadata' button for Superset views (#5580)
This was a bit tricky since there's a bug in react-bootstrap that make
it tricky to show a tooltip on a disabled button.
2018-08-09 10:53:25 -07:00
Beto DealmeidaandMaxime Beauchemin 222b79df7e Template dashboard (#5550)
* Template dashboard

* Fix MySQL test

* Model for user attributes

* Redirect to welcome dash

* Fix lint

* Add missing file

* Add migration script

* Fix lint

* Fix more lint
2018-08-07 17:39:15 -07:00
OctavianandJohn Bodley 39ff9deb57 update python3 version for testing to 3.6 (#5562)
* update python version for testing to 3.6

* CONTRIBUTING.md states pull requests should work on py27, py36+

* CONTRIBUTING.md states pull requests should work on py27 and py36
2018-08-07 13:22:19 -07:00
CongleiandChris Williams ad469c72ad Fixed the wrong icon for Source -> Table (#5574) 2018-08-06 17:27:48 -07:00
Krist WongsuphasawatandChris Williams 39acd9ff7d remove deep-equal and use _.isEqual instead (#5573) 2018-08-06 17:26:06 -07:00
Maxime Beauchemin 05d4d8a70f 0.28.0rc1 2018-08-06 16:28:45 -07:00
Maxime BeaucheminandGitHub 68ba63fcd9 Implement a React-based table editor (#5186)
* A React table editor

* addressing comments

* Fix SelectAsyncControl error on clear

* fix tests

* more corrections

* Removed <strong>
2018-08-06 15:30:13 -07:00
Krist WongsuphasawatandChris Williams aa14bac5c7 Add option for BigNumber to not start y-axis at 0 (#5552)
* Add option to not start y-axis at 0

* Update language to positive.
2018-08-06 14:32:29 -07:00
Maxime BeaucheminandGitHub b7f9dabc44 A collection of small bug fixes on master (#5561) 2018-08-06 08:36:06 -07:00
hitdemoandMaxime Beauchemin f5ad661441 remove uneccessary comma (#5564) 2018-08-04 09:20:01 -07:00
Maxime BeaucheminandGitHub 89b7ca0623 Remove function since_until_to_time_range (#5560)
It's taken care of earlier in the pipeline with legacy.update_time_range
2018-08-03 15:34:03 -07:00
Maxime BeaucheminandGitHub 9331cf79b5 [sql lab] allow EXPlAIN queries (#5558)
* [sql lab] allow EXPlAIN queries

closes https://github.com/andialbrecht/sqlparse/issues/421

* typo
2018-08-03 15:33:33 -07:00
Grace GuoandMaxime Beauchemin faf35b0daa convert position to v2 for Superset load_examples (#5515) 2018-08-03 15:28:12 -07:00
Maxime BeaucheminandGitHub 51bd17d6f6 Improve URLs for Chart and Dashboard ModelViews (#5544)
* Improve URLs for Chart and Dashboard ModelViews

Prior to this, the ModelView for Chart and Dashboard would be
at `/slicemodelview/list/` and `/dashboardmodelview/list/`.

Now we have cleaner URLs at `/chart/list/` and `/dashboard/list/`

* Fix unrelated js lint

* addressing comments
2018-08-03 12:46:48 -07:00
timifasubaaandGrace Guo 1e155663a7 permissions bug fixes (#5559) 2018-08-03 12:08:00 -07:00
Maxime BeaucheminandGitHub 8014709b1a [bugfix] time filter on dashboard view (#5546)
Charts using the old since/until time filtering form_data format would
only work in the Explore view, not on the dashboard view. This fixes
that.
2018-08-03 11:29:34 -07:00
Grace GuoandGitHub 2e2c9806b2 Reduce dashboard position_json data size (#5543) 2018-08-03 10:55:08 -07:00
Ville BrofeldtandMaxime Beauchemin e1f4db8e24 Match viz dataframe column case to form_data fields for Snowflake, Oracle and Redshift (#5487)
* Add function to fix dataframe column case

* Fix broken handle_nulls method

* Add case sensitivity option to dedup

* Refactor function definition and call location

* Remove added blank line

* Move df column rename logit to db_engine_spec

* Remove redundant variable

* Update comments in db_engine_specs

* Tie df adjustment to db_engine_spec class attribute

* Fix dedup error

* Linting

* Check for db_engine_spec attribute prior to adjustment

* Rename case sensitivity flag

* Linting

* Remove function that was moved to db_engine_specs

* Get metrics names from utils

* Remove double import and rename dedup variable
2018-08-03 09:53:56 -07:00
Jay LindquistandMaxime Beauchemin aa9b30cf55 Re-add dashboard short links (#5398)
* Re-add dashboard short links

* Make the short link available to all users
* Include filters in the short link for dashboards

* Remove duplicate key causing linter error

* Change URL Short link button into a menu item with Modal

* Split out tests, bind URL short link in constructor
2018-08-03 09:22:39 -07:00
ekasitkandMaxime Beauchemin 0aff8659d8 Add Thailand country map (#5554) 2018-08-03 08:15:38 -07:00
Krist WongsuphasawatandGrace Guo 9d95c4cc32 remove js packages that are not referenced in js code (#5514) 2018-08-02 11:45:58 -07:00
Nuno BeiresandMaxime Beauchemin 0786913fa6 Portuguese translation (#4874)
* Create message.po

* Add files via upload

* Update config.py

* Update config.py

* portuguese translation - messages.json

po2json

* Update message.po

* Add files via upload

* Add files via upload
2018-08-02 11:00:31 -07:00
Maxime BeaucheminandGitHub fe6846b8db [sql lab] simplify the visualize flow (#5523)
* [sql lab] simplify the visualize flow

The "visualize flow" linking SQL Lab to the "explore view" has never
worked so great for people, here's a list of issues:

* it's not really clear to users that their query is wrapped as a
subquery, and the explore view runs queries on top of it

* lint + fix tests

* Addressing comments
2018-08-02 10:52:38 -07:00
Krist WongsuphasawatandChris Williams 1b9e5d4174 Update BigNumber design (#5469)
support toggling trend line

experiment using svg to measure size instead of canvas

refactor BigNumber with chart sticked to the bottom

made header line stick to bottom and css adjustment

remove commented code

fix svg text size estimation

remove unused code and round dimensions

handle missing getbbox

remove vx/text from dependency

ensure svg deletion after measurement

add comment to css file.

Add `positive` and `negative` class based on diff.

Add default props.

rename variable

accept container as argument and remove redundant font family

refactor visutils for consistent api

update xy-chart

update xy-chart to alpha1.0

fix pointseries

remove points

update yarn.lock

[4c9c01d7] update xy-chart version

remove unused import
2018-08-02 10:34:36 -07:00
Ville BrofeldtandMaxime Beauchemin 906dcd84a9 Replace metadata refresh stacktrace with danger flash (#5536)
* Replace stacktrace with danger flash

* Group successful and failed refreshes and fix typos

* Fix linting
2018-08-01 23:10:47 -07:00
timifasubaaandGitHub 4bf69a7260 fix superset error message flow (#5540) 2018-08-01 15:36:58 -07:00
Jeffrey WangandMaxime Beauchemin 1a9c4592dc Include README in MANIFEST (#5531) 2018-08-01 15:07:53 -07:00
JamshedRahmanandGrace Guo 9831730351 Annotation Styles for Time Series Annotations (#5437) 2018-08-01 11:54:03 -07:00
michellethomasandJohn Bodley b564aa43dc Stop pretty printing dashboard json (#5538) 2018-08-01 11:26:02 -07:00
John BodleyandGitHub e52518c3cd [ad-hoc filters] Remove legacy split in /explore (#5533) 2018-08-01 09:21:15 -07:00
John BodleyandGitHub e7d05127d1 [get_df] Updating multi-statement logic (#5517) 2018-07-31 14:52:03 -07:00
michellethomasandJohn Bodley 8c822f1e9b Adding 364 days to time compare option (#5521) 2018-07-31 14:49:13 -07:00
John BodleyandGitHub 47e3c41f5e [ad-hoc filters] Fixing issue with legacy filters (#5525) 2018-07-31 13:52:20 -07:00
Beto DealmeidaandMaxime Beauchemin 2d8101b05f Fix time shift (#5529)
* Fix freeform multi select control

* Improve old code

* Fix lint
2018-07-31 13:26:06 -07:00
Ville BrofeldtandMaxime Beauchemin c1e6c68a3e Add time grain blacklist and addons to config.py (#5380)
* Add interim grains

* Refactor and add blacklist

* Change PT30M to PT0.5H

* Linting

* Linting

* Add time grain addons to config.py and refactor engine spec logic

* Remove redundant import and clean up config.py

* Fix bad rebase

* Implement changes proposed by @betodealmeida

* Revert removal of name from Grain

* Linting
2018-07-30 23:44:30 -07:00
The AlchemistandMaxime Beauchemin 37c9b0b119 added clickhouse as supported db (#5522)
I believe clickhouse is supported now since #1844 was merged
2018-07-30 23:34:43 -07:00
timifasubaaandGitHub 9e67445c68 hotfix - pass link not error message (#5512)
* hotfix - pass link not error message

* nit
2018-07-30 15:29:36 -07:00
Jeffrey WangandGrace Guo b77d6e9cb1 Set max width for tooltips (#5504) 2018-07-30 11:03:42 -07:00
Vishal JagtapandMaxime Beauchemin 8fd8d73613 Fixed the issue of Zambia country map. (#5516)
- Previously after selecting option, got error "Uncaught TypeError: Cannot read property 'length' of undefined"
- Updated the appropriate geojson.
2018-07-30 09:15:32 -07:00
timifasubaaandGitHub 3b6cafc82f allow security manager provide error message (#5500) 2018-07-27 14:39:25 -07:00
Grace GuoandGitHub daf21169ca set default layout for new added charts (#5425) 2018-07-27 11:59:32 -07:00
Vishal JagtapandMaxime Beauchemin d373178451 Added India in country map visualizaion. (#5459)
- Added option to select "India".
- Added india.geojson upto state level.
2018-07-27 09:50:02 -07:00
mmuruandMaxime Beauchemin 213fb649e6 Fix 5479 - unicode columns issue. (#5508) 2018-07-27 09:49:08 -07:00
Maxime BeaucheminandGitHub cd55998d63 Improve hive/pyhive error message regex (#5502) 2018-07-27 08:31:37 -07:00
Grace GuoandGitHub 723bbe46e2 Remove dashboard transition related config (#5505) 2018-07-26 22:30:29 -07:00
Maxime BeaucheminandGitHub 6f87552bc2 [sqllab] fix unexpected keyword argument 'ignore_nan' (#5490) 2018-07-26 15:20:48 -07:00
Maxime BeaucheminandGitHub 94cb20cf96 Apply SQL_QUERY_MUTATOR to explore & dashboard (#5493)
* Apply SQL_QUERY_MUTATOR kn explore & dashboard

* Add unit test
2018-07-26 15:20:23 -07:00
Maxime BeaucheminandGitHub e22fcb9abf [sql lab] fix Hive 'Transport' not open issue (#5494) 2018-07-26 15:18:49 -07:00
Maxime BeaucheminandGitHub 41286b7545 [sql lab] extract Hive error messages (#5495)
* [sql lab] extract Hive error messages

So pyhive returns an exception object with a stringified thrift error
object. This PR uses a regex to extract the errorMessage portion of that
string.

* Unit test
2018-07-26 15:17:55 -07:00
JamshedRahmanandMaxime Beauchemin 54fba0f39c Visualization Unicode bug fix (#5387)
* Visualization Unicode bug fix

* Fix the build (#5403)

The travis build has been failing for 2 reasons recently
* pylint takes > 10 minutes without outputing
* bad merge confict auto resolve in controls.jsx

* Visualization Unicode bug fix
2018-07-26 13:18:35 -07:00
Grace GuoandGitHub 7ff02c0050 [migration] bug fix in dashboard migration (bebcf3fed1fe_) (#5497)
fix a bug in handle empty rows
2018-07-26 13:15:09 -07:00
YoonandMaxime Beauchemin 3df82d9da6 Modify Athena connection description (#5492) 2018-07-25 23:12:14 -07:00
Beto DealmeidaandMaxime Beauchemin dfb6147715 Remove is-react dep (#5478) 2018-07-25 11:02:50 -07:00
Grace GuoandGitHub 3f2fc8f413 retire dashboard v1 (js and python) (#5418) 2018-07-24 15:23:30 -07:00
Grace GuoandGitHub fd2d4b0e58 Migrate dashboard positions data from v1 to v2 format (#5463)
* Migrate dashboard positions data from v1 to v2 format

* UPDATING.md

* rebase onto master
2018-07-24 15:14:11 -07:00
John BodleyandGrace Guo bfcc3a633b [migration] Fix migration 3dda56f1c (#5471) 2018-07-24 14:05:00 -07:00
timifasubaaandGrace Guo bea0a0aa15 fix migration 3dda56f1c (#5468)
* fix migration 3dda56f1c

* add isodate to setup.py:
2018-07-23 16:27:41 -07:00
Maxime BeaucheminandGitHub fee5023269 Move flake8-related packages deps to reqs-dev.txt (#5460)
* Move flake8-related packages deps to reqs-dev.txt

My VIM which is integrated with flake8 wouldn't match the output from
travis and would often miss things related to the flake8 plugins
installed using Tox.

By moving this to requirements-dev.txt, we can expect developers would
have the proper configuration locally and get matching results with
Travis when running flake8 or in their IDEs if its integrated with
flake8..

* merging migratinos

* sorting packages

* Specify folder for flake8 processing

* pin pycodestyle==2.3.1

* merge db migrations
2018-07-23 12:29:21 -07:00
Maxime BeaucheminandGitHub a11e47f694 Add row_limit control to line chart (#5426)
Somehow it's not possible to set the row_limit for a line chart,
resulting to a 10k cap in our environment. In some cases the user may
want more than that.
2018-07-23 11:54:12 -07:00
Ville BrofeldtandMaxime Beauchemin a165aec822 Fix broken dedup and remove redundant db_spec logic (#5467)
* Fix broken dedup and remove redundant db_spec logic

* Add test case
2018-07-23 10:41:38 -07:00
Maxime BeaucheminandGitHub 971e9f0993 Fix the build by merging both db migrations heads (#5464) 2018-07-23 09:43:09 -07:00
John BodleyandGitHub 7fcc2af68f [sql] Correct SQL parameter formatting (#5178) 2018-07-21 12:01:26 -07:00
Maxime BeaucheminandGitHub 6e7b5879be Clarify title when importing a table (#5454)
The flow to import a table definition in Superset is confusing, user may
think they are creating a table or what not. This makes the flow a bit
more clear.
2018-07-21 10:39:41 -07:00
GeorgeandMaxime Beauchemin 0d5443e392 Add week granularity for Clickhouse (#5455) 2018-07-21 09:53:21 -07:00
Andre LesaandMaxime Beauchemin c545fdf589 Added Zambia geojson up to district level. (#5436) 2018-07-20 15:46:41 -07:00
gbates101andMaxime Beauchemin 90decbc5db Migrated to click (#5410)
* Migrate flask_script to the Flask built-in click.

Flask 0.11 is the built-in integration of the click command line interface.
Flask-Migrate support for the new Flask CLI based on Click after Release 2.0.0.

* Resolved merge conflicts.

* Fixed issue introduced from bad merge.

* Fixed flake8 errors, added build to excluded flake8 stuff.

* * Moved the FlaskGroup declaration to the driver script.
* Moved shell context definition to cli.py
* Switched shell context definition to use decorator.
* Moved create_app definition to cli.py
* Fixed InvocationError with a wrapped function

* Added extra newlines between functions

* Removed flask-script dependency.
2018-07-20 15:26:33 -07:00
Ville BrofeldtandMaxime Beauchemin 670b145b1e Add Snowflake connection string instructions (#5443) 2018-07-20 15:19:18 -07:00
Beto DealmeidaandMaxime Beauchemin 83e1e2c0fe Time filter fixes (#5448)
* Fixes for the new time filter

* Fix dashboard

* Trigger tests
2018-07-20 15:15:33 -07:00
timifasubaaandGitHub 41447e8b3b remove limiting at the display level (#5413) 2018-07-19 17:36:03 -07:00
Vishal Jagtapandtimifasubaa 6441f69271 Typo fixes in viz.py and CONTRIBUTING.md (#5432) 2018-07-19 16:45:56 -07:00
Maxime BeaucheminandGitHub 99ce7b79fa Add pylint back as a tox env (#5416) 2018-07-18 15:55:01 -07:00
Maxime BeaucheminandGitHub 5be0e69d1b Avoid expensive select_star on dashboard bootstrap data (#5424)
The dashboard page bootstrap data currently attempts to generate the
`SELECT` statement with column name details for each table represented
in the dash. This means it calls the database(s) and waits for column
details prior to returning any HTML.

This makes the default select_star property generate a simple
`SELECT *` with no column details instead, which doesn't require
interogating the DBs.
2018-07-18 15:54:47 -07:00
Vishal JagtapandMaxime Beauchemin b0b04b319b Fixed typos in currently modified files (#5419) 2018-07-18 08:32:47 -07:00
timifasubaaandGitHub 7f8eaee18d allow selection of dbs where csv can be uploaded to (#5393) 2018-07-17 15:38:16 -07:00
Maxime BeaucheminandGitHub 73ec526913 Fix db migration 3dda56f1c4c6 (#5415) 2018-07-17 15:30:18 -07:00
Chris WilliamsandGitHub 8b7aaec19d [webpack 4] third time's the charm ;) (#5370)
* [perf] add webpack 4 + SplitChunks + lazy load visualizations (#5240)

* [webpack] setup lazy loading for all visualizations

* [lazy-load] push renderVis function to <Chart /> state

* no mapbox token

* [lazy loading] use native webpack import func to fix chunk names, add babel-plugin-syntax-dynamic-import, fix rebase bug.

* fix geojson import, undefined t, and fix async css bug

* [lazy load] actually add babel-plugin-syntax-dynamic-import

* [webpack] working dev version of webpack v4

* [webpack 4] fix url issues, use mini-css-extract-plugin and webpack-assets-manifest plugins

* [webpack 4] use splitchunks for all files, update templates to multi-file entrypoints

* [webpack 4] multiple theme entry files for markup vis css, don't uglify mapbox

* [webpack 4] lint python manifest changes, update yarn lock.

* [webpack 4] fix tests with babel-plugin-dynamic-import-node

* [webpack 4] only use 'dynamic-import-node' plugin in tests, update <Chart /> vis promise when vis type changes

* [webpack 4] clean up package.json and yarn.lock after rebase

* [webpack 4] lint?

* [webpack 4] lint for real

* [webpack 4][istanbul] ignore visualizations/index.js

* [webpack 4] fix rebase bug, update dashboard/deprecated/chart/Chart.jsx to use vis promises.

* [webpack 4] lint and test

* [webpack 4] yarn.lock
2018-07-17 13:55:03 -07:00
Beto DealmeidaandMaxime Beauchemin 75cf5e198f Fix time filter in dashboard v2 (#5412) 2018-07-17 13:38:33 -07:00
Chris WilliamsandGitHub 7670e0c565 allow 7 tabs, remove 'slice_' prefix in logs (#5411) 2018-07-17 13:20:19 -07:00
Beto DealmeidaandMaxime Beauchemin 7b4e6c7455 Time shift difference (#5177)
* Allow different comparisons when using time shift

* Remove test code

* Remove lead/trail NaN and improve code

* Add headers/subheader

* Update yarn

* Migration script

* Fix migration

* Small fixes

* Trigger tests

* Fix lint

* Fix javascript
2018-07-16 16:30:11 -07:00
timifasubaaandGitHub f8a6e09220 [sqllab] Fix sqllab limit regex issue with sqlparse (#5295)
* include items after limit to the modified query

* use sqlparse
2018-07-16 15:27:30 -07:00
Beto DealmeidaandMaxime Beauchemin c445ef8c43 Explore to SQL Lab (#5101)
* WIP

* Working version

* Clean code

* Fix lint

* Fix unit test; show only for sqla

* Working on UX

* Dropdown working 66%

* Working but needs CSS

* Fixed table

* Fix lint

* Fix unit test

* Fix languages path

* Fixes

* Fix Javascript lint
2018-07-16 15:00:48 -07:00
Maxime BeaucheminandGitHub 48317fd8f9 [big_number] tooltip shows in the wrong place (#5404) 2018-07-16 14:59:14 -07:00
Beto DealmeidaandMaxime Beauchemin 4fa416347d Make time filter more usable (#4981)
* Initial work

* WIP

* WIP

* Working

* WIP

* Still WIP

* Frontend done

* Working version

* Migration working

* Migration working

* Fix freeform rerender

* Remove jquery

* Fix filter

* Unit tests and lint

* Fix py.test

* Improve unit tests

* Ensure freeform is computed at init

* Fix lint

* Trying to fix pyfreeze error

* Remove freezegun

* Address comments

* Use tabs instead of pills

* Regroup options

* WIP

* Change type when clicking calendar

* Fix CSS

* Fix JS lint
2018-07-16 14:27:40 -07:00
Grace GuoandGitHub 0d10cc569d [Table Viz] columns not match with group_by control (#5329) 2018-07-16 14:06:29 -07:00
Maxime BeaucheminandGitHub 709f056445 [bugfix] make MetricsControl work with DECK visualizations (#5376)
* [bugfix] make MetricsControl work with DECK visualizations

* Add unit tests
2018-07-16 13:42:07 -07:00
Hugh A. Miles IIandGitHub e79bb92a40 Add IS NOT NULL and IS NULL as filter options (#5375)
* wip

* disable value selector on IS NOT NULL or NOT NULL

* remove this
2018-07-16 13:29:55 -07:00
Maxime BeaucheminandGitHub 996304aba9 Make Pypi upload support markdown (#5352)
Moving to using Twine to upload to pypi and fixing up the markdown
support so that the page on Pypi looks like the README on Github.

This has been tested on the 0.26 branch starting 0.26.3
2018-07-16 12:27:57 -07:00
Ville Brofeldtandtimifasubaa bd475879a4 Fix display limit in sql lab (#5392)
* Fix display limit in sql lab

* Add redundant variable from config.py

* Fix test config

* Change to SQL_MAX_ROW

* Remove last remaining occurence of DISPLAY_SQL_MAX_ROW
2018-07-16 11:58:21 -07:00
Maxime Beaucheminandtimifasubaa 2eeff2ae0b Fix the build (#5403)
The travis build has been failing for 2 reasons recently
* pylint takes > 10 minutes without outputing
* bad merge confict auto resolve in controls.jsx
2018-07-16 11:46:13 -07:00
timifasubaaandGitHub 22b7c2db62 quote hive column names (#5368) 2018-07-13 15:51:16 -07:00
Chris WilliamsandGitHub 19ac6e1231 get rid of global notify (#5355)
* [toasts] get rid of notify globals, refactor messageToasts for use by entire app

* [remove notify] use arrow func in ajax call

* fix lint + tests

* actually fix tests from messageToast refactor

* add 'test:one' npm script

* debugger

* [toasts] convert bootstrap flash messages to toasts in explore + sqllab

* [toasts][tests] import from right file
2018-07-12 11:50:25 -07:00
Maxime BeaucheminandGitHub f9352af80e [pie] improvements to pie charts (#5236)
Pie chart was using `limit` instead of `row_limit` which didn't work.

Also set a lower default limit to 25 to prevent the chart from getting
super crowded.

Unrelated drive-by fix of setting "percentage metric" to default to `[]`
2018-07-12 10:33:11 -04:00
Maxime BeaucheminandGitHub 0ca426a6fa Set control 'percent_metrics's default to [] (#5357) 2018-07-12 10:32:00 -04:00
JamshedRahmanandMaxime Beauchemin cafde1536f Adding Druid Time Granularities (#5379)
* Adding Druid Time Granularities

* fixed a linter error
2018-07-12 10:19:50 -04:00
Hugh A. Miles IIandMaxime Beauchemin cd2414b19e Set ignore NaN as true for TableViz (#5371)
* set ignore NaN as true for TableViz

* linting
2018-07-11 11:20:45 -04:00
Grace GuoandGitHub 6b15592dd0 [dashboard] should use forceV2Edit property name (#5362) 2018-07-08 22:11:24 -07:00
Grace GuoandGitHub a17f7141b7 [dashboard] Fix save issue at Force_V2_Edit mode (#5360) 2018-07-06 20:52:56 -07:00
Maxime BeaucheminandGitHub 7222c6f0f2 CHANGELOG entry for 0.25.0 to 0.26.0 (#5334) 2018-07-06 21:49:49 -04:00
timifasubaaandGitHub 28ba5a9ddb use schema form field in upload csv (#5303) 2018-07-06 09:46:53 -07:00
John BodleyandGitHub c1187e0eaa [cache] Adding description for a zero cache timeout (#5354) 2018-07-06 09:24:21 -07:00
Yu XiaoandMaxime Beauchemin 7158fb1e9d added a 'no_trend_line' option (#5356)
* added a 'no_trend_line' option

* added missing comma
2018-07-06 10:09:25 -04:00
aaronbanninandMaxime Beauchemin 252cba20de impala support for epoch timestamps (#5349) 2018-07-04 19:25:58 -04:00
EvelynTurnerandMaxime Beauchemin ad9103f5ba [Bug fix] Divide by 1000.000 in epoch_ms_to_dttm() to not lose precision in Presto (#5211)
* Fix how the annotation layer interpretes the timestamp string without timezone info; use it as UTC

* [Bug fix] Fixed/Refactored annotation layer code so that non-timeseries annotations are applied based on the updated chart object after adding all data

* [Bug fix] Fixed/Refactored annotation layer code so that non-timeseries annotations are applied based on the updated chart object after adding all data

* Fixed indentation

* Fix the key string value in case series.key is a string

* Fix the key string value in case series.key is a string

* [Bug fix] Divide by 1000.000 in epoch_ms_to_dttm() to not lose precision in Presto

* [Bug fix] Divide by 1000.000 in epoch_ms_to_dttm() to not lose precision in Presto
2018-07-04 19:19:57 -04:00
Ville BrofeldtandMaxime Beauchemin 6fee0587ee Implement rolling api introduced in pandas 0.18 (#5328)
* Implement new rolling api introduced in pandas 0.18

* Bump pandas to 0.23.1

* Add 0.18 requirement in setup.py

* Require >=0.18.0, not just 0.18
2018-07-04 18:04:57 -04:00
Minh MaiandMaxime Beauchemin 059b64dad7 normalize column names for Redshift (#5337) 2018-07-04 17:30:37 -04:00
Riccardo MagliocchettiandMaxime Beauchemin 81bd5cc4c3 A couple of setup.py fixes (#5338)
* setup: fix long description read in python2

* setup: fix git_get_sha in python3

Fix #5317
2018-07-04 17:04:39 -04:00
Zachary FriedmanandMaxime Beauchemin 976e815a6e RST formatting fix for Installation docs (#5346) 2018-07-04 17:03:41 -04:00
Zachary FriedmanandMaxime Beauchemin 6f4a2e3505 Fix typo in Start with Docker (#5348) 2018-07-04 17:02:03 -04:00
John BodleyandGitHub 72d815c0f9 [cache] Allowing zero cache-timeout (#5315) 2018-07-02 15:32:21 -07:00
Maxime BeaucheminandGrace Guo 16d26336c4 Fix flaky unit test - remove 'Markup' object in data (#5313)
example of the failed test
https://travis-ci.org/apache/incubator-superset/jobs/397891630
2018-07-01 20:13:37 -07:00
Maxime BeaucheminandGitHub 885d7791a0 [bugfix] README encoding-related UnicodeDecodeError on setup.py (#5309)
Seeing UnicodeDecodeError on our build system running py3.6, though I
couldn't reproduce on my local 3.6. This fix addresses the issue.
2018-07-01 08:57:14 -07:00
fly-high-bjandMaxime Beauchemin bfa9ffff3c Update core.py (#5320)
With Python 3.7.0, 'async' and 'await' become reserved words, which cause invalid syntax error when running core.py. Renamed 'async' var to 'async_'
2018-07-01 08:49:56 -07:00
Grace GuoandMaxime Beauchemin ad05700b6b [dashboard fix]Fix copy_dash unit test (#5323) 2018-07-01 08:47:57 -07:00
Hugh A. Miles IIandGitHub 089037f1aa [DeckGL] Raise error with null values (#5302)
* raise errors with null values

* linting

* linting some more

* use get

* change ordering

* linting
2018-06-30 16:07:23 -07:00
Kshira SaagarandMaxime Beauchemin df5ce50e80 Adding THE ICONIC to the list (#5305)
Adding THE ICONIC to list of companies using Superset. Big fans of Superset and use it for all our operational reporting!
2018-06-28 09:58:56 -07:00
Maxime BeaucheminandGitHub 777d876a52 Improve database type inference (#4724)
* Improve database type inference

Python's DBAPI isn't super clear and homogeneous on the
cursor.description specification, and this PR attempts to improve
inferring the datatypes returned in the cursor.

This work started around Presto's TIMESTAMP type being mishandled as
string as the database driver (pyhive) returns it as a string. The work
here fixes this bug and does a better job at inferring MySQL and Presto types.
It also creates a new method in db_engine_specs allowing for other
databases engines to implement and become more precise on type-inference
as needed.

* Fixing tests

* Adressing comments

* Using infer_objects

* Removing faulty line

* Addressing PrestoSpec redundant method comment

* Fix rebase issue

* Fix tests
2018-06-27 21:35:12 -07:00
Chris WilliamsandGrace Guo 04fc1d1089 [dashboard v2] add MissingChart component in the case that chart component has no slice definition, add tests. (#5296) 2018-06-27 11:20:10 -07:00
Grace GuoandGitHub 17b4298401 [dashobard fix]: fix validation check for default_filters (#5297) 2018-06-27 11:00:50 -07:00
John BodleyandGitHub 117507cf31 [get_df] Fix datetime conversion (#5274) 2018-06-27 09:09:42 -07:00
Jeffrey WangandMaxime Beauchemin fb988fee2e Pin boto3 to 1.4.7 (#5290) 2018-06-27 08:55:47 -07:00
Grace GuoandGitHub 4ee984c6de [dashboard fix] force refresh charts under tabs (#5291) 2018-06-26 17:46:28 -07:00
Chris WilliamsandGitHub 05a39b395a fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border (#5293)
* fix sqllab <Loading /> css, fix double AddSliceCard margin and drag border

* [dashboard v2] improve cached visual indicator, add last fetched messaging

* [dashboard v2] fix ctrl + cmd + z + UndoRedoKeylisteners
2018-06-26 16:47:41 -07:00
timifasubaaandGitHub b0eee129e9 add more precise types to hive table from csv (#5267) 2018-06-25 16:12:01 -07:00
timifasubaaandGitHub bd24f854c9 specify hve namespace for tables (#5268) 2018-06-25 12:04:27 -07:00
Chris WilliamsandGitHub c065319508 [wip] dashboard builder v2 (#4528)
* [dashboard builder] Add dir structure for dashboard/v2, simplified Header, split pane, Draggable side panel

[grid] add <DashboardGrid />, <ResizableContainer />, and initial grid components.

[grid] gridComponents/ directory, add fixtures/ directory and test layout, add <Column />

[grid] working grid with gutters

[grid] design tweaks and polish, add <Tabs />

[header] add gradient header logo and favicon

[dnd] begin adding dnd functionality

[dnd] add util/isValidChild.js

[react-beautiful-dnd] iterate on dnd until blocked

[dnd] refactor to use react-dnd

[react-dnd] refactor to use composable <DashboardComponent /> structure

[dnd] factor out DashboardComponent, let components render dropInidcator and set draggableRef, add draggable tabs

[dnd] refactor to use redux, add DashboardComponent and DashboardGrid containers

[dragdroppable] rename horizontal/vertical => row/column

[builder] refactor into HoverMenu, add WithPopoverMenu

[builder] add editable header and disableDragDrop prop for Dragdroppable's

[builder] make tabs editable

[builder] add generic popover dropdown and header row style editability

[builder] add hover rowStyle dropdown, make row styles editable

[builder] add some new component icons, add popover with delete to charts

[builder] add preview icons, add popover menu to rows.

[builder] add IconButton and RowStyleDropdown

[resizable] use ResizableContainer instead of DimensionProvider, fix resize and delete bugs

[builder] fix bug with spacer

[builder] clean up, header.size => header.headerSize

[builder] support more drag/drop combinations by wrapping some components in rows upon drop. fix within list drop index. refactor some utils.

[builder][tabs] fix broken add tab button

[dashboard builder] don't pass dashboard layout to all dashboard components, improve drop indicator logic, fix delete component pure component bug

[dnd] refactor drop position logic

* fix rebase error, clean up css organization and use @less vars

* [dashboard-builder] add top-level tabs + undo-redo (#4626)

* [top-level-tabs] initial working version of top-level tabs

* [top-level-tabs] simplify redux and disable ability to displace top-level tabs with other tabs

* [top-level-tabs] improve tab drag and drop css

* [undo-redo] add redux undo redo

* [dnd] clean up dropResult shape, add new component source id + type, use css for drop indicator instead of styles and fix tab indicators.

* [top-level-tabs] add 'Collapse tab content' to delete tabs button

* [dnd] add depth validation to drag and drop logic

* [dashboard-builder] add resize action, enforce minimum width of columns, column children inherit column size when necessary, meta.rowStyle => meta.background, add background to columns

* [dashboard-builder] make sure getChildWidth returns a number

* [dashboard builder] static layout + toasts (#4763)

* [dashboard-builder] remove spacer component

* [dashboard-builder] better transparent indicator, better grid gutter logic, no dragging top-level tabs, headers are multiples of grid unit, fix row height granularity, update redux state key dashboard => dashboardLayout

* [dashboard-builder] don't blast column child dimensions on resize

* [dashboard-builder] ResizableContainer min size can't be smaller than size, fix row style, role=none on WithPopoverMenu container

* [edit mode] add edit mode to redux and propogate to all <DashboardComponent />s

* [toasts] add Toast component, ToastPresenter container and component, and toast redux actions + reducers

* [dashboard-builder] add info toast when dropResult overflows parent

* [dashboard builder] git mv to src/ post-rebase

* Dashboard builder rebased + linted (#4849)

* define dashboard redux state

* update dashboard state reducer

* dashboard layout converter + grid render

* builder pane + slice adder

* Dashboard header + slice header controls

* fix linting

* 2nd code review comments

* [dashboard builder] improve perf (#4855)

* address major perf + css issues

[dashboard builder] fix dashboard filters and some css

[dashboard builder] use VIZ_TYPES, move stricter .eslintrc to dashboard/, more css fixes

[builder] delete GridCell and GridLayout, remove some unused css. fix broken tabs.

* [builder] fix errors post-rebase

* [builder] add support for custom DragDroppable drag layer and add AddSliceDragPreview

* [AddSliceDragPreview] fix type check

* [dashboard builder] add prettier and update all files

* [dashboard builder] merge v2/ directory int dashboard/

* [dashboard builder] move component/*Container => containers/*

* add sticky tabs + sidepane, better tabs perf, better container hierarchy, better chart header (#4893)

* dashboard header, slice header UI improvement

* add slider and sticky

* dashboard header, slice header UI improvement

* make builder pane floating

* [dashboard builder] add sticky top-level tabs, refactor for performant tabs

* [dashboard builder] visually distinct containers, icons for undo-redo, fix some isValidChild bugs

* [dashboard builder] better undo redo <> save changes state, notify upon reaching undo limit

* [dashboard builder] hook up edit + create component actions to saved-state pop.

* [dashboard builder] visual refinement, refactor Dashboard header content and updates into layout for undo-redo, refactor save dashboard modal to use toasts instead of notify.

* [dashboard builder] refactor chart name update logic to use layout for undo redo, save slice name changes on dashboard save

* add slider and sticky

* [dashboard builder] fix layout converter slice_id + chartId type casting, don't change grid size upon edit (perf)

* [dashboard builder] don't set version key in getInitialState

* [dashboard builder] make top level tabs addition/removal undoable, fix double sticky tabs + side panel.

* [dashboard builder] fix sticky tabs offset bug

* [dashboard builder] fix drag preview width, css polish, fix rebase issue

* [dashboard builder] fix side pane labels and hove z-index

* Markdown for dashboard (#4962)

* fix dashboard server-side unit tests (#5009)

* Dashboard save button (#4979)

* save button

* fix slices list height

* save custom css

* merge save-dash changes from dashboard v1
https://github.com/apache/incubator-superset/pull/4900
https://github.com/apache/incubator-superset/pull/5051

* [dashboard v2] check for default_filters before json_loads-ing them (#5064)

[dashboard v2] check for default_filters before json-loads-ing them

* [dashboard v2] fix bugs from rebase

* [dashboard v2] tests! (#5066)

* [dashboard v2][tests] add tests for newComponentFactory, isValidChild, dropOverflowsParent, and dnd-reorder

* [dashboard v2][tests] add tests for componentIsResizable, findParentId, getChartIdsFromLayout, newEntitiesFromDrop, and getDropPosition

* [dashboard v2][tests] add mockStore, mockState, and tests for DragDroppable, DashboardBuilder, DashboardGrid, ToastPresenter, and Toast

* [dashboard builder][tests] separate files for state tree fixtures, add ChartHolder, Chart, Divider, Header, Row tests and WithDragDropContext helper

* [dashboard v2][tests] fix dragdrop context with util/getDragDropManager, add test for menu/* and resizable/*, and new components

* [dashboard v2][tests] fix and re-write Dashboard tests, add getFormDataWithExtraFilters_spec

* [dashboard v2][tests] add reducer tests, fix lint error

* [dashboard-v2][tests] add actions/dashboardLayout_spec

* [dashboard v2] fix some prop bugs, open side pane on edit, fix slice name bug

* [dashboard v2] fix slice name save bug

* [dashboard v2] fix lint errors

* [dashboard v2] fix filters bug and add test

* [dashboard v2] fix getFormDataWithExtraFilters_spec

* [dashboard v2] logging updates (#5087)

* [dashboard v2] initial logging refactor

* [dashboard v2] clean up logger

* [logger] update explore with new log events, add refresh dashboard + refresh dashboard chart actions

* [logging] add logger_spec.js, fix reducers/dashboardState_spec + gridComponents/Chart_spec

* [dashboard v2][logging] refactor for bulk logging in python

* [logging] tweak python, fix and remove dup start_offset entries

* [dashboard v2][logging] add dashboard_first_load event

* [dashboard v2][logging] add slice_ids to dashboard pane load event

* [tests] fix npm test script

* Fix: update slices list when add/remove multiple slices (#5138)

* [dashboard v2] add v1 switch (#5126)

* [dashboard] copy all dashboard v1 into working v1 switch

* [dashboard] add functional v1 <> v2 switch with messaging

* [dashboard] add v2 logging to v1 dashboard, add read-v2-changes link, add client logging to track v1 <> v2 switches

* [dashboard] Remove default values for feedback url + v2 auto convert date

* [dashboard v2] fix misc UI/UX issues

* [dashboard v2] fix Markdown persistance issues and css, fix copy dash title, don't enforce shallow hovering with drop indicator

* [dashboard v2] improve non-shallow drop target UX, fix Markdown drop indicator, clarify slice adder filter/sort

* [dashboard v2] delete empty rows on drag or delete events that leave them without children, add test

* [dashboard v2] improve v1<>v2 switch modals, add convert to v2 badge in v1, fix unsaved changes issue in preview mode, don't auto convert column child widths for now

* [dashboard v2][dnd] add drop position cache to fix non-shallow drops

* [dashboard] fix test script with glob instead of recurse, fix tests, add temp fix for tab nesting, ignore v1 lint errors

* [dashboard] v2 badge style tweaks, add back v1 _set_dash_metadata for v1 editing

* [dashboard] fix python linting and tests

* [dashboard] lint tests

* add slice from explore view (#5141)

* Fix dashboard position row data (#5131)

* add slice_name to markdown

(cherry picked from commit 14b01f1)

* set min grid width be 1 column

* remove empty column

* check total columns count <= 12

* scan position data and fix rows

* fix dashboard url with default_filters

* [dashboard v2]  better grid drop ux, fix tab bugs 🐛 (#5151)

* [dashboard v2] add empty droptarget to dashboard grid for better ux and update test

* [dashboard] reset tab index upon top-level tab deletion, fix findparentid bug

* [dashboard] update v1<>v2 modal link for tracking

* Fix: Should pass slice_can_edit flag down (#5159)

* [dash builder fix] combine markdown and slice name, slice picker height (#5165)

* combine markdown code and markdown slice name

* allow dynamic height for slice picker cell

* add word break for long datasource name

* [fix] new dashboard state (#5213)

* [dashboard v2] ui + ux fixes (#5208)

* [dashboard v2] use <Loading /> throughout, small loading gif, improve row/column visual hierarchy, add cached data pop

* [dashboard v2] lots of polish

* [dashboard v2] remove markdown padding on edit, more opaque slice drag preview, unsavedChanges=true upon moving a component, fix initial load logging.

* [dashboard v2] gray loading.gif, sticky header, undo/redo keyboard shortcuts, fix move component saved changes update, v0 double scrollbar fix

* [dashboard v2] move UndoRedoKeylisteners into Header, render only in edit mode, show visual feedback for keyboard shortcut, hide hover menu in top-level tabs

* [dashboard v2] fix grid + sidepane height issues

* [dashboard v2] add auto-resize functionality, update tests. cache findParentId results.

* [dashboard v2][tests] add getDetailedComponentWidth_spec.js

* [dashboard v2] fix lint

* [fix] layout converter fix (#5218)

* [fix] layout converter fix

* add changed_on into initial sliceEntity data

* add unit tests for SliceAdder component

* remove old fixtures file

* [dashboard v2] remove webpack-cli, fresh yarn.lock post-rebase

* [dashboard v2] lint javascript

* [dashboard v2] fix python tests

* [Fix] import/export dash in V2 (#5273)

* [dashboard v2] add markdown tests (#5275)

* [dashboard v2] add Markdown tests

* [dashboard v2][mocks] fix markdown mock
2018-06-25 09:17:22 -07:00
John BodleyandGitHub ca5cc672ca [metric] Fixing ad-hoc metric for dual-line chart (#5271) 2018-06-22 14:31:43 -07:00
John BodleyandGitHub 7de50238a4 [druid] Adding verbose_name to editable columns (#5249) 2018-06-21 22:15:06 -07:00
Hugh A. Miles IIandMaxime Beauchemin d4672dbfb7 make sure there is a val to be set for existing filters (#5257) 2018-06-21 22:00:50 -07:00
Maxime BeaucheminandGitHub e1618ddddb Fix edge case around NaN values (#4964) 2018-06-21 18:10:04 -07:00
Maxime BeaucheminandGitHub b344056932 [bugfix] add support for numeric nodes in Sankey (#5154)
* [bugfix] add support for numeric nodes in Sankey

closes https://github.com/apache/incubator-superset/issues/5142

* lint
2018-06-21 18:09:08 -07:00
Maxime BeaucheminandGitHub 5a716e9925 [bugfix] get word_cloud to support complex metrics (#5248) 2018-06-21 18:04:56 -07:00
Gabe LyonsandMaxime Beauchemin 2f274328ed fixing regex displaying as undefined in the pill (#5266) 2018-06-21 18:01:31 -07:00
Maxime BeaucheminandGitHub 73295f25a3 Bump pydruid to 0.4.4 (#5262) 2018-06-21 17:42:44 -07:00
timifasubaaandGitHub 0e5293b9be Update db_engine_specs.py (#5264) 2018-06-21 16:01:34 -07:00
Chris WilliamsandGitHub 15c8e5bfa9 [timeseries table] use verbose date in tooltip by default (#5263) 2018-06-21 13:34:49 -07:00
michellethomasandGrace Guo eb676519ba Moving homogenize_types to after no data exception (#5214) 2018-06-20 17:31:23 -07:00
Grace GuoandJohn Bodley 13cbf80fb3 [Explore] Handle empty metrics control data (#5241) 2018-06-20 12:41:48 -07:00
Maxime BeaucheminandGitHub 409ac6824a [sql lab] Fix issue around VARBINARY type in Presto (#5121)
When receiving a VARBINARY field out of Presto, it shows up as type
`bytes` out of the pyhive driver. Then the pre 3.15 version of
simplejson attempts to convert it to utf8 by default and it craps out.

I bumped to simplejson>=3.25.0 and set `encoding=None` as documented
here
https://simplejson.readthedocs.io/en/latest/#basic-usage so that we can
handle bytes on our own.
2018-06-20 12:16:59 -07:00
Jeffrey WangandJohn Bodley 2a3d297950 Allow users to view dashboards they own (#4520)
* Allow owners to view their own dashboards

* Update docstring

* update sm variable

* Add unit test

* misc linter
2018-06-20 12:08:16 -07:00
John BodleyandGitHub 62427c8b8d Revert "[perf] add webpack 4 + SplitChunks + lazy load visualizations" (#5253)
* Revert "[sqllab] Fix sql lab resolution link (#5216)"

This reverts commit 93cdf60920.

* Revert "Pin botocore version (#5184)"

This reverts commit 70679d4c93.

* Revert "Describe the use of custom OAuth2 authorization servers (#5220)"

This reverts commit a84f4304de.

* Revert "[bubble-chart] Fixing issue w/ metric names (#5237)"

This reverts commit 5c106b9a20.

* Revert "[adhoc-filters] Adding adhoc-filters to all viz types (#5206)"

This reverts commit d483ed121c.

* Revert "[perf] add webpack 4 + SplitChunks + lazy load visualizations (#5240)"

This reverts commit 1fc4ee0d3c.
2018-06-20 12:07:42 -07:00
timifasubaaandGitHub 93cdf60920 [sqllab] Fix sql lab resolution link (#5216)
* pass link

* update frontend to show link differently

* nits
2018-06-19 20:33:24 -07:00
Louis-EtienneandMaxime Beauchemin 70679d4c93 Pin botocore version (#5184)
* Pin botocore version

* Version range for botocore
2018-06-19 08:49:51 -07:00
Ricardo PeironcelyandMaxime Beauchemin a84f4304de Describe the use of custom OAuth2 authorization servers (#5220)
As Superset extends flask SecurityManager with its own implementation, it's not obvious how to connect Superset with OAuth2 authorization servers that are not covered under flask.
2018-06-19 08:48:48 -07:00
John BodleyandGitHub 5c106b9a20 [bubble-chart] Fixing issue w/ metric names (#5237) 2018-06-18 15:50:49 -07:00
John BodleyandGitHub d483ed121c [adhoc-filters] Adding adhoc-filters to all viz types (#5206) 2018-06-18 15:43:18 -07:00
Chris WilliamsandJohn Bodley 1fc4ee0d3c [perf] add webpack 4 + SplitChunks + lazy load visualizations (#5240)
* [webpack] setup lazy loading for all visualizations

* [lazy-load] push renderVis function to <Chart /> state

* no mapbox token

* [lazy loading] use native webpack import func to fix chunk names, add babel-plugin-syntax-dynamic-import, fix rebase bug.

* fix geojson import, undefined t, and fix async css bug

* [lazy load] actually add babel-plugin-syntax-dynamic-import

* [webpack] working dev version of webpack v4

* [webpack 4] fix url issues, use mini-css-extract-plugin and webpack-assets-manifest plugins

* [webpack 4] use splitchunks for all files, update templates to multi-file entrypoints

* [webpack 4] multiple theme entry files for markup vis css, don't uglify mapbox

* [webpack 4] lint python manifest changes, update yarn lock.

* [webpack 4] fix tests with babel-plugin-dynamic-import-node

* [webpack 4] only use 'dynamic-import-node' plugin in tests, update <Chart /> vis promise when vis type changes

* [webpack 4] clean up package.json and yarn.lock after rebase

* [webpack 4] lint?

* [webpack 4] lint for real

* [webpack 4][istanbul] ignore visualizations/index.js
2018-06-18 15:28:13 -07:00
Grace GuoandGitHub 480ddfc7ad [CRUD] disable user change slices from dashboardmodelview (#5217) 2018-06-18 15:08:03 -07:00
John BodleyandGitHub d7d5327ef7 [CRUD] Improving performance by disabling editing Associated Chart] (#5238) 2018-06-18 14:33:13 -07:00
Grace GuoandGitHub 0509d7aefd [Explore] Enable Rich tooltip by default (#5215) 2018-06-18 10:45:31 -07:00
Riccardo MagliocchettiandMaxime Beauchemin c670621012 setup: improve description (#5226)
* setup: improve description

* setup: use README.md as long_description

As pypy.io now should render markdown.
2018-06-18 08:42:48 -07:00
Maxime BeaucheminandGitHub c89933d870 [sql lab] quote schema and table name (#5195)
fixes https://github.com/apache/incubator-superset/issues/4595
2018-06-18 08:42:08 -07:00
Ville BrofeldtandMaxime Beauchemin ccf211036d Bump Celery to 4.2.0 (#5222)
* Downgrade celery and kombu

* Remove kombu from requirements.txt

* Pin kombu at 4.1.0

* Bump celery to 4.2.0
2018-06-18 08:19:07 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 00fad1cbf9 README: update Maieutical Labs url (#5227) 2018-06-18 08:14:12 -07:00
Chris WilliamsandJohn Bodley 7b49b6c2de Revert "[webpack] setup lazy loading for all visualizations" (#5219)
* Revert "[explore] fix autocomplete on verbose names (#5204)"

This reverts commit d5ebc430c2.

* Revert "[webpack] setup lazy loading for all visualizations (#4727)"

This reverts commit de0aaf42ed.
2018-06-15 17:23:57 -07:00
Maxime BeaucheminandGitHub d5ebc430c2 [explore] fix autocomplete on verbose names (#5204)
* [explore] fix autocomplete on verbose names

Currently when searching for metrics or groupbys, the autocomplete
search functionality only matches based on the metric_name, though in
some cases the verbose_name is displayed and disregarded for search
purposes.

Also another issue is that not all pre-defined metrics show up in the
drop down which is confusing. Users may have simple metrics for which
they setup a nice verbose name and/or description and expect to see
those in the dropdown.

This PR addresses it for metric and column-related dropdowns.

* Add unit test
2018-06-15 15:56:05 -07:00
Chris WilliamsandGitHub de0aaf42ed [webpack] setup lazy loading for all visualizations (#4727)
* [webpack] setup lazy loading for all visualizations

* [lazy-load] push renderVis function to <Chart /> state

* no mapbox token

* [lazy loading] use native webpack import func to fix chunk names, add babel-plugin-syntax-dynamic-import, fix rebase bug.

* fix geojson import, undefined t, and fix async css bug

* [lazy load] actually add babel-plugin-syntax-dynamic-import

* [webpack] working dev version of webpack v4

* [webpack 4] fix url issues, use mini-css-extract-plugin and webpack-assets-manifest plugins

* [webpack 4] use splitchunks for all files, update templates to multi-file entrypoints

* [webpack 4] multiple theme entry files for markup vis css, don't uglify mapbox

* [webpack 4] lint python manifest changes, update yarn lock.

* [webpack 4] fix tests with babel-plugin-dynamic-import-node

* [webpack 4] only use 'dynamic-import-node' plugin in tests, update <Chart /> vis promise when vis type changes

* [webpack 4] clean up package.json and yarn.lock after rebase

* [webpack 4] lint?

* [webpack 4] lint for real
2018-06-14 18:29:05 -07:00
John BodleyandGitHub 8cdc9cad9c [pie-chart] Restricting query to single metric (#5203) 2018-06-14 18:14:13 -07:00
michellethomasandGrace Guo b60ac5f160 Fixing issue with table viz for table with no metrics (#5205) 2018-06-14 17:15:00 -07:00
timifasubaaandGitHub 4b7a14de77 Merge pull request #5194 from timifasubaa/pass_error_link_separately
pass error message separately
2018-06-14 12:01:45 -07:00
Timi Fasubaa 7fa5559a66 remove resolution link prop 2018-06-14 11:32:50 -07:00
timifasubaaandGitHub 66ffcb665a Merge pull request #5118 from michellethomas/add_metrics_control_sort_by
Adding the MetricsControl to the timeseries_limit_metric field
2018-06-14 10:38:32 -07:00
Grace GuoandGitHub 585dbe6638 fix Formula type annotation, it doesn't show up since #4630 (#5181) 2018-06-14 10:12:29 -07:00
Maxime BeaucheminandGitHub a1095437bc Introduce class attr BaseViz.enforce_numerical_metrics (#5176) 2018-06-13 22:45:03 -07:00
Maxime BeaucheminandGitHub 30111bf3fd Repoint .istambul.yml to the right location (#5187)
Never did this when I renamed the folder. `npm run cover` currently
doesn't generate a proper coverage report, this fixes it
2018-06-13 22:22:39 -07:00
Timi Fasubaa 7a107fac62 pass_error_message_separately 2018-06-13 21:43:48 -07:00
timifasubaaandGitHub 6e37d3f882 Merge pull request #5190 from timifasubaa/fix_null_metrics
[bugfix] form_data - fix empty metrics
2018-06-13 17:53:42 -07:00
Michelle Thomas b380a57c91 Fixing sortby adhoc metrics for table viz 2018-06-13 17:51:17 -07:00
Timi Fasubaa 95bb1753ab fix empty metrics 2018-06-13 14:13:05 -07:00
michellethomasandJohn Bodley d6846d96ff Adding column only if it doesn't already exist (#5179) 2018-06-13 11:49:43 -07:00
Yuance.LiandMaxime Beauchemin 7f30b48955 fetch datasources from broker endpoint when refresh new datasources (#5183)
* fetch datasources from broker endpoint when refresh new datasources

* remove get_base_coordinator_url as out of use

* add broker_endpoint in get_test_cluster_obj
2018-06-13 08:10:58 -07:00
John BodleyandGitHub 502b617310 [migrations] Cleaning up migration logic (#5167) 2018-06-12 12:10:53 -07:00
John BodleyandGitHub 52a933ffb8 [migrations] Cleanup recent migrations (#5155) 2018-06-12 12:10:41 -07:00
michellethomasandChris Williams 280200f834 Fixing tooltip displaying metrics in heatmap (#5055) 2018-06-11 17:14:02 -07:00
Tresdon JonesandMaxime Beauchemin 3de79b69d0 Fix bullet chart rendering (#5108)
* Fix bullet chart rendering

* Fix code style errors
2018-06-11 16:40:29 -07:00
Maxime BeaucheminandGitHub a3477abf7e Pin FAB and bump a bunch of JS libs (#5122) 2018-06-10 21:43:37 -07:00
Xiao HanyuandMaxime Beauchemin 0a276ff75d Init docker for local development environment. (#4193)
This commit will try to dockerize superset in local development
environment.

The basic design is:
- Enable superset, redis and postgres service instead of using sqlite,
  just want to simulate production environment settings
- Use environment variables to config various app settings. It's easy to
  run and config superset to any environment if we use environment than
  traditional config files
- For local development environment, we just expose postgres and redis
  to local host machine thus you can connect local port via `psql` or
  `redis-cli`
- Wrap start up command in a standard `docker-entrypoint.sh`, and use
  `tail -f /dev/null` combined with manually `superset runserver -d` to
  make sure that code error didn't cause the container to fail.
- Use volumes to share code between host and container, thus you can use
  your favourite tools to modify code and your code will run in
  containerized environment
- Use volumes to persistent postgres and redis data, and also
  `node_modules` data.
  - If we don't cache `node_modules` in docker volume, then every time
    run docker build, the `node_modules` directory, will is about 500 MB
    large, will be sent to docker daemon, and make the build quite slow.
- Wrap initialization commands to a single script `docker-init.sh`

After this dockerize setup, any developers who want to contribute to
superset, just follow three easy steps:

```
git clone https://github.com/apache/incubator-superset/
cd incubator-superset
cp contrib/docker/{docker-build.sh,docker-compose.yml,docker-entrypoint.sh,docker-init.sh,Dockerfile} .
cp contrib/docker/superset_config.py superset/
bash -x docker-build.sh
docker-compose up -d
docker-compose exec superset bash
bash docker-init.sh
```
2018-06-09 21:26:41 -07:00
John BodleyandGitHub 7d1c035658 [druid] Fixing Druid version check (#5028) 2018-06-08 16:55:15 -07:00
Maxime BeaucheminandGitHub 915e6e9d40 Restore translations as of 459cb701fb (#5156) 2018-06-08 14:05:50 -07:00
Gabe LyonsandJohn Bodley b53b240710 [Explore][Adhoc Metrics/ Filters] disabled message for custom sql tab in druid (#5162)
* added disabled message for custom sql tab on druid datasources

* Update AdhocFilterEditPopover.jsx

Fixing indentation.

* Update AdhocMetricEditPopover.jsx

Fixing indent.

* Update AdhocFilterEditPopover.jsx

Fixing indentation.

* Update AdhocMetricEditPopover.jsx

Fixing indentation.
2018-06-07 16:16:46 -07:00
John BodleyandGitHub 1b4406db3f [migration] Adding migration to remove empty in/not-in filters (#5161) 2018-06-07 15:48:53 -07:00
Gabe LyonsandJohn Bodley 5b35f75cbf empty lists are invalid comparators (#5160) 2018-06-07 15:02:43 -07:00
Beto DealmeidaandMaxime Beauchemin 57e125688f Improve time shift (#5140)
* Improve time shift color and pattern

* Revert change

* Fix js unit test

* Move code to better place, add unit test

* Move classed code to backend

* Remove console.log

* Remove 1 hour time compare

* Remove unused import
2018-06-06 20:40:55 -07:00
John BodleyandGitHub 0545d11a22 [migrations] Fix time grain SQLA (#5135) 2018-06-06 16:56:39 -07:00
timifasubaaandChris Williams 0abbc98630 pin kombu dependency (#5150) 2018-06-06 14:29:08 -07:00
John BodleyandGitHub f102eab33c [crud] Improving performance (#5136) 2018-06-05 17:24:19 -07:00
Xiao HanyuandJohn Bodley b71f551493 Optimize presto SQL Lab query performance. (#5132)
By stop polling when presto query already finished.

When user make queries to Presto via SQL Lab, presto will run the query
and then it can return all data back to superset in one shot.

However, the default implementation of superset has enabled a default
polling for presto to:

- Get the fancy progress bar
- Get the data back when the query finished.

However, the polling implementation of superset is not right.

I've done a profiling with a table of 1 billion rows, here're some data:

- Total number of rows: 1.02 Billion
- SQL Lab query limit: 1 million
- Output Data: 1.5 GB
- Superset memory consumed: about 10-20 GB
- Time: 7 minutes to finish in Presto, takes additional 15 minutes for
  superset to get and store data.

The problems with default issue is, even if presto has finished the
query (7 minutes with above profiling), superset still do lots of wasted
polling, in above profiling, superset sent about 540 polling in total,
and at half of the polling is not necessary.

Part of the simplied polling response:

```
{
  "infoUri": "http://10.65.204.39:8000/query.html?20180525_042715_03742_nza9u",
  "id": "20180525_042715_03742_nza9u",
  "nextUri": "http://10.65.204.39:8000/v1/statement/20180525_042715_03742_nza9u/11",
  "stats": {
    "state": "FINISHED",
    "queuedSplits": 21701,
    "progressPercentage": 35.98264191882267,
    "elapsedTimeMillis": 1029,
    "nodes": 116,
    "completedSplits": 15257,
    "scheduled": true,
    "wallTimeMillis": 2571904,
    "peakMemoryBytes": 0,
    "processedBytes": 40825519532,
    "processedRows": 47734066,
    "queuedTimeMillis": 0,
    "queued": false,
    "cpuTimeMillis": 849228,
    "rootStage": {
      "state": "FINISHED",
      "queuedSplits": 0,
      "nodes": 1,
      "totalSplits": 17,
      "processedBytes": 16829644,
      "processedRows": 11495,
      "completedSplits": 17,
      "stageId": "0",
      "done": true,
      "cpuTimeMillis": 69,
      "subStages": [
        {
          "state": "CANCELED",
          "queuedSplits": 21701,
          "nodes": 116,
          "totalSplits": 42384,
          "processedBytes": 40825519532,
          "processedRows": 47734066,
          "completedSplits": 15240,
          "stageId": "1",
          "done": true,
          "cpuTimeMillis": 849159,
          "subStages": [],
          "wallTimeMillis": 2570374,
          "userTimeMillis": 730020,
          "runningSplits": 5443
        }
      ],
      "wallTimeMillis": 1530,
      "userTimeMillis": 50,
      "runningSplits": 0
    },
    "totalSplits": 42401,
    "userTimeMillis": 730070,
    "runningSplits": 5443
  }
  }
}
```

Superset will terminate the polling when it finds that `nextUri`
becomes none, but actually, when `["stats"]["state"] == "FINISHED"`,
it means that presto has already finished the query and superset can stop
polling and get the data back.

After this simple optimization, we get a 2-5x performance boost for
Presto SQL Lab queries.
2018-06-05 08:56:18 -07:00
Maxime BeaucheminandGitHub d2bc4ece3e Bump celery to 4.1.1 (#5134)
* Bump celery to 4.1.1

Docs reference `celery worker --app=superset.sql_lab:celery_app
--pool=gevent -Ofair` command which seems only to work with Celery 4.1.1

* Add UPDATING.md message
2018-06-04 14:54:36 -07:00
Maxime BeaucheminandGitHub ffd65ce623 Pin FAB to 1.10.0 (#5133)
Related to
https://github.com/apache/incubator-superset/issues/5088#issuecomment-394064133
2018-06-04 09:03:30 -07:00
Tamika TannisandHugh A. Miles II dc21e0dd78 URL shortner for dashboards (#4760)
* Added support for URLShortLinkButton to work for the dashboard case

* Fix lint errors and test

* Change references to 'slice' to 'chart'.

* Add unit tests to improve coverage

* Fixing lint errors

* Refactor to make URLShortLink more generic. Remove history modification code, redirect should be handling this.

* Remove history modification code, redirect should be handling this

* Generate a shorter link without the directory, and delegate default linked to the contents of window.location

* Fix lint errors

* Fix test_shortner test to check for new pattern

* Remove usage of addHistory to manipulate explore shortlink redirection

* Address build failure and using better practices for shortlink defaults

* Fixing alphabetical order

* More syntax mistakes

* Revert explore view history changes

* Fix use of component props, & rebase
2018-06-02 11:08:43 -07:00
Michelle Thomas 47768284d0 Adding tests for adhoc metric as timeseries_limit_metric 2018-05-31 23:48:12 -07:00
Gabe LyonsandJohn Bodley cc0942ac98 updating adhoc metric filtering (#5105) 2018-05-31 23:34:48 -07:00
Ky-Anh HuynhandMaxime Beauchemin 556ef44fac docs: Add new Athena URI scheme awsathena+rest:// (#5112)
See also some discussions on https://github.com/laughingman7743/PyAthenaJDBC/pull/62
2018-05-31 22:19:07 -07:00
Beto DealmeidaandMaxime Beauchemin 1d3e96bce0 Allow multiple time shifts (#5067)
* Allow multiple time shifts

* Handle old form data
2018-05-31 21:18:36 -07:00
Gabe LyonsandMaxime Beauchemin 40fadfcb4f adding null checks to adhoc filter popover (#5111) 2018-05-31 21:00:20 -07:00
Maxime BeaucheminandGitHub 28611108d7 Refactor NULL handling into method, disable for DECK.gl vizes (#5106) 2018-05-31 16:01:49 -07:00
michellethomasandGrace Guo ff4b103025 Fixing time table viz for adhoc metrics (#5117) 2018-05-31 13:53:26 -07:00
Michelle Thomas 6f05b48385 Adding the MetricsControl to the timeseries_limit_metric field 2018-05-31 12:52:00 -07:00
Maxime BeaucheminandGitHub 4ecd95a318 [bugfix] deck.gl on druid always shows animation (#5107) 2018-05-31 11:57:53 -07:00
Gabe LyonsandMaxime Beauchemin f3778c3c81 fixing LIKE constant name (#5110) 2018-05-31 11:34:51 -07:00
timifasubaaandGitHub cefc206a36 Merge pull request #5023 from timifasubaa/fix_sqllab_commit
[sqllab] force limit queries only when there is no existing limit
2018-05-31 11:12:46 -07:00
Beto DealmeidaandMaxime Beauchemin 875d0b5ad2 Override time grain in annotations (#5084) 2018-05-30 15:29:48 -07:00
timifasubaaandGitHub e8b25988e2 Merge pull request #5109 from cxmcc/patch-1
Add Lime to Superset user list.
2018-05-30 15:17:16 -07:00
Xiuming ChenandGitHub 21967f40e7 Add Lime to Superset user list.
Add Lime to Superset user list.
2018-05-30 14:24:03 -07:00
Timi Fasubaa a9d7fafd9f add tests 2018-05-30 12:50:27 -07:00
Maxime BeaucheminandGitHub f6117973e9 Bump dep on pydruid to 0.4.3 (#5098) 2018-05-30 09:15:10 -07:00
John BodleyandGitHub 0511d1f38d [get_df] Adding support for multi-statement SQL (#5086) 2018-05-29 14:20:17 -07:00
谢邵虎andMaxime Beauchemin 7dbb45e5fb add CnOvit to Superset users list (#5094) 2018-05-29 13:59:49 -07:00
Beto DealmeidaandMaxime Beauchemin 6c3e469154 Add more time grains (#5083)
* Add more time grains

* Use FLOOR

* Fix quotes for lint
2018-05-29 12:43:48 -07:00
Maciej BryńskiandMaxime Beauchemin ae50845843 Proper error handling in Hive Queries (#4428)
* Proper error handling in Hive Queries

* Change quotes

* Trigger checks

* Adding call to parent class

* Small fix

* Fix in method call
2018-05-29 12:42:45 -07:00
zjjandMaxime Beauchemin 459267785f Fix python2 str() in visualization (#5093) 2018-05-29 10:33:22 -07:00
Timi Fasubaa d38315a307 reuse_regex_logic 2018-05-25 15:07:27 -07:00
Timi Fasubaa 1aced9b562 force limit only when there is no existing limit 2018-05-25 14:54:11 -07:00
Yongjie ZhaoandMaxime Beauchemin c18ef89034 [bugfix] fix visualization with adhocMetric (#5080)
* fix visualization with adhocMetric

* update
2018-05-25 09:48:18 -07:00
Alexander KoandMaxime Beauchemin e30215c3d8 Add 24 hours refresh for dashboard (#5068)
* adding 24 hours refresh

* adding additional hours
2018-05-24 17:44:24 -07:00
Maxime BeaucheminandGitHub 42d0597b90 Use a dummy version number on master (#5000)
Currently we assign release version number in release branches and
master was still pointing to some old version number from when the
process was different. We need a dummy version number that both setuptools
and npm are ok with.
2018-05-24 17:42:46 -07:00
John BodleyandGitHub 3207116535 Revert "[get_df] Adding support for multi-statement SQL" (#5078) 2018-05-24 14:59:34 -07:00
michellethomasandMaxime Beauchemin 1aaa73b548 Translate string to array for multi fields in getControlsState (#5057)
* Translate string to array for multi fields in getControlsState

* Updating format to fit on one line
2018-05-23 22:30:44 -07:00
Maxime BeaucheminandGitHub 05061a73ce Fix time shift color assignements (#5065)
closes https://github.com/apache/incubator-superset/pull/4765
2018-05-23 21:30:03 -07:00
John BodleyandGitHub d322e48c57 [markup] Enable allow-forms (#5062) 2018-05-23 13:30:02 -07:00
Gabe LyonsandJohn Bodley fa3e4e23b3 integrating dashboard filters with adhoc filters (#5056) 2018-05-23 11:46:00 -07:00
John BodleyandGitHub 17d6464aa9 [get_df] Adding support for multi-statement SQL (#5060) 2018-05-23 11:40:25 -07:00
Grace GuoandGitHub 4c44223234 [Dashboard] Allow Superset Alpha, Gamma users to save dashboard as a copy (#5051) 2018-05-22 15:31:37 -07:00
michellethomasandJohn Bodley b8aeb1a825 Allow MetricsControl to aggregate on a column with an expression (#5021)
* Allow MetricsControl to aggregate on a column with an expression

* Adding test case for metrics based on columns
2018-05-22 09:58:38 -07:00
Hua JigangandMaxime Beauchemin b312cdad2f fix metrics type error in pivot table viz (#5025)
transfer metrics dict label to list of string
2018-05-21 21:13:10 -07:00
Beto DealmeidaandMaxime Beauchemin 973c661501 Rename "slice" to "chart" and update translations (#5008)
* Rename slice to chart and update translations

* Fix unit tests
2018-05-21 17:49:02 -07:00
Beto DealmeidaandMaxime Beauchemin 459cb701fb Visualization for multiple line charts (#4819)
* Initial test

* Save

* Working version

* Use since/until from payload

* Option to prefix metric name

* Rename LineMultiLayer to MultiLineViz

* Add more styles

* Explicit nulls

* Add more x controls

* Refactor to reuse nvd3_vis

* Fix x ticks

* Fix spacing

* Fix for druid datasource

* Rename file

* Small fixes and cleanup

* Fix margins

* Add proper thumbnails

* Align yaxis1 and yaxis2 ticks

* Improve code

* Trigger tests

* Move file

* Small fixes plus example

* Fix unit test

* Remove SQL and Filter sections
2018-05-21 17:47:21 -07:00
Gabe LyonsandChris Williams a746fce383 expanding simple tab (#5032) 2018-05-21 16:22:40 -07:00
Gabe LyonsandChris Williams 0e1fb62db2 forcing ace editor to refresh when it is shown (#5038) 2018-05-21 16:20:46 -07:00
Maxime BeaucheminandGitHub ce0011e5fc Add missing dep on contextlib2 (#5027) 2018-05-21 13:19:07 -07:00
Gabe LyonsandMaxime Beauchemin 1c9474b4ff treating floats like doubles for druid versions lower than 11.0.0 (#5030) 2018-05-21 11:50:04 -07:00
Yongjie ZhaoandMaxime Beauchemin 9f66dae328 [bugfix] Fix ZeroDivisionError and get metrics label with percent metrics (#5026)
* Fix percent_metrics ZeroDivisionError and can not get metrics with label issue

* convert iterator to list

* get percentage metrics with get_metric_label method

* Adding tests case for expression type metrics

* Simplify expression
2018-05-20 11:10:57 -05:00
timifasubaaandGitHub 5505c116ba Merge pull request #5019 from timifasubaa/fix_error_message_for_missing_datasource
fix missing datasource error message
2018-05-18 01:13:47 -07:00
timifasubaaandGitHub 63115fbb87 nit 2018-05-17 23:34:12 -07:00
Timi Fasubaa f52f7aa7cf raise exception early 2018-05-17 17:39:59 -07:00
timifasubaaandGitHub 5a64b3f577 Merge pull request #5022 from mistercrunch/flask_sub_1
Fix flask<1.0.0
2018-05-16 18:26:27 -07:00
Maxime Beauchemin 2ba929ac9e Fix flask<1.0.0
Made a mistake originally, meant to flask<1.0.0
2018-05-16 18:37:14 -05:00
Arup MalakarandHugh A. Miles II 2bf53dad98 Make port number optional in superset for druid (#5020)
* Make port number optional in superset for druid

It appears that urllib throws error with ssl if port number is provided

```
    url = "https://example.com:443/druid/v2"

    req = urllib.request.Request(url, druid_query_str, headers)
    res = urllib.request.urlopen(req)

```

The above call fails with the following error:
```
urllib2.HTTPError: HTTP Error 404: Not Found
```

If url is set to https://example.com/druid/v2 it works, this change
makes the port number optional.

* Rewrite if/else in concisely python way
2018-05-16 17:38:00 -04:00
Timi Fasubaa cf374efb3f fix missing datasource error message 2018-05-16 12:32:31 -07:00
Maxime BeaucheminandGitHub e72c9cded3 Fix EncryptedType error (#5007)
fixes https://github.com/apache/incubator-superset/issues/5005
2018-05-16 13:24:51 -05:00
michellethomasandGrace Guo c2eae96327 Fix AdhocFilterControl for single metric options (#5012) 2018-05-15 16:41:23 -07:00
Maxime BeaucheminandGitHub 7b427d7ee0 Make MetricsControl the standard across visualizations (#4914)
* [WiP] make MetricsControl the standard across visualizations

This spreads MetricsControl across visualizations.

* Addressing comments

* Fix deepcopy issue using shallow copy

* Fix tests
2018-05-15 12:37:34 -05:00
Maxime BeaucheminandGitHub b839608c32 [sql lab] a better approach at limiting queries (#4947)
* [sql lab] a better approach at limiting queries

Currently there are two mechanisms that we use to enforce the row
limiting constraints, depending on the database engine:
1. use dbapi's `cursor.fetchmany()`
2. wrap the SQL into a limiting subquery

Method 1 isn't great as it can result in the database server storing
larger than required result sets in memory expecting another fetch
command while we know we don't need that.

Method 2 has a positive side of working with all database engines,
whether they use LIMIT, ROWNUM, TOP or whatever else since sqlalchemy
does the work as specified for the dialect. On the downside though
the query optimizer might not be able to optimize this as much as an
approach that doesn't use a subquery.

Since most modern DBs use the LIMIT syntax, this adds a regex approach
to modify the query and force a LIMIT clause without using a subquery
for the database that support this syntax and uses method 2 for all
others.

* Fixing build

* Fix lint

* Added more tests

* Fix tests
2018-05-14 14:44:05 -05:00
Yongjie ZhaoandMaxime Beauchemin 7a4a89b195 Update Apache Kylin dbengine with supported week/quarter grains (#4965) 2018-05-14 14:11:59 -05:00
Gabe LyonsandMaxime Beauchemin ce710f8c8f cleaning up the table fab view since we hide these autogenerated metrics anyway (#4992) 2018-05-14 14:09:12 -05:00
Ville BrofeldtandMaxime Beauchemin b391676544 Force lowercase column names for Snowflake and Oracle (#4994)
* Force lowercase column names for Snowflake and Oracle

* Force lowercase column names for Snowflake and Oracle

* Remove lowercasing of DB2 columns

* Remove DB2 lowercasing

* Fix test cases
2018-05-14 13:43:13 -05:00
timifasubaaandGitHub 071c6a6c03 Merge pull request #4991 from michellethomas/fix_filter_blank_custom_sql
[Bugfix] Allowing sqlExpression to be blank
2018-05-14 11:26:08 -07:00
Maxime BeaucheminandGitHub 2c5200affd [deps] force flask<=1.0.0 (#4959)
flask 1.0 came out and has backwards incompatible changes. People
are reporting that fresh install doesn't work anymore.

fixes https://github.com/apache/incubator-superset/issues/4953

We should ship a 0.25.1 with this in
2018-05-13 11:16:09 -07:00
Michelle Thomas ad4912d601 Allowing sqlExpression to be blank 2018-05-11 16:03:17 -07:00
Gabe LyonsandGrace Guo 7d5195aae3 expanding regex for automated columns (#4990) 2018-05-11 15:43:52 -07:00
timifasubaaandGitHub b75942daa5 Merge pull request #4977 from timifasubaa/bump_pyhive_version
bump pyhive version
2018-05-10 11:50:14 -07:00
Timi Fasubaa 6720255868 bump pyhive version 2018-05-10 11:13:44 -07:00
Gabe LyonsandGrace Guo a8514b267b [Explore] Adding Adhoc Filters (#4909)
* adding custom expressions to adhoc metrics

* adjusted transitions and made the box expandable

* adding adhoc filters

* adjusted based on feedback
2018-05-10 10:41:10 -07:00
grafkeandMaxime Beauchemin 8591319bde [sql lab] Use context manager for sqllab sessions (#4927)
* use session context manager

* contextlib2 added to requirements.txt

* Fixing error: Import statements are in the wrong order. from contextlib2 import contextmanager should be before import sqlalchemy

* Fixing return inside generator

* fixed C812 missing trailing comma

* E501 line too long

* fixed E127 continuation line over-indented for visual indent

* E722 do not use bare except

* reorganized imports

* added context manager contextlib2.contextmanager

* fixed import ordering
2018-05-10 10:32:31 -07:00
Ville BrofeldtandMaxime Beauchemin af4dd59661 Fix templating in sqla datasource (#4971)
Fix templating in sqla datasource [has migration]
2018-05-10 10:28:56 -07:00
Nicole DominguezandMaxime Beauchemin 94249ed20c superset/import_dashboards.html: Update title, clean up html (#4972)
* Changes "Import the dashboards." to "Import dashboards"
* Cleans up the HTML to add quotes, self close tags, etc.
* Adds a class to the `<submit>` button to utilize bootstrap style
* Remove the `<title>` tag in body as it's not vaild HTML and redundant with `{% block %}`
2018-05-09 20:42:17 -07:00
Maxime BeaucheminandGitHub 918399d4e2 [bugfix] handling UTF8 in Druid dimensions (#4943) 2018-05-08 22:04:05 -07:00
jasnovakandMaxime Beauchemin e29beba023 Add extraction function support for Druid queries (#4740)
* add extraction fn support for Druid queries

* bump pydruid version to get extraction fn commits

* update and add tests for druid for filters with extraction fns

* conform to flake8 rules

* fix flake8 issues

* bump pyruid version for extraction function features
2018-05-08 22:00:06 -07:00
Maxime BeaucheminandGitHub 75df3d0f8e CHANGELOG for 0.25.0 (#4948) 2018-05-08 08:24:54 -07:00
Yuance.LiandMaxime Beauchemin 18e67f93de add 30 minutes support under time granularity (#4954) 2018-05-08 08:24:18 -07:00
Yuance.LiandMaxime Beauchemin 65c4499bef Support hours in relative time range selection (#4950) 2018-05-07 23:19:08 -07:00
Maxime BeaucheminandGitHub 45ffed9976 Move from deprecated flask-cache to flask-caching (#4944)
It appears the officially maintained fork of flask-cache is
flask-caching https://github.com/sh4nks/flask-caching . It is fully
compatible with flask-cache.
2018-05-07 23:18:46 -07:00
Hugh A. Miles IIandMaxime Beauchemin 374482bcde Fix naming for geojson (#4946) 2018-05-07 22:48:35 -07:00
Maxime BeaucheminandGitHub f21ba1aba7 [docs] add entry for Hive in installation.rst (#4942) 2018-05-07 15:26:19 -07:00
Maxime BeaucheminandGitHub 415d1c092b [sql lab] handle query stop race condition (#4928)
fixes https://github.com/apache/incubator-superset/issues/4926

In rare cases where the query is stopped before it is started, SQL Lab
returns an unexpected string payload instead of a normal dictionary.

This aligns the process to handle the error in a homogeneous fashion.
2018-05-07 13:49:42 -07:00
Vihar KuramaandMaxime Beauchemin a60d577b7d Update installation.rst (#4930) 2018-05-07 13:48:41 -07:00
timifasubaaandGitHub d87504cb42 Merge pull request #4833 from timifasubaa/help_sqllab_forget_the_past
[sqllab] Help sqllab forget query history
2018-05-07 10:56:39 -07:00
Timi Fasubaa ab958c67e6 make queries older than 6 hours timeout 2018-05-07 10:14:37 -07:00
João Marques GomesandMaxime Beauchemin 89333657d8 Add Portugal to country_map visualization (#4939)
* Add files via upload

* Add files via upload
2018-05-07 10:01:09 -07:00
Antoine GalataudandMaxime Beauchemin f5b63679e0 add Airboxlab to Superset users list (#4938) 2018-05-07 09:59:35 -07:00
OctavianandMaxime Beauchemin 58a02bba43 Add Windsor.ai to the list of organizations (#4940) 2018-05-07 09:59:02 -07:00
Hugh A. Miles IIandGitHub 52a6bd1c7e rm-slices (#4899) 2018-05-05 00:05:49 +02:00
John BodleyandGitHub 440fb77df5 [druid] Updating Druid refresh metadata tests (#4887) 2018-05-03 18:14:40 -07:00
jasnovakandMaxime Beauchemin e2d5c33638 Hide restricted ui elements, remove <br> from error message (#4900)
* hide forbidden ui elements, remove <br> from message

* add comma for flake8

* add commma for flake8

* change js variables from snake to camel case
2018-05-03 17:36:30 -07:00
Casper CY ChiangandMaxime Beauchemin 976e43e681 Install superset in Kubernetes with helm chart (#4923)
* Add helm chart to install superset in kubernetes

* set resources into unlimited

* Add descriptions to Chart.yaml

* add an entry in docs/installation.rst
2018-05-03 17:35:38 -07:00
Yongjie ZhaoandMaxime Beauchemin 5d6e59aa8a Support Apache Kylin in EngineSpec (#4925)
* Support Apache Kylin in EngineSpec

* Fix flake8
2018-05-03 08:42:43 -07:00
Maxime BeaucheminandGitHub e213ccd438 [bufix] filtered column was removed (#4921)
if a filter is created on a chart, and the column is removed from the
dataset, you get a "&#39;NoneType&#39; object has no attribute
&#39;is_num&#39;" or something to that
effect. This fix disregards the filter.

Also error messages were HTML escaped which React does already anyways
so that's not necessary [anymore] here.
2018-05-02 15:24:44 -07:00
Maxime BeaucheminandGitHub fa4acb1bda Add doc entry for BigQuery support (#4917)
closes https://github.com/apache/incubator-superset/issues/945
2018-05-01 21:28:27 -07:00
Maxime BeaucheminandGitHub 5f6a1cea47 Fix typos from linting (#4918)
Caused by https://github.com/apache/incubator-superset/pull/3847

Fixes https://github.com/apache/incubator-superset/issues/4915
2018-05-01 13:34:10 -07:00
Beto DealmeidaandMaxime Beauchemin 13da5a8742 Fix for week_start_sunday and week_ending_saturday (#4911)
* Handle locked weeks

* Fix spelling

* Fix druid

* Clean unit tests
2018-05-01 13:27:56 -07:00
Beto DealmeidaandMaxime Beauchemin 9c53323c93 Replace NaN/Infinity with null (#4908) 2018-05-01 11:18:19 -07:00
Maxime BeaucheminandGitHub 8c94e1f710 Fix country_map visualization URL (#4913)
When moving the visualizations/ folder to src/ I missed this reference.
2018-05-01 08:50:47 -07:00
Maxime BeaucheminandGitHub e1d2150391 Add note about 0.25.0 upgrade in UPDATING.md (#4883) 2018-04-30 09:47:48 -07:00
Maxime BeaucheminandGitHub 3c7feb770a Heatmap improvements (#4897)
* allow option to normalize the color distribution
* make bounds work client side (instantaneous)
* make more controls instantaneous
2018-04-30 09:36:24 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 709a71b89a requirements: bump gunicorn to 19.8.0 (#4906)
Fixes #3002
2018-04-30 08:58:02 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 31f426664c translations: rename pt_BR gettext files (#4907)
To messages.{mo,po} like for the other languages.
2018-04-30 08:57:26 -07:00
John BodleyandGitHub d533ce0967 [pylint] prepping for enabling pylint for non-errors (#4884) 2018-04-28 20:08:09 -07:00
Maxime BeaucheminandGitHub caa72675a5 Fix 'Uncaught TypeError: pe.clamp is not a function' (#4901) 2018-04-27 16:15:43 -07:00
Maxime BeaucheminandGitHub 0a953714ac [sql lab] allow stoping 'pending' queries (#4896) 2018-04-27 16:10:29 -07:00
JulesandMaxime Beauchemin 510ae84b3b remove hard code http scheme of short url #4656 (#4886)
* remove hard code http scheme of short url #4656

* remove space

* add space

* remove temp var
2018-04-27 08:41:54 -07:00
Maxime BeaucheminandGitHub f3d756016e Allow limiting rows on Pivot Table (#4891) 2018-04-27 08:35:12 -07:00
Maxime BeaucheminandGitHub 3f48c005df [bugfix] temporal columns with expression fail (#4890)
* [bugfix] temporal columns with expression fail

error msg: "local variable 'literal' referenced before assignment"

Error occurs [only] when using temporal column defined as a SQL
expression.

Also noticed that examples were using `granularity` instead of using
`granularity_sqla` as they should. Fixed that here.

* Add tests
2018-04-26 21:13:52 -07:00
Ville BrofeldtandMaxime Beauchemin fa3da8c888 Implement Snowflake engine with supported time grains (#4882)
* Implement Snowflake engine with supported time grains

* Fix typo in second grain
2018-04-25 14:44:24 -07:00
Maxime BeaucheminandGitHub 17ae9ec3a8 Move a few JS files (#4841)
* Moving JS files

* Moving pointers

* lint
2018-04-24 13:35:55 -07:00
david watsonandMaxime Beauchemin 7139f1e863 Remove spurious "has" from README (#4872)
This changes "has ships" to "ships" so it's grammatically correct. Sorry for the pedantic PR.
2018-04-24 09:44:42 -07:00
Chris HuaandMaxime Beauchemin 7193a4719d remove DISTINCT ON statement (#4869)
unbreaks for redshift tables and output is identical
2018-04-23 17:04:36 -07:00
CongleiandMaxime Beauchemin 2cd016f11c [axis formatting] Override the valueformat to be percentage when contribution is selected (#4866)
* force the valueformat to be percentage when contribution is selected

* remove extra empty lines

* simplied the logic by reusing some existing code
2018-04-23 10:05:29 -07:00
Hugh A. Miles IIandMaxime Beauchemin 5927e7dfe6 Refactoring on exploreReducer.js (#4836)
* refactoring on exploreReducser

* fix building json
2018-04-23 08:29:01 -07:00
Maxime BeaucheminandGitHub 590e3462d6 Fix 'pip install .' (#4856)
* Fix 'pip install .'

Fix error :
> flask-appbuilder 1.10.0 has requirement Flask-SQLAlchemy==2.1,
> but you'll have flask-sqlalchemy 2.3.2 which is incompatible.
> botocore 1.10.5 has requirement python-dateutil<2.7.0,>=2.1, but you'll
> have python-dateutil 2.7.2 which is incompatible.

* remove flask-sqlalchemy==2.1 from reqs.txt
2018-04-23 08:16:22 -07:00
michellethomasandMaxime Beauchemin 370d8a2bbe Safely passing data to d3.html (#4842) 2018-04-22 21:00:37 -07:00
Ry WalkerandMaxime Beauchemin 937a5bc85c Add Astronomer to list of organizations using Apache Superset (#4867) 2018-04-22 20:51:45 -07:00
Chris WilliamsandGitHub 66fcf9b687 [formats] add better defaults for time + number formatting (#4843)
* [formats] add better defaults for time + number formatting

* [formatDate] add tests for concise formatDate

* [nvd3] use verbose time format in tooltips

* [number format] improve number format description

* [formats] revert to .3s defaults, tweak number format preview

* [formats] default number vis to .3s
2018-04-20 15:55:25 -07:00
John BodleyandGitHub 89347172d2 [sql] Using read_sql_query instead of read_sql (#4853) 2018-04-20 14:36:20 -07:00
Peter Lubell-DoughtieandMaxime Beauchemin c92b56e2f6 correct config language key to pt_BR (#4854) 2018-04-19 20:43:56 -07:00
Maxime BeaucheminandGitHub e88b0b6c4c Remove obsolete TODO.md (#4850) 2018-04-19 15:52:26 -07:00
Kengo SekiandMaxime Beauchemin 860a4d9123 [docs] minor file name and format fix for the setup document (#4844) 2018-04-19 11:34:23 -07:00
Maxime BeaucheminandGitHub a98c3cfdef Fix time granularity-related issues (#4821)
* Fixing time grain

* Add tests
2018-04-18 16:17:28 -07:00
timifasubaaandJohn Bodley a14dc26042 ensure directory exists before saving csv file (#4829) 2018-04-18 15:01:40 -07:00
Timi Fasubaa e47d8a59a4 help sqllab forget the past 2018-04-18 14:09:33 -07:00
Maxime BeaucheminandGitHub eac97ce9f2 [explore] proper filtering of NULLs and '' (#4651)
* [WiP] [explore] proper filtering of NULLs and ''

TODO: handling of Druid equivalents

* Unit tests

* Some refactoring

* [druid] fix 'Unorderable types' when col has nuls

Error "unorderable types: str() < int()" occurs when grouping by a
numerical Druid colummn that contains null values.

* druid/pydruid returns strings in the datafram with NAs for nulls
* Superset has custom logic around get_fillna_for_col that fills in the
NULLs based on declared column type (FLOAT here), so now we have a mixed
bag of type in the series
* pandas chokes on pivot_table or groupby operations as it cannot sorts
mixed types

The approach here is to stringify and fillna('<NULL>') to get a
consistent series.

* typo

* Fix druid_func tests

* Addressing more comments

* last touches
2018-04-17 22:26:21 -07:00
John BodleyandGitHub 44c2d5bdab [setup] Dropping 3.4 and adding 3.6 (#4835)
* [setup] Dropping 3.4 and 3.6

* Update tox.ini

* Update .travis.yml
2018-04-17 21:30:12 -07:00
Maxime BeaucheminandGitHub c0db6dbb57 Moving some JS folders (#4820)
* Moving folders

* Pointing to new locations
2018-04-17 21:05:01 -07:00
John BodleyandGitHub 2900ca345d [travis] Fixing environments (#4828) 2018-04-15 16:21:33 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 3b18fbf9e3 db_engine_specs: use correct sqlite week time grain (#4831)
We want the week of year %W and not the day of week %w
when using week as time grain.

Reference:
https://www.sqlite.org/lang_datefunc.html
2018-04-15 16:15:31 -07:00
Maxime BeaucheminandGitHub 23a3365cd1 Update README with fresher screenshots (#4825)
* Improve screenshots in README.md

* Add border to images

* Add visualizations.png
2018-04-14 15:32:26 -07:00
Gabe LyonsandChris Williams 8669874ec6 [Explore] Adding custom expressions to adhoc metrics (#4736)
* adding custom expressions to adhoc metrics

* adjusted transitions and made the box expandable
2018-04-13 11:20:53 -07:00
Maxime BeaucheminandGitHub 4c268ec678 [docs] many improvements to the documentation / cleanup (#4817)
* fixed RSTs so images will show up on github
* fresh screenshots on main page
* removing irrelevant portions
* moved a set of sections under 'Misc'
* rebuilt the Gallery with all screenshots
2018-04-13 10:23:27 -07:00
Riccardo MagliocchettiandMaxime Beauchemin daf9a3bfb5 docs: use proper dialect for redshift (#4823)
Use redshift+psycopg2 instead of the postgresql one.
2018-04-13 09:13:33 -07:00
Beto DealmeidaandMaxime Beauchemin fd84fd89ce RFC: add logger that logs into browser console (#4702)
* Option for logging into browser console

* Move import

* Add lint req

* Add docs, use Flask logger
2018-04-12 21:48:17 -07:00
Hugh A. Miles IIandMaxime Beauchemin 2f5cff7d9f [DeckGL] Added fixtures and Deck test (#4798)
* added fixtures and deck test

* linting

* linting

* add os.path

* remove para

* fix reference
2018-04-12 17:20:39 -07:00
Maxime BeaucheminandGitHub 6fd4ff45ea Improve the calendar heatmap (#4800)
* Improve xAxis ticks, thinner bottom margin (#4756)

* Improve xAxis ticks, thinner bottom margin

* Moving utils folder

* Add isTruthy

* Addressing comments

* Set cell_padding to 0

* merging db migrations
2018-04-12 17:16:45 -07:00
Maxime BeaucheminandGitHub b04359003e Filtering out SQLLab views out of table list view by default (#4746)
* Filtering out SQLLab views out of table list view by default

This adds a `is_sqllab_view` flag in the "tables" table, and makes the
filters those out in the Tables list view.

The filter showing on top may be a bit confusing, but certainly less
than seeing lots of user generated views.

* flake

* Addressing comments
2018-04-12 13:52:47 -07:00
John BodleyandMaxime Beauchemin 2a95d203ad [migrations] Fixing issue #4810 (#4815) 2018-04-12 10:41:36 -07:00
Maxime BeaucheminandGitHub 683fb6c251 Make the bottom margin a bit taller (#4807) 2018-04-11 15:15:59 -07:00
Maxime BeaucheminandGitHub 07a5f47c75 [bugfix] dedup groupby columns in Deck visualizations (#4801)
When specifying the same column twice as a `Extra Data for JS` and
`Categorical Color`, an error is issued. This addresses this issue.
2018-04-11 15:15:36 -07:00
Maxime BeaucheminandGitHub ae7e114621 [explore] set working default for MetricsControl (#4803)
The default setting which would look for either `count` first and then
any metric stopped working when we landed MetricsControl. This mimics
the previous behavior
2018-04-11 15:11:11 -07:00
John BodleyandGitHub dadc0574b8 [tests] cleaning up test configuration (#4806) 2018-04-11 14:09:20 -07:00
michellethomasandMaxime Beauchemin 725b8f94c9 Adding tests for the time table viz (#4659) 2018-04-11 13:24:51 -07:00
hidetoshiitoandMaxime Beauchemin e96590744f BugFix(#3658) (#4133)
* BugFix(#3658)

rollback to old version

* Update views.py
2018-04-11 13:21:54 -07:00
timifasubaaandMaxime Beauchemin 20f46eede5 call next() the right way (#4804) 2018-04-11 13:20:14 -07:00
Hugh A. Miles IIandMaxime Beauchemin 3c29ca79ae filter recently viewed to just have explore and dashboard types (#4808) 2018-04-11 13:19:20 -07:00
Ariel ShemtovandMaxime Beauchemin adf9ec0bb1 adding option for multiple metrics, group by, opacity, legends (#4525) 2018-04-10 21:21:24 -07:00
John BodleyandGitHub 7f1d7543d0 [logs] Dropping dt column (#4587) 2018-04-10 18:34:32 -07:00
Grace GuoandGitHub 02a9e37f04 [homepage] Fix Favorites chart list (#4802) 2018-04-10 17:07:28 -07:00
John BodleyandGitHub 1627fd096b [travis/tox] Restructuring configuration (#4552) 2018-04-10 15:59:44 -07:00
Maxime BeaucheminandGitHub 14bf45da7c [bugfix] when num_period_compare is not set (#4799)
Fixing issues where y_axis_format is set and not num_period_compare
2018-04-10 14:49:22 -07:00
Maxime BeaucheminandGitHub 1e7a294c1f Improve xAxis ticks, thinner bottom margin (#4756)
* Improve xAxis ticks, thinner bottom margin

* Moving utils folder

* Add isTruthy
2018-04-10 13:37:34 -07:00
David HassanandMaxime Beauchemin 64459efebd Add Ascendica Development in organizations list who use Superset (#4792)
Add Ascendica Development in organizations list who use Superset
2018-04-09 22:07:52 -07:00
Maxime BeaucheminandGitHub 9bbe50f2f6 [explore] forcing .1% number format when using 'Period Ratio' (#4774) 2018-04-09 14:02:43 -07:00
Beto DealmeidaandMaxime Beauchemin 47c085fd00 Add play slider to screengrid (#4647)
* Improved granularity parsing

* Add unit tests

* Explicit cast to int

* Screengrid play slider

* Clean code

* Refactor common code
2018-04-09 14:02:20 -07:00
John BodleyandGitHub 41c158edac Rename UPDATING.MD to UPDATING.md (#4781) 2018-04-07 19:01:02 -07:00
Maxime BeaucheminandGitHub 17e673ec87 [line] fix verbose names in time shift (#4765)
* [line] fix verbose names in time shift

* Addressing comments
2018-04-07 15:19:58 -07:00
Maxime BeaucheminandGitHub ee15fc8aa8 [doc] module header for controls.jsx and visTypes.jsx (#4777)
* Provide much needed module header for the controls.jsx module

* Typos
2018-04-07 12:56:29 -07:00
Maxime BeaucheminandGitHub 627bdb2eb3 [dashboard] open in edit mode when adding a chart (#4772)
* [dashboard] open in edit mode when adding a chart

* Move dashboard unit tests to their own file

* fix tests

* Better URL management
2018-04-07 12:55:05 -07:00
EvelynTurnerandMaxime Beauchemin bd2cb9aada [Bug fix] Resolving key conflicts in Timeseries Annotation Layer when key is a string (#4768)
* Fix how the annotation layer interpretes the timestamp string without timezone info; use it as UTC

* [Bug fix] Fixed/Refactored annotation layer code so that non-timeseries annotations are applied based on the updated chart object after adding all data

* [Bug fix] Fixed/Refactored annotation layer code so that non-timeseries annotations are applied based on the updated chart object after adding all data

* Fixed indentation

* Fix the key string value in case series.key is a string

* Fix the key string value in case series.key is a string
2018-04-06 16:22:20 -07:00
Maxime BeaucheminandGitHub 4f2c2069f1 Improve controls layout for Table visualization (#4767) 2018-04-06 16:19:37 -07:00
Beto DealmeidaandMaxime Beauchemin 426c34ee86 Pass granularity from backend to frontend as ISO duration (#4755)
* Add ISO duration to time grains

* Use ISO duration

* Remove debugging code

* Add module to yarn.lock

* Remove autolint

* Druid granularity as ISO

* Remove dangling comma
2018-04-06 16:19:17 -07:00
Beto DealmeidaandMaxime Beauchemin 1a26485da4 Fix brush with annotations (#4773)
* Make annotation work with brush

* Add dispatch for events

* Fix lint

* Use xScale.clamp
2018-04-06 16:18:49 -07:00
Tamika TannisandMaxime Beauchemin 91366799d3 Add notes to contrib file about testing and code coverage (#4778) 2018-04-06 16:14:14 -07:00
Maxime BeaucheminandGitHub 59cabe7d8f [explore] set control default for *showminmax = false (#4766)
Let's make the defaults less crowded on the axes by not showing the min
and max values on the axes (bounds)
2018-04-06 15:46:38 -07:00
DAOReadyandMaxime Beauchemin 92230b8535 Add context to templates / respect slice timeout (#4673)
* added context to templates to be able to use filters in SQL

* respect slice timeout in favor of others

* added trailing comma
2018-04-05 09:58:11 -07:00
John BodleyandGitHub df4ff05441 [druid] Excluding refreshing verbose name (#4761) 2018-04-04 17:16:53 -07:00
Maxime BeaucheminandGitHub 68999b1407 [deck_multi] fixing issues with deck_multi (#4754)
* [deck_multi] fixing issues with deck_multi

* removing eslint comment
2018-04-04 16:52:14 -07:00
Maxime BeaucheminandGitHub adda30bf66 Set longer CSRF token duration (one week) (#4741)
Default is one hour (3600), also this entry makes the setting a bit more
discoverable
http://flask-wtf.readthedocs.io/en/stable/config.html?highlight=csrf
2018-04-04 15:55:32 -07:00
Maxime BeaucheminandGitHub 3b7e0a951a [sql lab] preserve schema through visualize flow (#4742)
* [sql lab] preserve schema through visualize flow

https://github.com/apache/incubator-superset/pull/4696 got tangled
into refactoring views out of views/core.py and onto views/sql_lab.py

This is the same PR without the refactoring.

* Fix lint
2018-04-04 13:38:37 -07:00
fabianmengesandMaxime Beauchemin 9a79d33e0d [BUGFIX]: JavaScripts max int is 2^53 - 1, longs are bigger (#4005)
* [BUGFIX]: Java scripts max int is 2^53 - 1 longs are bigger and frequently used as IDs this is a hacky fix.

* Keep tuple as tuple
2018-04-04 00:36:23 -07:00
PrashantandMaxime Beauchemin 7a497e2f6b [sql_lab]Disabled run query button if sql query editor is empty (#4728)
* Disabled run query button if sql query editor is empty

* Removing unnecessary white space

* Fix failing test for sql props

* Adding sql variable into propTypes and defaultProps
2018-04-03 14:58:23 -07:00
Maxime BeaucheminandGitHub f6fe11f76e [bugfix] convert metrics to numeric in dataframe (#4726)
* [bugfix] convert metrics to numeric in dataframe

It appears sometimes the dbapi driver and pandas's read_sql fail at
returning the proper numeric types for metrics and they show up as
`object` in the dataframe. This results in "No numeric types to
aggregate" errors when trying to perform aggregations or pivoting in
pandas.

This PR looks for metrics in dataframes that are typed as "object"
and uses pandas' to_numeric to convert.

* Fix tests

* Remove all iteritems
2018-04-02 21:48:14 -07:00
Kuisong TongandMaxime Beauchemin aa4173dc81 Pass timezone to Druid Query granularity (#4648)
superset appends DRUID_TZ info to intervals but not to granularity which causes one day's data return as 2 days. This fix is also pass DRUID_TZ to granularity.
2018-04-02 21:38:46 -07:00
Jeffrey WangandMaxime Beauchemin 8be0bde683 [BugFix] Allowing limit ordering by post-aggregation metrics (#4646)
* Allowing limit ordering by post-aggregation metrics

* don't overwrite og dictionaries

* update tests

* python3 compat

* code review comments, add tests, implement it in groupby as well

* python 3 compat for unittest

* more self

* Throw exception when get aggregations is called with postaggs

* Treat adhoc metrics as another aggregation
2018-04-02 21:37:00 -07:00
John BodleyandMaxime Beauchemin 68bfcefb27 [flask-appbuilder] Bumping version to 1.10.0 (#4603) 2018-04-02 21:35:10 -07:00
Maxime BeaucheminandGitHub 969ff0ce39 Fix deep equality logic (#4730)
* Fix deepequality logic

Zeroed-in on this while a Deck Scatter Plot chart was prompting for
refresh on-load.

I'm pretty sure using JSON.stringify as a proxy for deep equality is
wrong.

Not sure how to handle yarn.lock changes here. The changes on yarn.lock
are the result of "only" running `yarn add deep-equal`

* Adressing comments
2018-04-02 20:54:57 -07:00
Beto DealmeidaandMaxime Beauchemin ab7ba20009 Expose metrics to JS (#4654) 2018-04-02 17:48:56 -07:00
Gabe LyonsandGrace Guo 1ef856e57a including auto generated avg metrics in druid (#4718) 2018-04-02 16:08:25 -07:00
Gabe LyonsandGrace Guo e0f541f486 easier tab closing in sqllab (#4738) 2018-04-02 14:59:08 -07:00
Maxime BeaucheminandGitHub 11c9e67ebb [explore] don't prompt to 'Run Query' on viewport change (#4729) 2018-04-02 13:35:51 -07:00
Maxime BeaucheminandGitHub 221b35f36d Add '.1%' to number format options (#4720) 2018-04-01 21:13:07 -07:00
Maxime BeaucheminandGitHub 069d61c53f [sqllab] fix data grid's instant search function (#4717)
* [sqllab] fix data grid's instant search function

It looks like any non-string type would break the search feature.
of `FilterableTable`

* Addressing comments
2018-03-30 10:22:10 -07:00
John BodleyandGitHub b3442a7b53 [cli] Deprecating gunicorn/flower dependencies (#4451) 2018-03-30 09:28:16 -07:00
timifasubaaandJohn Bodley e25535c693 Remove redundant has_access definition in superset (#4689)
* update has_access to has_method_access

* move has_access to sm and rename to has_method_access
2018-03-29 17:54:11 -07:00
John BodleyandGrace Guo d49a0e7958 [sqllab] Using app context for Celery task (#4669) 2018-03-29 16:11:23 -07:00
Maxime BeaucheminandGitHub 29678680ee Use 3 letters month prefix in default date format (#4693) 2018-03-29 14:41:22 -07:00
Maxime BeaucheminandGitHub ed9a56b4ab [sql lab] ctrl-r hotkey should run latest SQL (#4719)
Turns out the SQL would only be committed to the redux store `onBlur`
event to avoid the laggy typing. The delay come from the localStorage
binding that add enough millisecs of delay to feel odd while typing.

I now store the most recent SQL in the local and use that instead.
2018-03-29 14:32:03 -07:00
Maxime BeaucheminandGitHub 9ee78d16d4 Add missing perms to sql_lab role (#4714)
The SQL Lab related role that is created programmatically is missing
permissions that make SQL Lab functional.
2018-03-29 14:24:11 -07:00
AlagappanandMaxime Beauchemin f952ec2f06 Remove trailing '/' from Mailing list link in README file (#4709) 2018-03-29 11:12:36 -07:00
Gabe LyonsandMaxime Beauchemin 68dec24542 [Explore] Streamlined metric definitions for SQLA and Druid (#4663)
* adding streamlined metric editing

* addressing lint issues on new metrics control

* enabling druid
2018-03-28 17:41:29 -07:00
Beto DealmeidaandMaxime Beauchemin 7e1b6b7363 Rename no_reload (#4703) 2018-03-28 14:44:01 -07:00
michellethomasandGrace Guo 485b0c275e Fixing label issue when columnType is null (#4700) 2018-03-27 17:54:24 -07:00
Joe BordesandMaxime Beauchemin d8d860facc i18n(es_es) (#4687) 2018-03-27 17:48:42 -07:00
timifasubaaandJohn Bodley 8dd052de4b [security] Refactor security code into SupersetSecurityManager (#4565)
* move access permissions methods to security manager

* consolidate all security methods into SupersetSecurityManager

* update security method calls

* update calls from tests

* move get_or_create_main_db to utils

* raise if supersetsecuritymanager is not extended

* rename sm to security_manager
2018-03-27 16:46:02 -07:00
Maxime BeaucheminandGitHub f510956da2 Hotkeys in SQL Lab (#4680)
* Hotkeys

* Making it work in AceEditor

* Addressing comments
2018-03-27 15:54:54 -07:00
Maxime BeaucheminandGitHub deb211154d Docs on how to package a release + CHANGELOG for 0.24.0 (#4697)
* Docs on how to package a release + CHANGELOG for 0.24.0

* Addressing comments

* Add pypi perm info
2018-03-27 15:48:57 -07:00
John BodleyandGitHub f9d85bd2e1 [druid] Updating refresh logic (#4655) 2018-03-26 18:35:43 -07:00
michellethomasandGrace Guo 52b925fee8 Fix bug with sorting columns in group by using time shift (#4683) 2018-03-26 10:55:43 -07:00
Maxime BeaucheminandGitHub 336a1064d6 CRUD hints around SQL expressions (#4645)
* CRUD hints around SQL expressions

* Addressing comment
2018-03-26 09:44:37 -07:00
Ville BrofeldtandMaxime Beauchemin 4ec82582c6 Preprocess SQL Lab query prior to checking syntax (#4686)
Syntax checking doesn't work if jinja templates haven't been prerendered.
Also remove unreachable return statement. Fixes #4288.
2018-03-26 09:42:33 -07:00
Maxime BeaucheminandGitHub 097a37a1a1 Fix up the Lyft color scheme (#4684)
Previous color scheme had too few colors, some with light tones
and wasn't hooked up to the array.
2018-03-26 09:33:45 -07:00
Hugh A. Miles IIandMaxime Beauchemin 9abc5c724f Add lyftColor to the game 💯 (#4682)
* add lyftColor to the game 💯

* fix json
2018-03-23 18:02:29 -07:00
timifasubaaandJohn Bodley 00cab7e107 add yarn lock info to contributing.md (#4679) 2018-03-23 15:31:47 -07:00
Riccardo MagliocchettiandGrace Guo 76394d3f8f forms: make csv import parse dates accepts a list of columns (#4639)
Instead of a boolean which has way less chances to work. While
at it add a proper label for the "con" field.

Fixes #4637
2018-03-23 14:16:02 -07:00
timifasubaaandGrace Guo f11cde9eb8 add yarn.lock (#4674) 2018-03-23 14:14:00 -07:00
Maxime BeaucheminandGitHub b24a6fd4b5 Fix setup.py, comma makes download_url a tuple (#4676) 2018-03-23 11:21:19 -07:00
EvelynTurnerandGrace Guo 73f7f817d3 [Bug fix] Fixed/Refactored annotation layer code so that non-timeseries annotations are applied based on the updated chart object after adding all data (#4630)
* Fix how the annotation layer interpretes the timestamp string without timezone info; use it as UTC

* [Bug fix] Fixed/Refactored annotation layer code so that non-timeseries annotations are applied based on the updated chart object after adding all data

* [Bug fix] Fixed/Refactored annotation layer code so that non-timeseries annotations are applied based on the updated chart object after adding all data

* Fixed indentation
2018-03-22 23:10:40 -07:00
Alexander TandMaxime Beauchemin d427f6a322 Update messages.po (#4670) 2018-03-22 17:47:15 -07:00
yanyuandMaxime Beauchemin b9965230df fix: epoch_s and epoch_ms to date time (#4664) 2018-03-22 08:13:38 -07:00
Beto DealmeidaandMaxime Beauchemin ec069676fd Better default for MAPBOX_API_KEY (#4660) 2018-03-21 17:13:09 -07:00
Jeffrey WangandGrace Guo 33aa976e3d Cache the query string (#4633)
* Cache the query string

* misc linter
2018-03-21 13:13:36 -07:00
Maxime BeaucheminandGitHub fc47729233 [sql lab] search to use fist&last name instead of username (#4628)
In our environment username are not readable coming out of oauth, so
we'd rather use first&last when available.
2018-03-19 22:16:17 -07:00
Maxime BeaucheminandGitHub 1435840e38 Set filter_select_enabled default to True for Druid (#4608) 2018-03-19 22:15:43 -07:00
Maxime BeaucheminandGitHub 8942436ece [examples] let's not use 'date' as a col name (#4555)
'date' is a reserved word in most database
2018-03-19 22:15:19 -07:00
Maxime BeaucheminandGitHub ed9867c0cc Use 'count' as the default metric when available (#4606)
* Use 'count' as the default metric when available

Count is a much better default than the current behavior which is to use
whatever the first metric in the list happens to be.

* Addressing nits
2018-03-19 21:51:51 -07:00
michellethomasandJohn Bodley 5c98f5642b Fix sqllab numpy array (#4629)
* Fixing error with sqllab numpy array

* Adding tests for failing sqllab data type
2018-03-19 11:43:04 -07:00
Beto DealmeidaandMaxime Beauchemin ba9379b949 Only show overlay if container is set (#4601)
* Pass width in props

* Only load overlay if container is set
2018-03-19 11:23:19 -07:00
Maxime BeaucheminandGitHub 83f8f98ae3 [cosmetic] removing table border in ModelView list (#4638) 2018-03-19 11:02:40 -07:00
Hugh A. Miles IIandMaxime Beauchemin e9b5b1a305 part1 (#4641) 2018-03-19 11:02:03 -07:00
michellethomasandJohn Bodley 97afcd5809 Adding to list of generated-members to fix pylint errors (#4632)
* Adding to list of generated-members

* Updating to ignore-classes sqlalchemy scoped_session
2018-03-16 16:20:25 -07:00
michellethomasandChris Williams 3f1dfb3173 Adding column type label to dropdowns (#4566)
* Adding column type label to dropdowns

* Changing the style of column type label

* Adding tests for ColumnTypeLabel

* Adding tests for time and fixing if statement order

* Changing location of ColumnTypeLabel tests

* Updating ColumnTypeLabel structure
2018-03-16 14:19:09 -07:00
John BodleyandGitHub 6875868cf6 Merge pull request #4627 from mistercrunch/fix_run_extra
Move run_extra_queries outsize of BaseViz init
2018-03-16 13:21:57 -07:00
Maxime Beauchemin b906fece68 Move run_extra_queries outsize of BaseViz init 2018-03-16 10:05:15 -07:00
Maxime BeaucheminandGitHub 93ec76f757 [sql lab] reduce the number of metadata calls when loading a table (#4593) 2018-03-15 17:53:34 -07:00
Beto DealmeidaandMaxime Beauchemin da842f113a Fix function name (#4620) 2018-03-15 17:52:30 -07:00
Beto DealmeidaandMaxime Beauchemin 7da164d386 Remove group by from deck.gl viz (#4622) 2018-03-15 17:48:18 -07:00
Maxime BeaucheminandGitHub 1e0bcba568 Allowing config flag to turn off flask-compress (#4617) 2018-03-15 17:17:04 -07:00
Chris WilliamsandGrace Guo e2bd40c89f [bug fixes] annotations <> x domains, zeros in text (#4194)
* [bugs] account for annotations in nvd3 x scale domain, fix dynamic width explore charts, allow 0 in text control

* tweak TextControl casting

* [annotations] filter separately from finding data extent
2018-03-15 15:13:24 -07:00
Grace GuoandGitHub 7c5bc8d90c fix mapbox viz (#4621) 2018-03-15 15:06:41 -07:00
John BodleyandMaxime Beauchemin 36fa6cd7df [contributing] Removing obsolete code climate reference (#4616) 2018-03-14 16:50:25 -07:00
Beto DealmeidaandMaxime Beauchemin 7089344623 Legend for deck.gl scatterplot (#4572)
* Initial work

* Working version

* Specify legend position

* Max height with scroll

* Fix lint

* Better compatibility with nvd3

* Fix object.keys polyfill version

* Fix lint
2018-03-14 16:40:14 -07:00
Beto DealmeidaandMaxime Beauchemin 86a03d1dc8 Show "Range Filter" by default (#4604)
* Show Range Filter by default

* Auto show brush

* Backwards compat

* Small fix
2018-03-14 16:38:47 -07:00
Gabe LyonsandChris Williams 3371c8bd5c overriding annotation and layers' control tab (#4609) 2018-03-14 00:05:06 -07:00
Chris WilliamsandGitHub 95a9b046f8 [slice_json] pass slice id to get_form_data() (#4607) 2018-03-13 14:49:06 -07:00
John BodleyandGitHub 4250e239a2 Merge pull request #4590 from michellethomas/fixing_double_escape_presto
Removing escape_sql so we dont double escape
2018-03-13 12:19:44 -07:00
John BodleyandGitHub 4e494b264b Merge pull request #4579 from michellethomas/removing_title_label
Removing [dashboard] and [slice] titles to show name
2018-03-13 12:00:11 -07:00
John BodleyandGitHub de4409835e Merge pull request #4573 from john-bodley/john-bodley-cache-fix-datasource-uid
[cache] Ensuring that the datasource UID is defined
2018-03-13 10:55:40 -07:00
John BodleyandGitHub 037c04102f Merge pull request #4602 from john-bodley/john-bodley-druid-sync-fix-filter
[druid] Adding cluster filter for refresh
2018-03-13 10:53:36 -07:00
michellethomasandMaxime Beauchemin 1d0ec9fe6e timeseries_limit should not be required for phase 2 (#4581) 2018-03-13 09:25:14 -07:00
Michelle Thomas 882921825c Changing the title for explore pages 2018-03-12 17:59:49 -07:00
John Bodley 9604e1dd14 [druid] Adding cluster filter for refresh 2018-03-12 16:23:08 -07:00
oxydashandGrace Guo 8951990d6e [BugFix] Resizing widgets problem #4596 (#4597) 2018-03-12 14:27:02 -07:00
John Bodley 26257d94f5 [cache] Ensuring that the datasource UID is defined 2018-03-12 09:49:32 -07:00
Hugh A. Miles IIandMaxime Beauchemin 2bc089ef8d Added new exception class and start of better exception/error handling (#4514)
* rebase and linting

* change back

* wip

* fixed broken test

* fix flake8

* fix test
2018-03-11 22:07:51 -07:00
oxydashandMaxime Beauchemin ff41f40721 Add ignore git @eaDir Synology directory (#4599) 2018-03-11 21:54:49 -07:00
Ville BrofeldtandMaxime Beauchemin ee073eee23 Add Aktia Bank in organizations list who use Superset (#4591)
PRs and #4413 and #4448 contributed while implementing Superset at Aktia.
2018-03-11 11:45:47 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 1d27fb30ff docs: fixup code blocks rendering (#4594) 2018-03-11 11:34:58 -07:00
Michelle Thomas e1af421f0c Removing escape_sql so we dont double escape 2018-03-09 15:37:17 -08:00
Riccardo MagliocchettiandMaxime Beauchemin f9881101ee histograms: fixup left margin assigment (#4532) 2018-03-09 15:31:34 -08:00
Beto DealmeidaandMaxime Beauchemin 1647004486 Return __time in Druid scan (#4504)
* Return __time in Druid scan

* use constant instead of __timestamp

* Fix lint
2018-03-09 15:28:11 -08:00
Hugh A. Miles IIandMaxime Beauchemin c6af4882cd [sqllab] Added share button to bottom menu (#4584)
* added sharebtn

* address comments
2018-03-09 15:10:36 -08:00
Maxime BeaucheminandGitHub d522292b01 [sql lab] option to disable cross schema search (#4551)
* [sql lab] disable cross schema search

This is killing our metastore as people type it emits large
all-table-dump as they hit the keystroke. It never returns as it times
out and hammers the poor metastore.

Also some improvements around the disabling the table select on the left
panel and having the table name not be sticky.

* typo
2018-03-09 14:54:39 -08:00
Maxime BeaucheminandGitHub 34a081b926 [sql lab] comment injection hook (#4585) 2018-03-09 11:27:36 -08:00
oxydashandMaxime Beauchemin 4ffc56f1c9 [Translate] Added Full Russian Translation (#4586) 2018-03-09 11:13:37 -08:00
John BodleyandGitHub c85eea3037 Merge pull request #4582 from john-bodley/john-bodley-javascript-codecov
[code-climate] Deprecating Code Climate from JavaScript tests
2018-03-09 09:02:14 -08:00
John Bodley 3fbadd68a4 [code-climate] Deprecating Code Climate from JavaScript tests 2018-03-08 22:40:08 -08:00
Pithawat VachiramonandChris Williams b512da8002 Adding option to visualize negative values in Table view (#4570)
* Adding option to visualize negative values in Table view

* Adding option for highlighting and right aligning

* Fixed typo

* Fixed case and condition

* Formatting

* Aligning left and default changes

* Changing default
2018-03-08 18:07:49 -08:00
Michelle Thomas 402c7ddb26 Removing [dashboard] and [slice] titles to show name 2018-03-08 13:55:00 -08:00
Grace GuoandGitHub 9edbd64c5d [Explore] Save custom url parameters when user save slices (#4578)
* [Explore] Save url parameters when user save slices

* remove print

(cherry picked from commit bd9ecbe)

* add unit test

(cherry picked from commit 0f350ad)

* wrapping all request params into url_params

(cherry picked from commit 17197c1)
2018-03-08 13:19:41 -08:00
EvelynTurnerandMaxime Beauchemin 42ebcaad40 Evelynturner/annotation timezone fix2 (#4550)
* Fix how the annotation layer interpretes the timestamp string without timezone info; use it as UTC

* Fix how the Interval annotation layer interpretes the timestamp string without timezone info; use it as UTC
2018-03-08 10:19:36 -08:00
André NeidertandMaxime Beauchemin 9ad50c9d55 Basic Portuguese Brazilian Translation (#4472)
* Basic Portuguese Brazilian Translation

* removing incorrect indentation

* Correct language name

* Improving language description

* Improving flag description
2018-03-07 17:43:55 -08:00
Kyle TravisandMaxime Beauchemin 31a995714d [bug] Fix CSV upload feature for DB with password (#4562)
* Use sqlalchemy_uri_decrypted in create_engine calls

* Update tox mysql uri

* Include mysql charset=utf8 for py2.7 in tox.ini
2018-03-07 17:42:52 -08:00
John BodleyandMaxime Beauchemin d494c82930 [landscape.io] Deprecating .landscape.yml (#4563) 2018-03-07 17:40:23 -08:00
John BodleyandMaxime Beauchemin 0dfa3b99dd [requires.io] Removing obsolete requires.io link (#4564) 2018-03-07 17:39:51 -08:00
John BodleyandGitHub 826d0631e0 Merge pull request #4567 from john-bodley/john-bodley-payload-error-status-code
[payload] Set status code on error rather than query status
2018-03-07 13:53:06 -08:00
John Bodley 1e8cd0e61e [payload] Set status code on error rather than query status 2018-03-07 13:26:20 -08:00
Grace GuoandGitHub 369f652bfc [bug] fix shortener url (#4560)
[bug] fix shared explore url
2018-03-07 10:57:33 -08:00
Maxime BeaucheminandGitHub b63dc91cd1 Expose hook to inject database connection logic on the fly (#4505)
* Expose hook to inject database connection logic on the fly

This environment configuration setting hook allows administrators to
alter the database connection parameters on the fly based on user
information. This can be use for a variety of purposes:

* rewire a subset of users to use different database user accounts
* pass user related information to the database for logging or QoS
purposes
* ...

* Fixes
2018-03-06 22:35:46 -08:00
Maxime BeaucheminandGitHub d817b8ddbb Setting up compression using flask-compress (#4543) 2018-03-06 21:19:29 -08:00
John BodleyandMaxime Beauchemin ef4e5ecedf [bugfix] Fixing regression from #4500 (#4549) 2018-03-06 21:19:13 -08:00
John BodleyandMaxime Beauchemin 01e0a2f071 [landing] Making Dashboards the first/default tab (#4553) 2018-03-06 18:49:17 -08:00
Maxime BeaucheminandGitHub 2e780e4034 Removing files from MANIFEST.in (#4542) 2018-03-06 09:39:31 -08:00
John BodleyandGitHub 71d7196137 Merge pull request #4533 from john-bodley/john-bodley-replace-coveralls-with-codecov
[coverage] Replacing coveralls with codecov
2018-03-06 08:00:16 -08:00
John BodleyandMaxime Beauchemin 150768ee30 [presto] Removing patched presto (#4530) 2018-03-05 23:16:02 -08:00
John BodleyandMaxime Beauchemin 06c5077691 [dump.rdb] Removing rouge file (#4536) 2018-03-05 23:11:40 -08:00
Luciano ArangoandMaxime Beauchemin 2c5adb6dc3 Add ScopeAI (#4541) 2018-03-05 23:11:01 -08:00
John BodleyandGitHub 6e0ece76a0 Merge pull request #4534 from john-bodley/john-bodley-setup-url
[setup] Fixing repo URLs
2018-03-05 18:03:04 -08:00
John BodleyandGitHub 48430a1918 Merge pull request #4500 from john-bodley/john-bodley-fix-pr-4396
[bugfix] Fixing regression introduced in #4396
2018-03-05 16:51:09 -08:00
John Bodley b01a9bba1f [setup] Fixing URLs 2018-03-05 13:06:08 -08:00
Riku PelkonenandGrace Guo 007ad351cf Pass datasource as form_data param (#4538)
* Pass datasource as form_data param

* add comma after datasource

* change test to match new addSlice
2018-03-05 11:43:59 -08:00
John Bodley 4f7258aaca [coverage] Replacing coveralls with codecov 2018-03-04 13:27:26 -08:00
Ariel ShemtovandGrace Guo 413585448e Superset issue #4512: fixing histogram (#4513)
* fixing histogram axes and colors, adding normalized and x-axis label options

* adding y-axis label option
2018-03-02 13:45:46 -08:00
EvelynTurnerandGrace Guo 41defdceaa Fix how the annotation layer interpretes the timestamp string without timezone info; use it as UTC (#4511) 2018-03-01 21:02:04 -08:00
Grace GuoandGitHub 2637d3d5e2 [dashboard] (#4515) 2018-03-01 15:48:04 -08:00
Gabe LyonsandGrace Guo 79bb54a173 chart style options get their own tab (#4482) 2018-03-01 14:24:09 -08:00
Jeffrey WangandGrace Guo 3a58dc7ecf Make margin width based on container width instead of slice width (#4487)
* Make width based on container width instead of slice width

* fix const var name and add comment

* Actually 30 looks good too
2018-02-28 15:48:15 -08:00
John Bodley 7440d34936 [payload] Fixing regression introducted in ##4396 2018-02-28 14:23:20 -08:00
Gabe LyonsandGrace Guo 764a92cd10 [Explore] applying refresh chart overlay when chart is stale (#4486)
* adding refresh chart overlay when chart is out of sync with control panel

* fading the visualization when stale

* addressing comments from team on layout of UI
2018-02-28 14:19:06 -08:00
Maxime BeaucheminandGitHub 849a2cecee Add https support for Druid (#4480)
* Add https support for Druid

* addressing comment
2018-02-28 10:12:17 -08:00
Maxime BeaucheminandGitHub 264822b1ee Introduce an onInit method for when a new viz_type is selected (#4491)
* Introduce an onInit method for when a new viz_type is selected

This allows for clearing certain controls where/when needed. For
instance here, when loading deck_scatter, even if there was a time
granularity picked for the previous viz_type, we want to unselect it.

* making it functional
2018-02-27 22:36:52 -08:00
timifasubaaandGrace Guo 404e2d552a fixes to csv - hive upload (#4488) 2018-02-27 22:13:06 -08:00
timifasubaaandMaxime Beauchemin 8626793655 check for access before requesting access (#4469) 2018-02-27 17:43:37 -08:00
Maxime BeaucheminandGitHub c2b42c49c6 Change limit form 50k to 10k (#4496) 2018-02-27 16:44:02 -08:00
Maxime BeaucheminandGrace Guo 83524f97d7 [WiP] Cleanup & fix URL scheme for the explore view (#4490)
* Improve URLs

* Fix js tests
2018-02-27 15:08:06 -08:00
Grace GuoandGitHub bcca1717f2 [dashboard] Fix JS error when position_json data is empty (#4485) 2018-02-27 10:18:32 -08:00
Hugh A. Miles IIandMaxime Beauchemin 11ea83ecf1 New Landing Page v1.0 (#4463)
* Updated welcome landing page

* fixed test and linting

* linting

* addressing comments

* fix test

* fix test

* remove unneeded var

* add magic comments
2018-02-26 17:02:41 -08:00
Gabe LyonsandMaxime Beauchemin 56f65158a2 [Explore] highlighting run query when chart is stale on explore view (#4459)
* highlighting run query when chart is stale on explore view

* refactoring control changed code
2018-02-26 10:57:20 -08:00
Maxime BeaucheminandGitHub 2932585c65 [geo] add controls for minRadiusPixels and maxRadiusPixels in deck_scatter (#4467) 2018-02-26 10:56:19 -08:00
John BodleyandMaxime Beauchemin d57a37e341 [flake8] Adding flake8-coding (#4477) 2018-02-25 15:06:11 -08:00
Jinyang ZhouandMaxime Beauchemin ff685db4d9 add organization (#4478) 2018-02-25 15:00:10 -08:00
Raffaele SpangaroandMaxime Beauchemin 094eb71f86 [FilterBox] Make filterbox localizable (#4466)
* Make filterbox i18n

* Change double-quote to single-quote in localization function t() to pass
lint test

* Updated .po file with italian translation. New strings generated and translated via babel-extract
2018-02-25 14:58:14 -08:00
John BodleyandMaxime Beauchemin e112e4417c [flake8] Adding future-import check (#4476) 2018-02-23 16:42:09 -08:00
John BodleyandGrace Guo 8aac63e74c [flake8] Fixing additional flake8 issue w/ the presence of ignore (#4474) 2018-02-23 14:46:26 -08:00
Hugh A. Miles IIandMaxime Beauchemin cacf53c92e Pass param of limit for recent activity (#4475) 2018-02-23 14:18:06 -08:00
timifasubaaandMaxime Beauchemin 5830846060 [hotfix] resolve utf-8 encoding issue in db migration (#4461)
* [hotfix] resolve utf-8 encoding issue in db migration

* make python string unicode

* Update e866bd2d4976_smaller_grid.py

* Update e866bd2d4976_smaller_grid.py

* rearrange the debug message

* Update e866bd2d4976_smaller_grid.py
2018-02-21 17:45:28 -08:00
Maxime BeaucheminandGrace Guo 0eecec10cd [explore] allow URL shortner even if no slice exist (#4457)
recent regression perhaps from the PR that moved to using POST .
2018-02-21 10:35:38 -08:00
Maxime BeaucheminandGitHub a373db24f0 Allowing config flag to turn off javascript controls (#4400)
* Allowing config flag to turn off javascript controls

* lint

* one line, avoiding mutation

* Setting JS fields as readOnly
2018-02-21 08:31:07 -08:00
Beto DealmeidaandMaxime Beauchemin c3176579e0 Make instant controls store state in URL (#4449)
* Add to history on instant control change

* Update latestQueryFormData on render triggered

* Add new message type

* Update latestQueryFormData in UPDATE_QUERY_FORM_DATA
2018-02-20 17:08:07 -08:00
Maxime BeaucheminandGitHub d4a2f4ef36 Make npm run dev-fast the default (#4454) 2018-02-20 17:07:33 -08:00
Gabe LyonsandMaxime Beauchemin b60965b8fa [gitignore] Adding venv to .gitignore (#4456)
* fixing spacing issue on internationalization dropdown

* adding venv to gitignore
2018-02-20 17:07:16 -08:00
Maxime BeaucheminandGitHub 5c35a2d210 A collection of bug fixes (#4444) 2018-02-20 14:41:35 -08:00
Gabe LyonsandGrace Guo c336fe5707 fixing spacing issue on internationalization dropdown (#4455) 2018-02-20 14:13:46 -08:00
Maxime BeaucheminandGitHub 177d7c07e6 [bugfix] address issue 4206 (#4452)
closes 4206
2018-02-19 09:56:25 -08:00
Grace GuoandGitHub 5768a1fe5e for 48 columns layout, adjust default size and layout for newly added slices (#4446) 2018-02-19 00:05:57 -08:00
Ville BrofeldtandMaxime Beauchemin d6c197f8ac Remove comments from queries in SQL Lab that break Explore view (#4413)
* Remove comments from queries in SQL Lab that break Explore view

This fixes an issue where comments on the last line of the source query comment out the closing parenthesis of the subquery.

* Add test case for SqlaTable with query with comment

This test ensures that comments in the query are removed when calling SqlaTable.get_from_clause().

* Add missing blank line class definition (PEP8)
2018-02-18 16:30:11 -08:00
m4nedaandMaxime Beauchemin f46bb533cb fix typo. "グルプ分け可能" => "グループ分け可能" (#4450) 2018-02-17 09:25:17 -08:00
Grace GuoandGitHub 15aa0c5cdd remove html tag in timeout error message (#4447) 2018-02-16 19:44:29 -08:00
Maxime BeaucheminandGitHub 88e91e6d8f Improve default placeholder text on SelectControl (#4442) 2018-02-16 15:16:55 -08:00
Ville BrofeldtandMaxime Beauchemin dc48673647 Removed double call to ConnectorRegistry.sources (#4448)
Removing the double call didn't cause any adverse effects upon removal. If required, a comment motivating the double call should be added.
2018-02-16 15:16:25 -08:00
timifasubaaandMaxime Beauchemin 7e082968dd Add link on how to get permission to permission error (#4408)
* add flag to config

* add troubleshooting link if there is a link

* nits
2018-02-15 20:28:03 -08:00
Hugh A. Miles IIandMaxime Beauchemin 9478291bf6 Added Example snippet for setting up Redis cache (#4434)
* Added Example snippet for setting up Redis cache

* Update installation.rst

* Update installation.rst
2018-02-15 20:27:03 -08:00
Beto DealmeidaandMaxime Beauchemin 4ee0833b27 Play scrubber (#4336)
* Initial working prototype

* Small fixes

* Refactoring dekgl

* Show all data when no time grain is selected

* Refactor layers

* Standardize function name

* Fix exports

* Fix require

* Initial working prototype

* Small fixes

* Show all data when no time grain is selected

* Moving play bar to correct location

* Split component

* Working on CSS

* Remove control

* Positioning the play slider

* Fix refresh of slider state

* Fix lint

* Small fixes

* Smoother animation for scans

* Fix versions

* Play/pause with spacebar.

* Small fixes

* Clean stuff that went to other PRs

* Address issues

* Refactor scatter animation
2018-02-15 17:55:11 -08:00
Maxime BeaucheminandGitHub 6e1d169d0f Change current thumbnails to smaller ones. (#4430)
* Change current thumbnails to smaller ones.

* More density in the VizTypesControl modal
2018-02-15 17:53:20 -08:00
Jeffrey WangandMaxime Beauchemin 7922ccfddc Pass in cache timeout for async queries (#4436)
* Pass in cache timeout for async queries

* Default cache timeout to 0 if default env var is not set

* check for 0 timeout
2018-02-15 17:53:00 -08:00
Jay LindquistandMaxime Beauchemin 0c87e23877 Fix separator visualization by propagating header height (#4437) 2018-02-15 17:48:57 -08:00
Jay LindquistandMaxime Beauchemin d6f1024d99 Make chart title backgrounds transparent to prevent buttonface color in IE (#4438) 2018-02-15 17:47:40 -08:00
Maxime BeaucheminandGitHub 680bfc1b43 [dashboard] more granular grid layout (#4416)
Moving to a grid that is 4 times more granular. 48 columns.

Shipping a db migration script which will upgrade the position metadata
to reflect this change.

Also adapting the examples to the new grid parameters.
2018-02-15 17:47:19 -08:00
Hugh A. Miles IIandMaxime Beauchemin 1e99f9eb95 Added check cache key util (#4432)
* added check cache key util

* change docstring

* add has_access_api decorator
2018-02-15 13:43:58 -08:00
Raffaele SpangaroandMaxime Beauchemin e943c25790 Updated Italian Translation (#4418)
* Updated Italian Translation

* Merging changes suggested by @xrmx

* Improved translation and typo fixed with changes suggest by @xrmx
2018-02-14 16:21:19 -08:00
Raffaele SpangaroandMaxime Beauchemin 21e495c1ef Add .1s option to D3 Format dropdown (#4431) 2018-02-14 16:20:59 -08:00
timifasubaaandMaxime Beauchemin fa0aa33767 Disable user access request (#4405)
* add feature flag to config

* wrap check around a feature flag

* add flag to the model view

* remove access request from seurity tests
2018-02-14 14:49:22 -08:00
Riccardo MagliocchettiandMaxime Beauchemin 22d555b14e Bump dependencies with security issues (#4427)
* assets: bump mathjs to 3.20.2

* assets: bump moment to 2.20.1
2018-02-14 09:44:44 -08:00
Grace GuoandGitHub 342180b263 [Explore view] Use POST method for charting requests (#3993)
* [Explore view] Use POST method for charting requests

* fix per code review comments

* more code review fixes

* code review fix: remove duplicated calls for getting values from request

* [Explore view] Use POST method for charting requests

* fix per code review comments

* more code review fixes

* code review fix: remove duplicated calls for getting values from request
2018-02-13 17:21:15 -08:00
Maxime BeaucheminandGitHub d2d973153f Unset 'series limit' default from 50 to null (#4410)
Setting "Series Limit" by default results in a subquery (or 2 phase)
which can be suboptimal / unecessary where low cardinality dims
are used.
2018-02-13 11:17:19 -08:00
Chun-LingChenandMaxime Beauchemin 5badec38e4 use full path in case of there are query params (#4411) 2018-02-13 11:17:02 -08:00
Maxime BeaucheminandGitHub e0bbb0c77e [geo] introduce "Auto Zoom" control (#4389)
* [geo] introduce "Auto Zoom" control

On geospatial visualization, checking the "Auto Zoom" control makes it
such that the viewport is fitted to the data upon rendering the chart.

For dashboards with region filters, the map should jump to the right
position.

Eventually we should enhance this to fly and ease to the position in an
animated way.

* Added TODO notes
2018-02-13 11:10:15 -08:00
Grace GuoandGitHub db24cef03b [SqlLab] Fix a few UI issues (#4401)
1. tab alignment css
2. if tabs are more than 1 row, need to calculate content area height
3. clean up height calculation.
2018-02-13 10:18:09 -08:00
mxmzdlvandMaxime Beauchemin 4a6adb2f27 Check class name string instead of checking the instance (#4404)
This fixes an issue with the newer Google's DBAPI library, which moved Row from google.cloud.bigquery._helper.Row to google.cloud.bigquery.Row, causing ImportError
2018-02-12 21:16:42 -08:00
Maxime BeaucheminandGitHub d85cd5a972 [error handling] 'Time Comparison' query returns no data (#4380) 2018-02-12 11:48:14 -08:00
Xiao HanyuandGrace Guo 5305bdb267 Typo fix: dashbaord -> dashboard. (#4383) 2018-02-10 14:52:17 -08:00
Maxime BeaucheminandGitHub ae7a9dc63d Fix markup broken since cache related changes (#4396) 2018-02-09 15:55:45 -08:00
Rodolphe QuiédevilleandGrace Guo f9106f80fd Add PeopleDoc in organizations list who use superset (#4178) 2018-02-09 15:11:29 -08:00
David DworkenandMaxime Beauchemin 4ff17ffc8d Fix 4 security vulnerabilities (#4390)
* Switched yaml.load to yaml.safe_load to prevent code execution via crafted yaml files

Python's yaml.laod can lead to code execution via crafted yaml files such as:

```
code_exec: !!python/object/apply:subprocess.check_output ['ls']
```

* Fixed XSS via bleach

It was possible to get an XSS via the markdown library via simply setting a description containing arbitary HTML tags.
It was also possible to create links that went to the `javascript:` link handler (eg `[example](javascript:alert(0)`)
Using bleach to sanitize it solves both of these.

* Added XFO header by default to prevent clickjacking attacks

Note that with this application clickjacking can be relatively severe via the SQLLab functionality
which allows executing arbitary SQL.

* Added justification for dangerouslySetInnerHTML

* Fixed linting errors

* Fixed linting errors
2018-02-09 14:33:29 -08:00
Maxime BeaucheminandGitHub 1769804ffd Minor fixes to sunburst (#4349)
* Minor fixes to sunburst

closes https://github.com/apache/incubator-superset/issues/4340

* nit
2018-02-09 14:27:22 -08:00
Jay LindquistandMaxime Beauchemin 54d387598d Add permission checks to save_or_overwrite_slice (#4346)
* Add permissions checks for save_or_overwrite_slice

* Change is_owner to check_ownership

* Add translation to chart and dashboard error messages

* Appease the python linter by using single quotes
2018-02-08 16:40:46 -08:00
Grace GuoandGitHub 5ab4915a1f Remove permission check for frontend logging API (#4388) 2018-02-08 11:50:51 -08:00
Maciej BryńskiandMaxime Beauchemin 387bf766d3 Superset issue #4323 (#4353)
Adding configurable poll interval for Hive Engine
2018-02-07 21:29:31 -08:00
Maxime BeaucheminandGitHub 0480fa0121 Bump pydruid to 0.4.1 (#4377) 2018-02-07 16:45:44 -08:00
John BodleyandMaxime Beauchemin 6f1150fef4 [revert] Reverting PR #4062 (#4359) 2018-02-07 15:56:07 -08:00
Maxime BeaucheminandGitHub 2e172d77cf Fix caching issues (#4316) 2018-02-07 14:49:19 -08:00
Maxime BeaucheminandGitHub 8fe1f8fb3f Set default row_limit to 50k (#4372) 2018-02-07 14:34:14 -08:00
Maxime BeaucheminandGitHub c4eba9e467 [line] improve feature (#4363)
Require Since and Until parameter as they are needed to time shift
2018-02-07 14:33:04 -08:00
Maxime BeaucheminandGitHub 90d9616f2b Remove dangerouslySetInnerHTML in StackTraceMessage component (#4373)
Druid sometimes returns error message that are contained in "<>", as in
`<urlopen error [Errno 61] Connection refused>`. Since Superset's
approach is often to bubble up messages coming from external library,
it's impossible to predict whether it will contain special characters.

There are some cases where our error handling does return some html
(presto?),
but we should manage that upstream. Plus the current setup has security concerns,
so let's move away from that.
2018-02-07 14:32:45 -08:00
Maxime BeaucheminandGitHub 803738436e Bump python dependencies (#4341)
* Bump python dependencies

* Fix conflict
2018-02-07 14:32:29 -08:00
Beto DealmeidaandMaxime Beauchemin f14c1bb593 Add hour grain to Sqlite (#4333) 2018-02-07 14:07:15 -08:00
Maxime BeaucheminandGitHub 31a0b6e5b0 [druid] fix bug around handling NULLs (#4358)
fillna would miss out on identifying STRING columns for Druid and
replace None in string columns with a numeric `0`. This
mixed type column would confuse
pandas down the line on some operations like `df.pivot_table`.
2018-02-07 08:19:48 -08:00
Xiao HanyuandMaxime Beauchemin 27538386bc Add ipdb to dev dependencies. (#4368)
Though flask has a builtin web debugger, ipdb some times still work
better. So I think add ipdb to dev dependencies is a good option for
people who prefer CLI debugging.
2018-02-07 08:19:18 -08:00
Teemu HaapojaandMaxime Beauchemin 3b35ddf135 convert postgresql date_trunc() to UTC to prevent pandas error (#4319)
* cast postgresql date_trunc() to timestamp without time zone to prevent pandas error

* fix formatting for flake8

* change cast to timezone conversion instead
2018-02-07 08:18:11 -08:00
Xiao HanyuandMaxime Beauchemin d5ab6c8d3d Remove useless empty npm-debug.log (#4367)
The log file comes from
https://github.com/apache/incubator-superset/commit/a7a6678d5ca535e29e6e021b7404c2e5c3599fdb

Also modify .gitignore to ignore all future npm-debug.log
2018-02-07 08:12:45 -08:00
Raffaele SpangaroandMaxime Beauchemin a4ecff4e23 New options for european time format in in D3_TIME_FORMAT_OPTIONS (#4364)
* Update installation.rst for Ubuntu 16.04 LTS 

Ubuntu 16.04 by default install python2.7 alongside with python 3.5 and set python2.7 as default. If you have created a virtualenv with python3.5 compilation fails due to wrong python-dev library installed. 

If you install ``python3.5-dev`` the build for the wheel package of  ``cryptography`` run fine.

* Add options in D3_TIME_FORMAT_OPTIONS for non-english Time Format.
Added '%d/%m/%Y' and '%d/%m/%Y %H:%M:%S' as valid drop-down option for Axis Format
2018-02-06 16:24:00 -08:00
michellethomasandGrace Guo 19a0827d1f Adding dashboard add view (#4344)
* Adding DashboardAddView and setting show_columns on SLiceAddView

* Adding tests for sliceaddview read api

* Dedupe show_columns
2018-02-06 12:38:07 -08:00
timifasubaaandMaxime Beauchemin 2d8a0cc6c9 fix uri form data' (#4345)
'
2018-02-05 20:49:37 -08:00
Hugh A. Miles IIandMaxime Beauchemin 2789385688 read query params for json in dashboard endpoint (#4337) 2018-02-05 11:48:12 -08:00
Grace GuoandGitHub e965f95477 1. fix check filters change logic (#4339)
2. should show chart after loading completed
2018-02-05 10:21:17 -08:00
liutgnuandMaxime Beauchemin ad212272d1 Fix the bug of charts/slices cannot be filtered by datasource name. (#4338) 2018-02-04 23:03:44 -08:00
timifasubaaandMaxime Beauchemin 6d37d97ba5 Refactor import csv (#4298)
* move helpers to utils

* make form use queryselector

* refactor exception throwing and handling

* update db_connection access point

* nits
2018-02-03 20:22:06 -08:00
Jeff NiuandMaxime Beauchemin fdd42ef4b6 [New Viz] Nightingale Rose Chart (#3676)
* Nightingale Rose Chart

* Review comments
2018-02-03 20:18:24 -08:00
Maxime BeaucheminandGitHub a616bf4082 [cli] permission cleanup on 'superset init' (#4241)
* [cli] permission cleanup on 'superset init'

FAB sometimes creates NULL/None permissions in the database,
presumably a race condition when multiple gunicorn workers start at the
same time, and those create issues raising "AttributeError: 'NoneType'
object has no attribute 'name'"

* Linting
2018-02-03 20:12:45 -08:00
fabianmengesandMaxime Beauchemin a9e1e685ba [BugFix]: Creating a PostgresBaseEngineSpec so changes to the Postgre… (#4224)
* [BugFix]: Creating a PostgresBaseEngineSpec so changes to the PostgresEngineSpec don't affect every subclass

* Empty engine for abstract Engine
2018-02-03 20:03:02 -08:00
Maxime BeaucheminandGitHub d41418eaa0 Bump pyrdruid to 0.4.0 (#4325) 2018-02-03 19:48:38 -08:00
Maxime BeaucheminandGrace Guo 1f8fccc0f9 [explore] fix missing CacheLabel (#4326)
Also adding a basic unit test.
2018-02-02 10:28:38 -08:00
Raffaele SpangaroandMaxime Beauchemin 75a2b4f610 Update installation.rst for Ubuntu 16.04 LTS (#4321)
Ubuntu 16.04 by default install python2.7 alongside with python 3.5 and set python2.7 as default. If you have created a virtualenv with python3.5 compilation fails due to wrong python-dev library installed. 

If you install ``python3.5-dev`` the build for the wheel package of  ``cryptography`` run fine.
2018-01-31 18:03:16 -08:00
Grace GuoandMaxime Beauchemin 133f98ad58 [Bug] Resize should trigger chart re-render (#4322) 2018-01-31 18:02:16 -08:00
Grace GuoandGitHub 1a7ef4758b [Explore] Fix Stop Query Button behavior (#4301) 2018-01-31 09:34:08 -08:00
Beto DealmeidaandMaxime Beauchemin c77bab8160 Refactoring deckgl (#4293)
* Refactoring dekgl

* Refactor layers

* Standardize function name

* Fix exports

* Fix require

* Fix lint
2018-01-30 23:03:35 -08:00
Grace GuoandGitHub 724c3f48a4 add frontend logging utility function (#4226)
add loading log for dash and exploreview
breakdown whole page load action to multiple charts loading events and render events
2018-01-30 10:27:13 -08:00
Hugh A. Miles IIandMaxime Beauchemin 073d56cb33 Added Path, Polygon, and Arcs to deckGL example dashboard (#4242)
* Added Path, Polygon, and Arcs to deckGL example dashboard

* reorder task

* formatting...

* fix flights reference

* cleanup on aisle 9
2018-01-29 11:51:36 -08:00
Maxime BeaucheminandGitHub e4a95f9428 Use the query_obj as the basis for the cache key (#4260)
* Use the query_obj as the basis for the cache key

When we recently moved from hashing form_data to define the cache_key
towards using the rendered query instead,
it made is such that non deterministic form
control values like relative times specified in "from" and "until" time
bound resulted in making those miss cache 100% of the time.

Here we move away from using the rendered query and using the query_obj
instead.

* Deprecating using form_data in templates
2018-01-28 09:46:13 -08:00
Riccardo MagliocchettiandMaxime Beauchemin 1b06140bde Bump sqlalchemy to 1.2.2 (#4299)
* Bump sqlalchemy to 1.2.2

Fix #4196

* Bump sqlalchemy-utils to 0.32.21
2018-01-28 09:32:41 -08:00
Maxime BeaucheminandGrace Guo f8dcbf70c5 Reverts apache/incubator-superset#4244 (#4303) 2018-01-26 18:09:09 -08:00
michellethomasandMaxime Beauchemin b9299d61ac Fixing json decode error on druiddatasourcemodelview/api/read (#4291) 2018-01-25 17:12:34 -08:00
Hugh A. Miles IIandMaxime Beauchemin 2384ad4eb5 [geo] Add JS controls to remaining layers (#4272)
* Update viz.py

* added JS controls

* add JS to grid layout

* add JS to hexagon layer

* added JS controls to screengrid

* update to js_data_mutator controls

* remove .map()
2018-01-25 14:07:34 -08:00
Maxime BeaucheminandGitHub 2b66eadee2 Set point size control's default for deck_scatter viz (#4261) 2018-01-24 16:49:37 -08:00
Maxime BeaucheminandGitHub 94d9337e0b deck_multi to pass down filters to layers (#4270)
Filters applied to deck_multi will be passed down to layers as.

If the column isn't set as "filterable", the filter is ignored.

Also note that Dashboard configuration in regards to
"filter_immune_slices" and such will be disregarded in this context as
it isn't the dashboard controller passing down the filter and that
context is not easily accessible here.
2018-01-24 16:26:31 -08:00
Maxime BeaucheminandGitHub a0621e10a8 Handle 'pd.Timestamp' when jsonifying (#4275) 2018-01-24 16:09:22 -08:00
Maxime BeaucheminandGitHub b72d5b03dc Prevent FilterBox extra query (#4276)
closes https://github.com/apache/incubator-superset/issues/4249
2018-01-24 16:09:03 -08:00
Maxime BeaucheminandGitHub 914480ad3c Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal (#4277)
* Fix SUPERSET_WEBSERVER_TIMEOUT in VisualizeModal

* Fix test

* lint
2018-01-24 16:08:48 -08:00
Maxime BeaucheminandGitHub ff2f85f39b [geo] JS function to receive the whole data array instead of individual object (#4262)
Moving from having the user define an interceptor function that operates
on one object at a time.

By passing the entire array, it's possible to do multiple pass where
needed. A common pattern might be to figure out the max value in order
to define a scaler function. That's only possible if dealing with the
whole array.
2018-01-24 13:16:14 -08:00
Maxime BeaucheminandGitHub 9cf16a4ff2 Fix click on now in DateFilterControl (#4265)
When clicking on `now` or the infinity sign, the popover closes but the
value doesn't show in the label as expected.
2018-01-24 13:15:44 -08:00
Maxime BeaucheminandGitHub b90c410c01 [explore] fix empty query message in 'View Query' (#4273) 2018-01-24 13:14:38 -08:00
Xiao HanyuandMaxime Beauchemin 77d1e5d046 Always use fluid container for navbar. (#4279)
As in https://github.com/apache/incubator-superset/pull/4147 removes the
final non fluid container navbar, I think there's no need to keep this
line of code. Just use navbar with fluid container, always.
2018-01-24 08:55:57 -08:00
Marcus LevineandMaxime Beauchemin 4bc5fe5495 [BUGFIX]: Check datatype of results before converting to DataFrame (#4108)
* conditional check on datatype of results before converting to df

fix type checking

fix conditional checks

remove trailing whitespace and fix df_data fallback def

actually remove trailing whitespace

generalized type check to check all columns for dict

refactor dict col check

* move df conversion to helper and add unit test

add missing newlines

another missing newline

fix quotes

more quote fixes
2018-01-23 20:58:06 -08:00
timifasubaaandMaxime Beauchemin 2c72a7ae4f Use json for imports and exports, not pickle (#4243)
* make superset imports and exports use json, not pickle

* fix tests
2018-01-23 20:55:27 -08:00
Maxime BeaucheminandGitHub 4b11f45f72 Using a NullPool for external connections by default (#4251)
Currently, even though `get_sqla_engine` calls get memoized, engines are
still short lived since they are attached to an models.Database ORM
object. All engines created through this method have the scope of a web
request.

Knowing that the SQLAlchemy objects are short lived means that
a related connection pool would also be short lived and mostly useless.
I think it's pretty rare that connections get reused within the context
of a view or Celery worker task.

We've noticed on Redshift that Superset was leaving many connections
opened (hundreds). This is probably due to a combination of the current
process not garbage collecting connections properly, and perhaps the
absence of connection timeout on the redshift side of things. This
could also be related to the fact that we experience web requests timeouts
(enforced by gunicorn) and that process-killing may not allow SQLAlchemy
to clean up connections as they occur (which this PR may not help
fixing...)

For all these reasons, it seems like the right thing to do to use
NullPool for external connection (but not for our connection to the metadata
db!).

Opening the PR for conversation. Putting this query into our staging
today to run some tests.
2018-01-23 15:13:50 -08:00
Maxime BeaucheminandGitHub 04ae004f43 Set 'Range Filter' default to false (#4264)
It got set to true mistakenly.
2018-01-23 11:23:41 -08:00
Andres BoteroandMaxime Beauchemin 29ef8c4af8 Fix heatmap tooltip disappears under the slice's header (#4268) 2018-01-23 10:16:14 -08:00
Maxime BeaucheminandGitHub 718230cdf2 Bump flower==0.9.2 (#4263) 2018-01-23 10:15:10 -08:00
John BodleyandMaxime Beauchemin 8175e19f72 [cache] Fixing json.dumps for timestamp (#4240) 2018-01-19 12:10:39 -08:00
Grace GuoandGitHub 7b76356182 [Sql Lab] Fix query results display at the bottom of screen (#4246) 2018-01-19 10:19:54 -08:00
Grace GuoandGitHub 1c56319be4 [Sql Lab] Fix Autorefresh component pulling not stopped. (#4244) 2018-01-19 08:57:23 -08:00
Maxime BeaucheminandGitHub 36caca3244 Fix 'argument to reversed() must be a sequence' (#4237)
When passing empty/null location data out of certain rows in the spatial
control, Superset raises an error when trying to reverse the tuple.
2018-01-18 15:22:22 -08:00
Hugh A. Miles IIandMaxime Beauchemin 5079b2aa95 Added DeckGL.Polygon Layer w/ JS controls (#4227)
* Working polygon layer for deckGL

* add js controls

* add thumbnail

* better description

* refactor to leverage line_column controls

* templates: open code and documentation on a new tab (#4217)

As they are external resources.

* Fix tutorial doesn't match the current interface #4138 (#4215)

* [bugfix] markup and iframe viz raise 'Empty query' (#4225)

closes https://github.com/apache/incubator-superset/issues/4222

Related to: https://github.com/apache/incubator-superset/pull/4016

* [bugfix] time_pivot entry got missing in merge conflict (#4221)

PR here https://github.com/apache/incubator-superset/pull/3518 missed a
line of code while merging conflicts with time_pivot viz

* Improve deck.gl GeoJSON visualization (#4220)

* Improve geoJSON

* Addressing comments

* lint

* refactor to leverage line_column controls

* refactor to use DeckPathViz

* oops
2018-01-18 13:28:46 -08:00
Hugh A. Miles IIandMaxime Beauchemin cab8e7d22d remove setting spatial in DeckPathViz class (#4235) 2018-01-18 12:03:46 -08:00
michellethomasandMaxime Beauchemin 85d137b20a Don't cache if there's no cache key (#4229) 2018-01-18 08:28:26 -08:00
Peter Lubell-DoughtieandMaxime Beauchemin a942f81dfd add Ona as a user (#4234) 2018-01-18 08:27:56 -08:00
Maxime BeaucheminandGitHub 01043c9bf4 Improve deck.gl GeoJSON visualization (#4220)
* Improve geoJSON

* Addressing comments

* lint
2018-01-17 14:01:32 -08:00
Maxime BeaucheminandGitHub a9610e2886 [bugfix] time_pivot entry got missing in merge conflict (#4221)
PR here https://github.com/apache/incubator-superset/pull/3518 missed a
line of code while merging conflicts with time_pivot viz
2018-01-17 13:54:45 -08:00
Maxime BeaucheminandGitHub 5897d85f7a [bugfix] markup and iframe viz raise 'Empty query' (#4225)
closes https://github.com/apache/incubator-superset/issues/4222

Related to: https://github.com/apache/incubator-superset/pull/4016
2018-01-17 13:54:10 -08:00
Yongjie ZhaoandMaxime Beauchemin 0367dce38b Fix tutorial doesn't match the current interface #4138 (#4215) 2018-01-16 21:18:00 -08:00
Riccardo MagliocchettiandMaxime Beauchemin 1ca1395382 templates: open code and documentation on a new tab (#4217)
As they are external resources.
2018-01-16 21:17:27 -08:00
michellethomasandGrace Guo 2607e4be4d Adding limit to time_table viz to get druid query to work (#4207) 2018-01-16 10:27:35 -08:00
Maxime BeaucheminandGitHub 04680e5ff1 [line chart] fix time shift color (#4202) 2018-01-12 15:10:17 -08:00
John BodleyandGrace Guo a7a6678d5c [cache] Using the query as the basis of the cache key (#4016) 2018-01-12 12:05:12 -08:00
Maxime BeaucheminandGitHub 8069d6221d [druid] fix 2 phases queries that specify 'Sort By' on 'Series limit' (#4203) 2018-01-12 11:29:24 -08:00
Maxime BeaucheminandGitHub 269f55c29a [bugfix] dealing with DBAPIs that return unserilizable types (#4200)
Funky datatypes in some databases like BLOBs will have the DBAPI return
python types that can't be serialized to JSON out of the box.

Currently, when this happens SQL Lab fails in a bad way with a gigantic
HTML error message.

This allows specifying a pessimistic JSON serializer handler that will
simply show "Unserializable [type]"
2018-01-12 11:11:31 -08:00
Hugh A. Miles IIandMaxime Beauchemin bca27b436b [Geo] Added DeckGL Arc Layer and Refactor on BaseDeckGL class (#4134)
* Added DeckGL.arc layer

* added color controls

* added stroke_width control

* added process spatial key methods

* change exception to ValueError

* put location into tuple

* reference global spatial keys array

* linting

* refactor on process_spatial_data_obj

* rm whitespace

* refactor arc.get_data

* Revert "refactor arc.get_data"

This reverts commit 8d01b2a22e.

* add spatial controls array

* refactor on spatial keys again :)

* return altered df

* Working refactor with deckGL Arcs

* working arcs refactor :)

* refactored all other deckGL viz types
2018-01-12 11:06:11 -08:00
Benedict JinandMaxime Beauchemin aecaa85905 Hanization (#4126)
* Hanization

* Hanization step two

* 1. Update mo & json file; 2. Remove necessary msgid & msgstr; 3. Fix error python-format; 4. Other improvements

* Hanization step three

* Hanization step four (49%)

* Translate chart options

* Translate Search

* Translate view results Data preview new table name 10 seconds 30 seconds 1 minute 5 minutes

* Hanization & update mo/json files

* Update filter translation

* Hanization step 5th (60%)

* Hanization step 6th (70%)

* Hanization step 7th (80%)

* Hanization step 8th (83%)
2018-01-12 08:11:37 -08:00
bolkedebruinandMaxime Beauchemin 7e36488f03 Superset was using undefined metrics for specifying limits (#4114)
in case a form did not specify a metric (e.g. mapbox). If it is
not available it now defaults to the first dimension instead.

This fixes issue #3604
2018-01-11 21:45:34 -08:00
Maxime BeaucheminandGitHub 87c3e831a8 Using user-defined Javascript to customize geospatial visualization (#4173)
* Using JS to customize spatial viz and tooltips

* Add missing deck_multi.png

* Improve GeoJSON layer with JS support and extra controls

* Addressing comments
2018-01-11 15:42:44 -08:00
Maxime BeaucheminandGitHub ee63ebc8ec [datasource editor] click checkbox creates metrics instantly (#4183)
* [datasource editor] click checkbox creates metrics instantly

* Fix tests
2018-01-11 15:42:19 -08:00
Maxime BeaucheminandGitHub 5916291901 [explore] fix json highlighting for Druid queries (#4201) 2018-01-11 15:41:28 -08:00
Maxime BeaucheminandGitHub 4b0f252170 Sort out dependencies in travis/tox (#4186)
* Make travis a bit more lean

* Bump npm to 5.6.0
2018-01-10 21:46:10 -08:00
Beto DealmeidaandMaxime Beauchemin 9176a4072b Enable SQL syntax highlighting in View Query (#4184)
* Enable SQL syntax highlighting in View Query

* Enable SQL syntax highlighting in View Query
2018-01-10 20:49:28 -08:00
John BodleyandMaxime Beauchemin 0cb7c5e4a6 [annotations] Fixing migration for annotation layers (#4187) 2018-01-10 08:50:05 -08:00
Yongjie ZhaoandGrace Guo e182f7f962 fix since or until is empty value #4170 (#4176) 2018-01-09 16:54:18 -08:00
fabianmengesandMaxime Beauchemin 23c98294bd Moving the custom_password_store out of Database class (#4182) 2018-01-09 13:14:20 -08:00
John BodleyandMaxime Beauchemin 22bdd9e324 [security] Adding all derived FAB UserModelView views to admin only (#4180) 2018-01-09 13:05:37 -08:00
Maxime BeaucheminandGitHub b159e51787 Don't use fully qualified column names in metric definitions (#4101)
When generating an auto SUM() metric on a column, Superset currently
will go `SUM(table_name.column_name)`. This is an issue when moving to
point to another table. It's common to work on some temporary table or
work table and eventually need to point Superset to an alternate table.
2018-01-08 22:03:37 -08:00
John BodleyandMaxime Beauchemin d57012067b [FAB] configuring updating of permissions (#4172) 2018-01-08 14:39:18 -08:00
timifasubaaandGrace Guo 9364fb5b79 Allow alpha role import csv (#4164)
* allow alphas upload csv

* nits
2018-01-08 13:36:30 -08:00
Maxime BeaucheminandGitHub c49fb0aa9b Make Welcome page into a simple React app (#4147)
* Make Welcome page into a simple React app

This removes a dependency on datatables, we should be able to get rid
of it as we re-write the Table and PivotTable viz

* tests/lint

* Bump node version to latest
2018-01-07 22:13:06 -08:00
Grace GuoandGitHub b9af019567 Fix chart rendering error in time series table (#4156) 2018-01-06 16:49:59 -08:00
Grace GuoandGitHub e7f8143c3b [Bug] Closing change datasource modal throws JS error (#4157) 2018-01-05 14:21:52 -08:00
Alexander Tronchin-JamesandMaxime Beauchemin c9e47f0bb3 Check for non-None database before using. (#4162)
Some valid sqlalchemy uri's return a URL object with database=None, which causes the following error:
```
2018-01-05 17:59:47,560:ERROR:root:argument of type 'NoneType' is not iterable
Traceback (most recent call last):
  File "/opt/incubator-superset/superset/sql_lab.py", line 186, in execute_sql
    user_name=user_name,
  File "/opt/incubator-superset/superset/utils.py", line 124, in __call__
    return self.func(*args, **kwargs)
  File "/opt/incubator-superset/superset/models/core.py", line 644, in get_sqla_engine
    url = self.db_engine_spec.adjust_database_uri(url, schema)
  File "/opt/incubator-superset/superset/db_engine_specs.py", line 505, in adjust_database_uri
    if '/' in database:
TypeError: argument of type 'NoneType' is not iterable
```
This patch corrects that problem.
2018-01-05 13:54:17 -08:00
Beto DealmeidaandMaxime Beauchemin 686023c8dd Druid support via SQLAlchemy (#4163)
* Use druiddb

* Remove auto formatting

* Show prequeries

* Fix subtle bug with lists

* Move arguments to query object

* Fix druid run_query
2018-01-05 13:52:58 -08:00
Benedict JinandGrace Guo d997a450cf Fix invaild gitter url (#4125) 2018-01-04 14:45:58 -08:00
zhao yongjieandMaxime Beauchemin 9e053923d4 Adding Apache Kylin datasource for documentation (#4148) 2018-01-03 20:24:15 -08:00
Leonardo Rochael AlmeidaandMaxime Beauchemin ef06a9d497 Create DATA_DIR after importing config (#4143)
Delay creating DATA_DIR until config is fully imported.

This allows superset_config.py to override DATA_DIR before superset
attempts to create it in a potentially unwriteable location.
2018-01-03 09:54:59 -08:00
Maxime BeaucheminandGitHub 37205099db Fix USA's state geojson for 'Country Map' visualization (#4121)
* Fix USA's state geojson for 'Country Map' visualization

Turns out the ISO codes were missing from the geojson file, this adds it
and uses human-readable indents.

* using proper ISO codes

* Linting

New linting rules started applying, I'm guessing a new version of
pylint?
2018-01-02 20:21:33 -08:00
timifasubaaandMaxime Beauchemin e498f2fcb6 fix variable name (#4139) 2018-01-02 14:32:24 -08:00
Jeff NiuandMaxime Beauchemin f7c55270db Remedy for dual axis annotation (#4130) 2018-01-02 14:31:16 -08:00
Maxime BeaucheminandGitHub 0a6208296e [explore] add datasource metadata (#4104) 2018-01-02 08:41:27 -08:00
Hugh A. Miles IIandMaxime Beauchemin bf4d3a0dff better thumbnail for deck_geojson (#4135) 2017-12-28 13:38:07 -08:00
Hugh A. Miles IIandMaxime Beauchemin b227612f6e Added guard statement for spatial controls (#4124) 2017-12-26 12:27:27 -08:00
Maxime BeaucheminandGitHub 45686a1af6 Multi layers DECK.GL visualization (#4096)
* Multi layers DECK.GL viz

* Fix tests

* rebasing

* Fix error handling in chartActions

* Addressing comments
2017-12-26 10:47:29 -08:00
Benedict JinandMaxime Beauchemin 82ed4878c4 Fix rst grammar problems (#4116) 2017-12-25 23:39:28 -08:00
James PesculisandMaxime Beauchemin 6e1ec8347d Update UserInfo.jsx and set additional properties for react-gravatar (#4118) 2017-12-25 23:29:27 -08:00
Hugh A. Miles IIandMaxime Beauchemin f905726c24 [geo] Added DeckGL GeoJson layer (#4097)
* added deckgl geojson layer

* linting

* fixed comments

* addressed comments

* added override with controls.color_picker > 0

* set var properly

* set colors if property doesnt exist at all

* refacator on property mapping
2017-12-22 14:40:08 -08:00
Maxime BeaucheminandGitHub 69195f8d2d Introduce Javascript controls (#4076)
* Introduce Javascript controls

This allows power-users to perform intricate transformations on data and
objects using javascript code.

The operations allowed are "sanboxed" or limited using node's vm
`runInNewContext`
https://nodejs.org/api/vm.html#vm_vm_runinnewcontext_code_sandbox_options

For now I'm only enabling in the line chart visualization, but the plan
would be to go towards offering more power to people who can write some
JS moving forward.

* Not applied
2017-12-20 21:24:35 -08:00
Nicolas BonnotteandMaxime Beauchemin b4909f2d03 [Bugfix] Issues with merge_extra_filters (#4042) (#4091) 2017-12-20 16:22:43 -08:00
Maxime BeaucheminandGitHub 44e753d94d [sql lab] deeper support for templating (#3996)
* [sql lab] deeper support for templating

* Fixing py tests

* Fix typo
2017-12-19 15:55:58 -08:00
Maxime BeaucheminandGitHub e4903e6dc6 [geo] add support for deck.gl's path layer (#4067)
* [geo] add support for deck.gl's path layer

Works with json and polyline data.

* Lint
2017-12-19 12:38:03 -08:00
Maxime BeaucheminandGitHub d4e8d57fc4 Using TextAreaControl for WHERE and HAVING clause section (#4090) 2017-12-19 12:11:35 -08:00
kuriancheeramelilandMaxime Beauchemin 281ae45495 Fix for SQL editor throwing can't deserialize google.cloud.bigquery._helpers.Row with BigQuery (#4071)
* fix for SQL editor throwing cant deserialize google.cloud.bigquery._helpers.Row with BigQuery

* linted code

* disable pylint import error of bigquery row

* fixed spacing issue before inline-comment
2017-12-18 21:22:34 -08:00
fabianmengesandMaxime Beauchemin ff4f9b4527 Bugfix: Druid having filters are broken (#4089) 2017-12-18 17:06:12 -08:00
fabianmengesandGrace Guo 86f9087ea2 Event annotation should have min width (#4083) 2017-12-18 15:37:05 -08:00
Maxime BeaucheminandGrace Guo 7cd9b85831 [bugfix] iframe and markup are broken (#4082)
fixes https://github.com/apache/incubator-superset/issues/4080
2017-12-18 14:42:18 -08:00
fabianmengesandGrace Guo 71e1eea9f4 DB migration of annotation_layers on slice objects and slimming down annotation object. (#4072) 2017-12-18 13:11:06 -08:00
Jeff NiuandMaxime Beauchemin 1e79e9cd2a [Bugfix] Issues with table filtering (#4073)
* Fixing some issues with table filtering

* Added some comments
2017-12-17 15:43:34 -08:00
Jeff NiuandMaxime Beauchemin af7cdeba4d [Feature] enhanced memoized on get_sqla_engine and other functions (#3530)
* added watch to memoized

* added unit tests for memoized

* code style changes
2017-12-17 10:35:00 -08:00
fabianmengesandMaxime Beauchemin 500e6256c0 Full Annotation Framework (#3518)
* Adding full Annotation Framework

* Viz types

* Re organizing native annotations

* liniting

* Bug fix

* Handle no data

* Cleanup

* Refactor slice form_data to data
2017-12-16 16:10:45 -08:00
NicandMaxime Beauchemin e79d05fd77 #4058 Fix Oracle timestamps (Oracle "ORA-00907: missing right parenthesis" error) (#4065) 2017-12-15 21:31:09 -08:00
Maxime BeaucheminandGitHub fc85756c20 [geo] turn off renderTrigger on viewport control (#4066)
For context, the viewport gets updated dynamically from the user
actions on the map. This is done on a timer every second or so to keep
the form data updated with the viewport settings.

With renderTrigger=true on that control that generates re-renders which
introduces glitches while zooming/panning. So turning it off as we don't
really expect users to input viewport info directly in the control
anyways.
2017-12-15 14:59:54 -08:00
John BodleyandMaxime Beauchemin 6081f7161a [health] Adding DB check to /health (#4062) 2017-12-15 14:59:41 -08:00
Maxime BeaucheminandGitHub c21513fb8c Adding rowcount label to explore view header (#4059) 2017-12-15 11:47:44 -08:00
Maxime BeaucheminandGitHub ec752b1378 [geo] provide more flexible Spatial controls (#4032)
Before this PR the only way to query lat/long is in the shape of 2
columns that contains lat and long.

Now we're adding 2 more options:
* a single column that has lat and long with a delimiter in between
* support for geohashes - geohashes are cool
2017-12-15 11:47:27 -08:00
Maxime BeaucheminandGitHub cf1d9ce1e6 Add db_engine_spec for Druid (#4063)
The `druiddb` pypi package provides a dbapi and sqlalchemy dialect for
Druid. This PR hooks adds some superset-specific conf.
2017-12-15 11:47:00 -08:00
Maxime BeaucheminandGitHub 6188d60fec Bump dev version on trunk (#4048) 2017-12-12 21:29:19 -08:00
Maxime BeaucheminandGitHub dfc28f37eb Changelog for 0.21.0 (#4045)
* Changelog for 0.21.0

* more entries
2017-12-12 21:29:01 -08:00
Maxime BeaucheminandGitHub 23c834f04e Fix the pypi build (#4047) 2017-12-12 18:12:26 -08:00
Hugh A. Miles IIandMaxime Beauchemin c84211ec44 Change reference for slices to chart (#4049)
* change reference for slices to chart

* change profile page reference

* change reference for Associated Slices

* change back to single quotes

* fix other single quotes

* linting

* last one

* fix test
2017-12-12 18:02:17 -08:00
Jeff NiuandMaxime Beauchemin 7d374428d3 [Bugfix] _add_filters_from_pre_query doesn't handle dim specs (#3974)
* Fixed _add_filters_from_pre_query for dimension specs

* add_filters_from_pre_query ignores extraction functions
2017-12-11 12:35:25 -08:00
John BodleyandMaxime Beauchemin 3a2974f589 [API] Deprecate /update_role/ API endpoint (#4041) 2017-12-10 21:14:15 -08:00
timifasubaaandMaxime Beauchemin 3ed8f5fc23 resolve python2 str() issue (#4030)
* make string conversion use utf8

* Update viz.py

* make utf-8 consistent with other usages

* Update viz.py

* Update viz.py
2017-12-09 14:23:24 -08:00
Grace GuoandGitHub 61755f0b7d apply custom css for dashboard initially load (#4031) 2017-12-07 16:56:40 -08:00
fabianmengesandGrace Guo 0a3d2fccd4 [BUGFIX]: Fixing dttm_sql_literal to use python_date_format when specified. (#3891) 2017-12-07 16:38:22 -08:00
Maxime BeaucheminandGrace Guo 0b40c8a26f Add fastdom js dependency (#3947)
The nvd3 docs say that it if the fastdom library is present it makes use
of it.

"Including Fastdom in your project can greatly increase the performance
of the line chart (particularly in Firefox and Internet Explorer) by
batching DOM read and write operations to avoid layout thrashing. NVD3
will take advantage of Fastdom if present."
2017-12-07 16:36:46 -08:00
Beto DealmeidaandMaxime Beauchemin 81df7087db Remove unused callbacks when setting state (#4015) 2017-12-06 21:56:28 -08:00
Jeff NiuandMaxime Beauchemin cb7c5aa70c Fixed finding postaggregations (#4017) 2017-12-06 21:55:43 -08:00
Maxime BeaucheminandGitHub 5bc581fd44 New time_pivot visualization (#3941)
* New time_pivot visualization

* Minor tweaks

* Addressing comments
2017-12-06 21:50:33 -08:00
Maxime BeaucheminandGitHub 5ee70b244b Add type MONEY as numeric type (#3959)
fixes https://github.com/apache/incubator-superset/issues/3953
2017-12-06 21:49:42 -08:00
Maxime BeaucheminandGitHub a26cf001c4 Add row_limit to heatmap controls (#3969) 2017-12-06 21:49:27 -08:00
Dmitry GoryunovandMaxime Beauchemin e02d35ed5c Add support of another DatabaseError format (#4019) 2017-12-06 21:49:03 -08:00
rumbinandMaxime Beauchemin e98a1c3537 asciifying http header for csv download; fixes #3952 (#3975)
* asciifying http header for csv download; fixes #3952

* fixed order of imports and added unidecode to requirements in setup.py
2017-12-05 12:04:58 -08:00
timifasubaaandMaxime Beauchemin 4404751a1d Add has_access to import_dashboard (#4001)
* Add has_access to import_dashboard

* Update core.py

* Update core.py
2017-12-05 12:03:13 -08:00
Maxime BeaucheminandGrace Guo defe6789c0 [sql lab] fix position of 'save query' Popover (#3999)
* [sql lab] fix position of 'save query' Popover

The "Save Query" popover renders on the upper left corner as opposed to
where it should (relative to the Save Query button). After a bit of
research, it seems like Popover won't render in the right place when
parents are absolute.

I'm guessing this stopped working properly when I added the resizable
panes.

Anyhow, the solution here is to use a modal instead.

* Fixing tests
2017-12-05 11:37:13 -08:00
Beto DealmeidaandMaxime Beauchemin 823f306f24 Call props.onChange only when closing filter (#4003) 2017-12-05 11:17:12 -08:00
fabianmengesandMaxime Beauchemin 72627b1761 Adding YAML Import-Export for Datasources to CLI (#3978)
* Adding import and export for databases

* Linting
2017-12-05 11:14:52 -08:00
Alan CruickshankandMaxime Beauchemin 1702b020be Rollback bulk-delete of table columns (#4009)
Fix likely required upstream in FAB before we can properly enable this.
2017-12-05 11:14:21 -08:00
Grace GuoandGitHub 89f6ccc1c6 Add Datasource Name filter under slice list view (#4000) 2017-12-04 13:45:36 -08:00
Maxime BeaucheminandGitHub eff5952641 Alternate PR to #3970 (#3997) 2017-12-04 08:19:51 -08:00
rumbinandMaxime Beauchemin f10395b2f7 [doc] added setting X-Forwarded-Proto to https behind reverse proxy with ssl encryption; fixes #3655 (#3976) 2017-12-03 22:00:58 -08:00
Maxime BeaucheminandGrace Guo b2647567c0 Create CODE_OF_CONDUCT.md (#3991) 2017-12-02 14:57:54 -08:00
Grace GuoandGitHub 028456572b [Dashboard] fix a filter refresh bug and add Test (#3967) 2017-12-01 10:58:55 -08:00
Maxime BeaucheminandGitHub 84a7730f47 [docs] making it clear sqlite shouldn't be used in a cluster (#3965) 2017-11-30 22:06:16 -08:00
Chris WilliamsandMaxime Beauchemin 76a2f95231 [time series table] visual improvements (#3957)
* [time series table] visual improvements

* [time series table] don't set cell color if text color isn't set
2017-11-30 20:48:17 -08:00
michellethomasandMaxime Beauchemin 9904593dc3 Improving speed of dashboard import (#3958)
* Improve dashboard import

* Updating tests for Slice.import_obj
2017-11-30 20:47:22 -08:00
Jeff NiuandMaxime Beauchemin 8f00e9e30b [Bugfix] Druid run_query dimensions part 3 + Unit tests (#3949)
* Fixed and added tests for druid run query

* Fixes style and python3
2017-11-30 20:32:53 -08:00
Maxime BeaucheminandGitHub 16ab696d7c [country_map] use Albers USA projection (#3946)
* [country_map] use Albers USA projection

* Minor touchups

* Adding color scheme
2017-11-30 14:09:53 -08:00
Maxime BeaucheminandGitHub 1ce14df43d fix 'superset db history' (#3948)
* fix 'superset db history'

Related Error msg when running `superset db history`:
"NameError: Can't invoke function 'get_bind', as the proxy object has not
yet been established for the Alembic 'Operations' class.  Try placing
this code inside a callable."

* Lint
2017-11-29 20:52:56 -08:00
michellethomasandGrace Guo 34d6618b2e Allow underscores in slugs (#3951)
* Allow underscores in slugs

* Switching regex to use shorter \w
2017-11-29 14:55:13 -08:00
Riccardo MagliocchettiandGrace Guo abdd1d537f config: bring back sqlite default database (#3955)
That became postgres in 268edcf

Fix #3954
2017-11-29 10:03:01 -08:00
Maxime BeaucheminandGrace Guo d9fda346cb Add an "Edit Mode" to Dashboard view (#3940)
* Add a togglable edit mode to dashboard

* Submenu for controls

* Allowing 'Save as' outside of editMode

* Set editMode to false as default
2017-11-28 09:10:21 -08:00
Jeff NiuandMaxime Beauchemin 6cbe0e6096 Fixed branching condition with dimension spec (#3920) 2017-11-27 21:12:20 -08:00
timifasubaaandMaxime Beauchemin 268edcfedd Import CSV (#3643)
* add upload csv button to sources dropdown

* upload csv to non-hive datasources

* upload csv to hive datasource

* update FAQ page

* add tests

* fix linting errors and merge conflicts

* Update .travis.yml

* Update tox.ini
2017-11-27 21:07:12 -08:00
Maxime BeaucheminandGitHub c5ddf57124 Fix call in Chart (#3945) 2017-11-27 21:06:47 -08:00
kkalyanandMaxime Beauchemin f9202ba179 minor filter select enhancements (#3933)
* `values_for_column` configurable row limit

* `FilterControl` cancels active ajax request if any
2017-11-27 21:05:53 -08:00
Alan CruickshankandMaxime Beauchemin 17635e1a2b Make Table Columns & Metrics Bulk-deletable (#3929) 2017-11-25 23:05:51 -08:00
John BodleyandMaxime Beauchemin 285197926e [travis] Standardizing before_install (#3922) 2017-11-21 22:10:17 -08:00
Jeff NiuandMaxime Beauchemin 5466fab2a0 Switched to span instead of textarea for copytoclipboard (#3923) 2017-11-21 22:09:41 -08:00
Jeff NiuandMaxime Beauchemin ed85032277 Moved percent metrics to its own row (#3924) 2017-11-21 22:08:15 -08:00
Maxime BeaucheminandGrace Guo 680e1cbb42 Revert "Filter out unavailable databases (#3875)" (#3918)
This reverts commit ae2205aeb5.
2017-11-21 12:58:47 -08:00
Maxime BeaucheminandGitHub 2d37dec5ff [bugfix] remove quotes from Postgres time grains (#3913) 2017-11-21 11:24:17 -08:00
Maxime BeaucheminandGrace Guo 3f4c306bd6 Fix left padding in dashboard widgets (#3915) 2017-11-21 10:24:28 -08:00
Maxime BeaucheminandGrace Guo ac432495d7 [cosmetic] remove border from table viz (#3916) 2017-11-21 10:23:48 -08:00
michellethomasandGrace Guo 12fb7c1a62 When checking if you should renderTriggered make sure key exists in controls (#3912) 2017-11-21 10:22:55 -08:00
Yu XiaoandMaxime Beauchemin feb15a30a2 fix the schema-fetching problem for impala in sql_lab (#3906)
* fix the schema-fetching problem for impala in sql_lab

* delete redundant print

* remove blank lines...

* minior corrections
2017-11-21 09:28:31 -08:00
Alan CruickshankandMaxime Beauchemin eb0f3970cf Add UK Metropolitan Districts and Isle of Man (#3911) 2017-11-20 18:06:58 -08:00
Maxime BeaucheminandGrace Guo b82d15af76 Bumping webpack related deps (#3904) 2017-11-20 15:27:02 -08:00
Maxime BeaucheminandGrace Guo 32b38ee2d6 [bugfix] allow limiting word cloud (#3902) 2017-11-20 10:32:14 -08:00
Maxime BeaucheminandGitHub 1d702f2142 Fixes default hanlding in Altered slice tag (#3903) 2017-11-20 08:43:38 -08:00
bolkedebruinandMaxime Beauchemin 4ae77ba8af Workaround pandas bug in datetimes with time zones (#3910)
A bug in to_dict(orient="records") in pandas/core/frame.py prevents
datetimes with time zones to be worked with. This works around the
issue in superset by re-implementing the logic of pandas in the
correct way. Until pandas fixes the issue this code should stay.

https://github.com/pandas-dev/pandas/issues/18372

This closes #1929
2017-11-20 08:33:18 -08:00
John BodleyandMaxime Beauchemin 3c72e1f8fb [3541] Augmenting datasources uniqueness constraints (#3583) 2017-11-19 20:09:18 -08:00
John BodleyandMaxime Beauchemin 4bfe08d7c3 [druid] Fixing issue 3894 multi-processing w/ Gunicorn (#3895) 2017-11-18 21:40:40 -08:00
John BodleyandMaxime Beauchemin 3a7ed8d194 [druid] Catch IOError when fetching Druid datasource time boundary (#3897) 2017-11-17 20:20:47 -08:00
John BodleyandMaxime Beauchemin 4d204b3b36 [druid] Renaming refresh_async method (#3899) 2017-11-17 20:11:44 -08:00
Alan CruickshankandMaxime Beauchemin 39ee33aeff Add datasource to the SliceAddView modal (#3884) (#3900) 2017-11-17 20:11:23 -08:00
Grace GuoandGitHub 831cd21737 [dashboard bug]Instant control should take effect instantly (#3890)
in explore view, controls like color cheme, legend, rich tooltip, etc., change these controls should see effect instantly, without click Run Query.
2017-11-17 16:34:53 -08:00
Maxime BeaucheminandGitHub a82bb588f4 Allow users to specify label->color mapping (#3879)
Users can define `label_colors` in a dashboard's JSON metadata that
enforces a label to color mapping.

This also makes the function that maps labels to colors case insensitive.
2017-11-17 15:56:04 -08:00
michellethomasandGrace Guo a84bd5225c Only refreshing non instant filters on apply (#3893) 2017-11-17 12:52:48 -08:00
John BodleyandMaxime Beauchemin f0acc11249 [druid] Fix datasource column enumeration (#3896) 2017-11-16 22:41:54 -08:00
Grace GuoandGitHub fa35d7d2f4 fix input height to match with react-select (#3852) 2017-11-16 11:50:32 -08:00
Maxime BeaucheminandGitHub e65aba3c46 Fixing the build's linting errors (#3887)
master has new linting rules, PRs got merged with lint that was ok at
branching but not ok in masert anymore
2017-11-16 11:18:33 -08:00
Maxime BeaucheminandGitHub fab7b1083b A better looking favicon (#3851) 2017-11-16 10:14:54 -08:00
Maxime BeaucheminandGitHub d9161fb76a Fix slug function (#3876) 2017-11-16 09:47:00 -08:00
Maxime BeaucheminandGitHub 85b18ff5e7 [table] show 'Time' column header instead of '__timestamp' (#3880) 2017-11-16 09:33:42 -08:00
Maxime BeaucheminandGrace Guo 3a8af5d0b0 DECKGL integration - Phase 1 (#3771)
* DECKGL integration

Adding a new set of geospatial visualizations building on top of the
awesome deck.gl library. https://github.com/uber/deck.gl

While the end goal it to expose all types of layers and let users bind
their data to control most props exposed by the deck.gl API, this
PR focusses on a first set of visualizations and props:

* ScatterLayer
* HexagonLayer
* GridLayer
* ScreenGridLayer

* Addressing comments

* lint

* Linting

* Addressing chri's comments
2017-11-16 00:30:02 -08:00
Maxime BeaucheminandGrace Guo 1c545d3a2d Further refactoring around dashboards (#3843)
I was wondering what was left to do in order to remove Dashboard.jsx
and superset.js, and it looks like they can just be pulled out.

I am so happy to get rid of what used to be the messiest JS files in the
whole repo.

Thanks @graceguo!
2017-11-16 00:27:15 -08:00
Grace GuoandGitHub 120a5d08f9 [dashboard bug] Fix standalone slice (#3877) 2017-11-15 12:38:07 -08:00
Riccardo MagliocchettiandMaxime Beauchemin b586cb0ba7 Add mailing list and move screenshot at the end of README (#3872)
* README: add the mailing list

And mark the google group as deprecated

* README: move the screenshots at the end

So hopefully it'll be easier to find the resources
2017-11-15 08:40:18 -08:00
Dmitry GoryunovandMaxime Beauchemin ae2205aeb5 Filter out unavailable databases (#3875) 2017-11-15 08:39:43 -08:00
John BodleyandMaxime Beauchemin 2e25fc4161 [issue] Resolving issue 2530 (#3865) 2017-11-14 21:13:00 -08:00
John BodleyandMaxime Beauchemin ba89b2d091 [cache] Fixing cache key w/ merged extra filters (#3809) 2017-11-14 21:12:26 -08:00
michellethomasandGrace Guo aee8438924 Fixing an issue with stripping filter values (#3869) 2017-11-14 19:22:03 -08:00
John BodleyandMaxime Beauchemin a6ba841e57 [flake8] Updaing CONTRIBUTING.md (#3862) 2017-11-14 18:17:53 -08:00
Grace GuoandGitHub 8643228b51 [Dashboard bug] Fix merged filter param name (#3866)
front-end merge time filter params, and update query with param name 'extra_filters'
2017-11-14 12:28:55 -08:00
Grace GuoandGitHub de869973c7 Fix cachedDttm prop type (#3858) 2017-11-14 08:14:59 -08:00
John BodleyandMaxime Beauchemin ac57780607 [flake8] Resolving Q??? errors (#3847) 2017-11-13 21:06:51 -08:00
Mike SchillerandMaxime Beauchemin 630604bc6b adding support for getting list of foreign tables for PostgreSQL (#3856)
* adding support for getting list of foreign tables for PostgreSQL

* need extra newline to pass lint
2017-11-13 21:05:22 -08:00
Grace GuoandGitHub eb5d220b5e [Dashboard bug] Slice doesn't show loading icon when loading (#3834) 2017-11-13 16:07:15 -08:00
Grace GuoandGitHub 3f076b00cd [Dashboard bug]Fix userId prop in Explore view Save_Modal (#3857)
For userId, the attribute name in bootstrap data is user_id
2017-11-13 16:06:45 -08:00
Maxime BeaucheminandGrace Guo 514f9452f3 [sql lab] minor cosmetic touchups on Run / Save buttons (#3850) 2017-11-13 12:39:28 -08:00
Maxime BeaucheminandGrace Guo 068c343be0 [sqllab] fix wrong error msg (#3849)
I was getting some "Could not connect to server" when there was
a proper json payload with an `error` key, the change here makes sure to
prioritize those messages over the generic one.
2017-11-12 21:24:20 -08:00
Maxime BeaucheminandGitHub 500455fc72 Add CHANGELOG.md entries for 0.20.0 to 0.20.5 (#3842) 2017-11-12 11:28:37 -08:00
John BodleyandMaxime Beauchemin 1b4f128f55 [flake8] Resolving F5?? errors (#3846) 2017-11-12 11:09:22 -08:00
Grace GuoandMaxime Beauchemin 1a3a8daf49 [Dashboard bug] should reset chartAlert when start new query (#3841) 2017-11-11 22:38:40 -08:00
王洁玉andMaxime Beauchemin 7fce8eab3a Update setup.py (#3510) 2017-11-11 21:51:53 -08:00
Grace GuoandGitHub b4c9402737 [Dashboard bug] Fix Cache status and dttm information display for each slice (#3833) 2017-11-11 21:51:25 -08:00
Grace GuoandMaxime Beauchemin 8459347bdc [Dashboard bug] should reset chartAlert when start new query (#3837) 2017-11-11 21:45:29 -08:00
Riccardo MagliocchettiandMaxime Beauchemin f7bf17290c run_tests.sh: call coveralls only on CI (#3836) 2017-11-11 21:44:55 -08:00
John BodleyandMaxime Beauchemin d908e48d61 [slice] Removing deprecated argument (#3838) 2017-11-11 21:44:24 -08:00
John BodleyandMaxime Beauchemin a3a4687ebf [viz] Fix payload force logic (#3839) 2017-11-11 21:43:55 -08:00
Jeff NiuandMaxime Beauchemin 4d48d5d854 [Explore] Altered Slice Tag (#3668)
* Added altered tag to explore slice view and fixes #3616

* unit tests

* Moved getDiffs logic into AlteredSliceTag

* code style fixs
2017-11-10 21:33:31 -08:00
Maxime BeaucheminandGitHub 83e6807fa0 [docs] add StatsD setup instructions (#3813) 2017-11-10 17:54:56 -08:00
John BodleyandMaxime Beauchemin ba96984048 [flake8] Resolving E3?? errors (#3814) 2017-11-10 17:52:34 -08:00
Maxime BeaucheminandGrace Guo 591e5ec32e Bump celery to 4.1.0 (#3831)
* Bump celery to 4.1.0

* Also bumping boto3 to allow for celery 4 on SQS
2017-11-10 16:28:56 -08:00
John BodleyandMaxime Beauchemin 690de862e8 [flake8] Resolve E1?? errors (#3805) 2017-11-10 12:06:22 -08:00
John BodleyandMaxime Beauchemin 35810ce2bf [docstring] Refining warm_up_cache comment (#3815) 2017-11-10 08:05:20 -08:00
Grace GuoandGitHub 6c52f2ff72 First time fetching chart should not force refresh. (#3822) 2017-11-09 21:48:05 -08:00
Alan CruickshankandMaxime Beauchemin d663bea5e6 Basic German Translation (#3740)
Not complete but most of the core interface
2017-11-09 20:45:37 -08:00
John BodleyandMaxime Beauchemin 1ea4521d0c [flake8] Resolving E7?? errors (#3816) 2017-11-09 20:23:59 -08:00
John BodleyandMaxime Beauchemin c4153c0bbe [flake8] Resolving E4?? errors (#3817) 2017-11-09 20:23:47 -08:00
Hugh A. Miles IIandMaxime Beauchemin ae8b249dc2 Added /healthcheck endpoint for integrations with envoy (#3819)
* fixed mergeconflicts

* fixed mergeconflicts forreal this time

* added healthcheck test
2017-11-09 20:23:28 -08:00
Prasanna SwaminathanandMaxime Beauchemin 9500f0aae3 Fix typo in installation.rst (#3818)
`superser runserver` should be `superset runserver`
2017-11-09 20:22:45 -08:00
Maxime BeaucheminandGrace Guo be3da6396f Fix misleading SQL Lab timeout error message (#3825) 2017-11-09 19:09:16 -08:00
Grace GuoandGitHub 330926c167 fix error message format when long query timeout (#3823) 2017-11-09 19:07:49 -08:00
michellethomasandMaxime Beauchemin cbcc00c929 Make overflow important to allow scrolling on dashboard (#3810) 2017-11-08 20:35:45 -08:00
John BodleyandMaxime Beauchemin d03b74f754 [flake8] Resolving F4?? errors (#3811) 2017-11-08 20:34:33 -08:00
John BodleyandMaxime Beauchemin ec21d5af21 [flake8] Resolving E2?? errors (#3812) 2017-11-08 20:34:23 -08:00
michellethomasandGrace Guo 70c7315ae0 Making time table viz scrollable (#3808) 2017-11-08 16:18:59 -08:00
Grace GuoandGitHub 4fa1f0ab17 Dashboard refactory (#3581)
Create Chart component for all chart fetching and rendering, and apply redux architecture in dashboard view.
2017-11-08 10:46:21 -08:00
Maxime BeaucheminandGrace Guo 39e502faae Stamping version to 0.21.0dev (#3801)
Making it clear that master has a `dev`-suffixed version. Proper release
number will be created in release branches.

There are constraints as to what npm and setuptools will accept as a
proper version number and N.N.Ndev seems to work so I'm rolling with it

Open to suggestion as to how to tag `master`
2017-11-08 09:47:41 -08:00
Ishpreet SinghandMaxime Beauchemin 0280bc52e0 Allowing Leading and Trailing spaces in connection (#3433) 2017-11-07 22:13:18 -08:00
Jeff NiuandMaxime Beauchemin dee47864c4 Fixed single extraction dimension error (#3796) 2017-11-07 21:35:56 -08:00
John BodleyandMaxime Beauchemin 17623f71d4 [flake8] Resolving C??? errors (#3787) 2017-11-07 21:32:45 -08:00
MagicanskandMaxime Beauchemin 7453131858 Update messages.json (#3716)
* Update messages.json

* Update messages.json
2017-11-07 20:28:47 -08:00
John BodleyandMaxime Beauchemin e822fb50d8 [flake8] Resolving W??? errors (#3784) 2017-11-07 20:25:10 -08:00
John BodleyandMaxime Beauchemin e2bca47421 [flake8] Resolve I??? errors (#3797) 2017-11-07 20:23:40 -08:00
Maxime BeaucheminandGrace Guo 7987cb794b Add Lyft and Twitter to list of companies (#3789) 2017-11-07 17:07:14 -08:00
Chris WilliamsandGrace Guo 7483e2c942 [time table] use sparkData values in tooltip (#3794) 2017-11-07 15:52:51 -08:00
michellethomasandGrace Guo e6129eb492 Adding back iso and correctly filtering iso from contrib total (#3793) 2017-11-07 13:34:31 -08:00
michellethomasandGrace Guo b10aca2de1 Removing iso from data (#3788) 2017-11-06 23:29:02 -08:00
John BodleyandMaxime Beauchemin 02cbad59de [flake8] Resolving F8?? errors (#3778) 2017-11-06 21:15:36 -08:00
Stephanie RiveraandMaxime Beauchemin ccb87d337c Rename files to allow RPM build (#3785)
I was having issues getting an RPM to build. My error was

Processing files: superset-0.20.1-1.noarch
error: File must begin with "/": Lockup
error: File must begin with "/": With
error: File must begin with "/": Text.svg
error: File must begin with "/": Lockup
error: File must begin with "/": With
error: File must begin with "/": Text@2x.png
error: File must begin with "/": Lockup
error: File must begin with "/": Without
error: File must begin with "/": Text@1x.svg
error: File must begin with "/": Lockup
error: File must begin with "/": Without
error: File must begin with "/": Text@2x.png
error: File must begin with "/": Mark.png
error: File must begin with "/": Mark@1x.svg

for ref https://github.com/pypa/setuptools/issues/767
File renaming fixes this issue
2017-11-06 17:13:53 -08:00
John BodleyandMaxime Beauchemin 63a49983eb [falke8] Resolving F6?? errors (#3783) 2017-11-06 16:56:03 -08:00
Maxime BeaucheminandGrace Guo 81dd622fdb [explore] using verbose_name in 'Time Column' control (#3529) 2017-11-06 15:21:34 -08:00
Jeff NiuandGrace Guo 9a49b1c41d [Performance] VirtualizedSelect for SelectControl and FilterBox (#3654)
* Added virtualized select to SelectControl, allow onPaste to create new options

* Added unit tests

* Added virtualized/paste select to filterbox
2017-11-06 15:20:13 -08:00
Alejandro FernandezandGrace Guo b059506afa DI-1113. ADDENDUM. Authentication: Enable user impersonation for Superset to HiveServer2 using hive.server2.proxy.user (a.fernandez) (#3697) 2017-11-06 10:20:38 -08:00
John BodleyandMaxime Beauchemin 13c17e1526 [flake8] Enabling flake8 linting (#3776) 2017-11-04 22:50:42 -07:00
John BodleyandMaxime Beauchemin 8e3217a921 [sql-lab] Fixing Run Query tooltip (#3774) 2017-11-04 00:10:47 -07:00
michellethomasandMaxime Beauchemin aed7c7436a Fix dashboard export download (#3773) 2017-11-04 00:10:02 -07:00
Chris WilliamsandGrace Guo 7f3edad119 [time table] add tooltip to sparkline (#3767)
* [time table] add tooltip to sparkline

* [time table] open link in new tab

* [time table] add back Mustache
2017-11-03 12:37:15 -07:00
Stephanie RiveraandMaxime Beauchemin 7fd9c82ae8 Update to reflect new version of cryptography (#3748)
update to 1.9

I have built and pip installed with latest cryptography.
2017-11-02 13:51:17 -07:00
Riccardo MagliocchettiandMaxime Beauchemin f3c7052f30 docs: reword the FAQ regarding table changes (#3763)
So we stop confusing people that thinks we do DDL.

Fix #3761
2017-11-02 13:50:11 -07:00
Dmitry GoryunovandMaxime Beauchemin 326d90a5e4 add stackoverflow tag (#3764) 2017-11-02 13:49:47 -07:00
Maxime BeaucheminandGrace Guo cccc47311b Add dummy file to fix symlink (#3759)
In `assets/static` we have a symlink pointing to `docs/_build/html`
which is .gitignored and missing in the repo since we don't want the
html-generated docs in the repo, meaning the symlink is broken

Having the symlink broken creates issues with pip-compile somehow.

Adding a dummy file here addresses that
2017-11-02 10:17:28 -07:00
Grace GuoandGitHub 5c03167948 fix https://github.com/apache/incubator-superset/pull/3726 (#3751) 2017-11-01 21:07:44 -07:00
Alan CruickshankandMaxime Beauchemin 87b6d76c32 Consolidate all translation config (#3750)
Move all translation config to superset/translations
2017-11-01 20:13:22 -07:00
Maxime BeaucheminandGrace Guo abfa03474c Bumping react-select to rc10 (#3726) 2017-10-31 22:03:18 -07:00
mxmzdlvandMaxime Beauchemin 5bc734b2e5 Fix has_table method (#3741)
Dialect's has_table method requires connection as the first argument, not engine (https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/engine/interfaces.py#L454). Instead, we can use engine's has_table method that handles the connection for us (https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/engine/base.py#L2141). Alternatively, we could call engine.dialect.has_table(engine.connect(), ...).
2017-10-30 21:04:23 -07:00
Ryan HarmuthandMaxime Beauchemin 814b70ffd8 Escape columns names for time grains - postgres (#3736) 2017-10-30 21:02:46 -07:00
Baldo AlessandroandGrace Guo 1e18bfdea4 Fix 3657 (#3739)
* Reorders MANIFEST.in

* Includes the translations dir in MANIFEST
2017-10-30 11:26:42 -07:00
michellethomasandMaxime Beauchemin 200b66d088 Using indexOf instead of includes for isXAxisString (#3733) 2017-10-27 16:00:44 -07:00
Grace GuoandGitHub cbd01074ba bump react-bootstrap version (#3723)
1. avoid exports is not defined error
2. per jordan's suggestion, update .babelrc only use airbnb presets
2017-10-26 23:10:00 -07:00
Maxime BeaucheminandGitHub 1582fa1964 Add CRUD action to refresh table metadata (#3721)
A shortcut to make it easy to refresh a table's schema
2017-10-26 16:17:56 -07:00
Maxime BeaucheminandGitHub a9b6d11ade Validate JSON in slice's params on save (#3720)
fixes https://github.com/apache/incubator-superset/issues/3507

This prevents malformed JSON from getting saved in a slice's params. It
also prevents the issue described in #3507 from happening though as a
result malformed slices will render using default control values.
2017-10-26 16:16:21 -07:00
Maxime BeaucheminandGitHub c4b6324e74 Fix box_plot NaN issue (#3722)
fixes https://github.com/apache/incubator-superset/issues/3712
2017-10-26 12:00:22 -07:00
MagicanskandMaxime Beauchemin 9432ea80be Update messages.po (#3715)
[Chinese Translation]
2017-10-25 23:26:38 +00:00
RoganandMaxime Beauchemin f412b4c158 Missing the data of one province and two regions of China (#3686) 2017-10-25 22:27:18 +00:00
RoganandMaxime Beauchemin 547a3bf4e7 Fix the ISO code description of region/province/department (#3685)
* Fix the ISO code description of region/province/department

*  Missing the data of one province and two regions of China

* Revert " Missing the data of one province and two regions of China"

This reverts commit abff4555cd.
2017-10-25 00:58:54 +00:00
Maxime BeaucheminandGitHub e97dc9d3cb Set logging level to debug for DummyStatsLogger (#3662) 2017-10-25 00:50:15 +00:00
Jeff NiuandMaxime Beauchemin efae14592e fixes for bugs in #3689 (#3692) 2017-10-24 21:58:15 +00:00
Angus MaandMaxime Beauchemin 1d06495629 add VIPKID to the orgs. (#3703) 2017-10-24 21:30:54 +00:00
Jeff NiuandMaxime Beauchemin ffdfdb94ab changed metric heading from h1 to h3 (#3696) 2017-10-24 21:30:31 +00:00
Yu XiaoandMaxime Beauchemin 8d7e97a26e [translation] added japanese support (#3713)
* [translation] added japanese support

* fix
2017-10-24 21:29:00 +00:00
Maxime BeaucheminandGitHub f8b8f6a343 [minor] fix label showing description in time_table's URL (#3663) 2017-10-24 21:27:53 +00:00
Grace GuoandGitHub 4967342362 fix the slice permission issue after user click-edit new slice title (#3711) 2017-10-24 11:19:51 -07:00
John BodleyandGrace Guo 9893847991 [form-data] Quoting form data (#3701) 2017-10-24 10:08:08 -07:00
Grace GuoandGitHub 18e9640d99 fixing the datasource inconsistence but in visualize flow (#3698)
datasource in landing explore view is not the datasource created in sal lab.
2017-10-23 20:29:49 -07:00
Maxime BeaucheminandGitHub 58ea736ed6 [cleanup] removing print() artefacts (#3683) 2017-10-23 15:48:47 -07:00
Jay LindquistandMaxime Beauchemin b4bdc45a6b Add support for IE 11 for markup slices (#3702)
* Add srcdoc-polyfill tosupport Internet Explorer iframes in markup slices. Add allow-top-navigation and allow-popups to support links within iframes

* Remove jquery from markup.js
2017-10-23 15:35:15 -07:00
michellethomasandGrace Guo fa07b8d51b defaultSort should be false when no sort is necessary (#3693) 2017-10-23 11:17:28 -07:00
Jeff NiuandMaxime Beauchemin e121a8585e [Feature] Percentage columns in Table Viz (#3586)
* Added percent metric options to table viz

* Added unit tests for TableViz

* fixed code for python3

* bump travis
2017-10-16 20:16:20 -07:00
Alejandro FernandezandMaxime Beauchemin adef519583 DI-1113. Authentication: Enable user impersonation for Superset to HiveServer2 using hive.server2.proxy.user (a.fernandez) (#3652) 2017-10-16 20:15:16 -07:00
Maxime BeaucheminandGitHub 08f09b4761 [minor] fix padding in Time Table (#3664)
When in dashboard view, the Time Table needs some paddding
2017-10-16 17:01:35 -07:00
Jeff NiuandMaxime Beauchemin 2a89c90e0b unit tests for OptionDescription component (#3678) 2017-10-16 16:31:43 -07:00
michellethomasandMaxime Beauchemin ce5fa379ec Avoid dividing by zero for sparkline in time table viz (#3679) 2017-10-16 16:31:07 -07:00
timifasubaaandMaxime Beauchemin d4d4a9b1f1 Sqllab error troubleshooting (#3680)
* provide troubleshooting link

* add option to append error troubleshooting link beneath sqllab error
2017-10-16 16:30:08 -07:00
Maxime BeaucheminandGitHub d0b5b449b2 Add a ColorPickerControl (#3653)
* Add a ColorPickerControl

* Tests
2017-10-15 23:38:38 -07:00
Jeff NiuandMaxime Beauchemin bad6938d1a [New Viz] Partition Diagram (#3642)
* Added Partition Visualization

* added unit tests
2017-10-12 21:54:59 -07:00
timifasubaaandMaxime Beauchemin 48e28eff9b Add description for running specific test (#3665) 2017-10-12 20:53:37 -07:00
michellethomasandMaxime Beauchemin f87163413b Making the sort order for metrics pull from fd for time table viz (#3661) 2017-10-12 17:51:26 -07:00
Ali CirikandMaxime Beauchemin 52a9f2742b Make columns that return an exception on click unsortable. (#3417) 2017-10-11 22:36:12 -07:00
michellethomasandMaxime Beauchemin 7f07fbefbc Adding sort time table (#3651)
* Updating time_table component to sort

* Removing old sort
2017-10-11 21:25:17 -07:00
Ganesh KrishnanandMaxime Beauchemin 93660c6838 added aihello as superset user. (#3647) 2017-10-11 21:17:54 -07:00
Maxime BeaucheminandGitHub 3ebadbcda9 Fix #3612 - reverse sign in difference calculation (#3646) 2017-10-11 21:14:39 -07:00
Denny BiasiolliandMaxime Beauchemin 3df3e0d681 Fixing some warnings during tests (#3648)
* ColorSchemeControl: fixing bad use of PropTypes

Accessing PropTypes via the main React package is deprecated, and will be
removed in React v16.0. Use the latest available v15.* prop-types package from
npm instead. For info on usage, compatibility, migration and more, see
https://fb.me/prop-types-docs

* Control: adding PropTypes.func in types allowed inside `value` prop

This removes a warning during yarn tests

Fix #3589

* tests(QueryStateLabel): removing missing prop warning

```
Warning: Failed prop type: The prop `query` is marked as required in
`QueryStateLabel`, but its value is `undefined`.
    in QueryStateLabel
```

* SaveQuery: removing invalid prop `target` supplied to `Overlay`.

This removes a warning during yarn tests:

```
Warning: Failed prop type: Invalid prop `target` supplied to `Overlay`.
```

* RunQueryActionButton: removing `isRequired` from queryState props

This removes a warning during yarn tests:
```
Warning: Failed prop type: The prop `queryState` is marked as required in
`RunQueryActionButton`, but its value is `null`.
```
2017-10-11 21:07:52 -07:00
Jeff NiuandMaxime Beauchemin 4a3c09187a [Translations] Restored lost French translations (#3645)
* Added some missing translations

squash

* Restored previous French translations
2017-10-10 17:52:39 -07:00
Maxime BeaucheminandGitHub 76f8d33d81 [sql lab] fix impersonation + template issue (#3644)
When the database impersonation flag is on, a query using a template
fails. It has to do with templating using a database connection without
a username being specified by the caller, along with the fact that the
work is taking place on a worker, outside a web request, where
referencing g.user raises this exception.
2017-10-10 17:52:22 -07:00
Maxime BeaucheminandGitHub 6cc6637454 Pin moment.js library since 2.19.0 creates problem (#3641)
The 2.19.0 released today (2017-10-10) creates issues with the
DateFilterControl somehow. Pining lib to latest known version.
2017-10-10 15:53:03 -07:00
Maxime BeaucheminandGitHub d7f8a7fde3 [time_table] adding support for URLs / links (#3600)
Using Mustache templating and providing {{ metric }} as well as
{{ ...formData }} as context.
2017-10-10 11:54:21 -07:00
michellethomasandMaxime Beauchemin 80eb9c2c64 Set tooltip to show extent of sparkData (#3626)
* Set tooltip to show extent of sparkData

* Using d3format instead of round
2017-10-10 11:53:53 -07:00
Grace GuoandMaxime Beauchemin bd45e3b19a add explicit message display for 'Fetching Annotation Layer' error (#3631) 2017-10-10 11:49:53 -07:00
Maxime BeaucheminandGitHub b866b33dee [bugfix] Template rendering failed: '_AppCtxGlobals' object has no attribute 'user' (#3637)
Somehow the nature of `g` in Flask has changed where `g.user` used to
be provided outside the web request scope and its not anymore.

The fix here should address that.
2017-10-10 11:46:28 -07:00
Grace GuoandMaxime Beauchemin 8994bdacbd fix long title text wrapping in editable-title component (#3638)
fix https://github.com/apache/incubator-superset/issues/3628
2017-10-10 11:45:48 -07:00
Maxime BeaucheminandGitHub f3b403d346 [minor] proper tooltip on ControlHeader's instant re-render trigger (#3625) 2017-10-09 23:28:14 -07:00
Yu XiaoandMaxime Beauchemin 5ad4167512 add annotation option and a linear color map for heatmap viz. (#3634)
* add annotation option and a linear color map for heatmap viz.

* error fixes.

* fixes for requested changes
2017-10-09 23:17:51 -07:00
Maxime BeaucheminandGitHub ca67a7a4e9 [bugfix] empty From date filter NoneType error (#3633)
Error "AttributeError: 'NoneType' object has no attribute 'split'" is
fired.
2017-10-09 20:59:11 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 64ef8b14b4 remove unused imports (#3621)
* superset: remove unused imports

Spotted by pyflakes

* superset: removed unused get_session
2017-10-08 21:04:09 -07:00
Jeff NiuandMaxime Beauchemin 912c6f6231 fixing date/time filter keys (#3611) 2017-10-07 13:07:23 -07:00
Maxime BeaucheminandGitHub 6f1351fbbb [bugfix] #3593 'Chart Options' panel is missing (#3606) 2017-10-06 00:43:55 -07:00
Maxime BeaucheminandGitHub f75dc0271d Removing git artifact (#3601) 2017-10-05 09:25:05 -07:00
Maxime BeaucheminandGitHub 1fb8716231 [hotfix] fixing issues around new time_table viz (#3599) 2017-10-04 16:22:11 -07:00
Maxime BeaucheminandGitHub ed212440b5 [hofix] work around circular deps (#3598)
* [hofix] work around circular deps

* lint
2017-10-04 14:48:32 -07:00
Maxime BeaucheminandGitHub 1528288b59 [time table] fix reversed ratio (#3597) 2017-10-04 13:11:02 -07:00
Jeff NiuandMaxime Beauchemin 7c936e7f60 [Feature/Bugfix] Datepicker and time granularity options to dashboard filters (#3508)
* Feature: added datepicker and time granularity options to dashboard filter

* Added option for Druid datasource time filters

* added more checkbox control over dashboard time filters
2017-10-04 12:43:29 -07:00
Denny BiasiolliandMaxime Beauchemin ff268a7526 updating react-alert dependency to v2.3.0 (#3596)
it was downgraded in commit 7045018d86.
The old version used React.PropTypes and it was deprecated.
This version is compatible with React 15+.

Fix #3588
2017-10-04 12:08:06 -07:00
Maxime BeaucheminandGitHub e9804aedff [translations] generating missing strings (#3577) 2017-10-04 12:07:46 -07:00
Jeff NiuandMaxime Beauchemin e95132ddc3 [Bugfix/Feature] Fixed slice render staggering on dashboard first load (#3478)
* Feature: disable dashboard refresh staggering

* Removed refresh staggering everywhere except during periodic render
2017-10-04 10:23:17 -07:00
Maxime BeaucheminandGitHub bb0f69d074 New "Time Series - Table" visualization (#3543)
* [WiP] adding a new "Time Series - Table" viz

* Adding drag-n-drop to collection

* Using keys in arrays

* tests
2017-10-04 10:17:33 -07:00
Maxime BeaucheminandGitHub 645de384e3 [sql lab] fix numeric sort in data table (#3587)
Currently numerical values sort as alpha, this addresses the issue.
2017-10-04 10:17:01 -07:00
fabianmengesandMaxime Beauchemin 15ecdeb3ba Fxing bug in label generation for multiple groupbys (#3594) 2017-10-04 09:40:30 -07:00
Naoya KanaiandMaxime Beauchemin 04ea3addc4 update immutable.js to v3.8.2 (MIT license) (#3591) 2017-10-04 09:07:12 -07:00
Jeff NiuandMaxime Beauchemin 7e64f2e988 [Feature] Copy-to-clipboard button in View Query (#3571)
* added copy-to-clipboard button to explore/view query

* modified CopyToClipboard to deselect current before copying
2017-10-03 22:34:40 -07:00
Jeff NiuandMaxime Beauchemin 40fbf1c761 Allow users to see query string when query returns no data (#3585) 2017-10-03 22:32:17 -07:00
fabianmengesandMaxime Beauchemin a85968eadb [Bugfix]: Explore view does not respect custom timeout. (#3582) 2017-10-03 22:20:32 -07:00
Jeff NiuandMaxime Beauchemin efc63669a6 Fixed creating new filter options in FilterBox (#3584) 2017-10-03 22:20:10 -07:00
Jeff NiuandMaxime Beauchemin 076f9cd095 Added custom pasteSelect to handle paste events (#3562) 2017-10-03 15:58:18 -07:00
Maxime BeaucheminandGitHub fdbc936dc9 Bumping React to 15.6.2 (MIT license) (#3569)
I think that leaves only immutable.js with the ASF-incompatible PATENTS clause

I asked for a 3.8.x MIT release of the immutable lib here:
https://github.com/facebook/immutable-js/issues/1309
2017-10-03 15:57:42 -07:00
Maxime BeaucheminandGitHub 18e459e19e v0.20.1 (#3576) 2017-10-03 00:04:43 -07:00
michellethomasandMaxime Beauchemin 064363df78 After saving slice fixing redirect (#3572) 2017-10-02 18:19:52 -07:00
Jeff NiuandMaxime Beauchemin f8cc05b54e Added label+percent and label+value display options to pie chart (#3565) 2017-10-02 15:53:11 -07:00
Denny BiasiolliandMaxime Beauchemin 9baca6758d Removing yarn warnings during install (#3567)
* removing deprecated babel-preset-es2015 in favor of babel-preset-env

This removes this yarn warning during install:

```
warning babel-preset-es2015@6.24.1:
Thanks for using Babel: we recommend using babel-preset-env now:
please read babeljs.io/env to update!
```

* updating sinon to 4.0.0

This removes wrench from its dependencies and this yarn warning during install:

```
warning wrench@1.3.9: wrench.js is deprecated!
You should check out fs-extra (https://github.com/jprichardson/node-fs-extra)
for any operations you were using wrench for.
Thanks for all the usage over the years.
```
2017-10-02 15:25:37 -07:00
Maxime BeaucheminandGitHub b39d165913 [nvd3] fix single metric showing up in legend (#3563) 2017-10-02 10:42:16 -07:00
Kan OuivirachandMaxime Beauchemin bc3ad64619 Add Pronto Tools to user list (#3558) 2017-10-02 08:41:04 -07:00
Gábor HermannandMaxime Beauchemin 0bd2ac5353 Minor documentation fix (#3553) 2017-09-29 16:47:18 -07:00
Maxime BeaucheminandGitHub 03e2af8bd9 CHANGELOG for 0.20.0 (#3545) 2017-09-28 14:42:57 -07:00
timifasubaaandMaxime Beauchemin 82b85d1d6c Explore update button labels (#3534)
* resolve ui ambiguity

* resolve button name ambiguity

* update test
2017-09-28 14:40:11 -07:00
Maxime BeaucheminandGitHub 17c7ca239a Fixing missing messages.json file (#3547) 2017-09-28 12:24:00 -07:00
Grace GuoandMaxime Beauchemin ef59b6b650 try to fix problem that chrome window not opening after ajax requrest (#3528) 2017-09-27 21:22:22 -07:00
Grace GuoandMaxime Beauchemin d1a7a7b85c Time Series Annotation Layers (#3521)
* Adding annotations to backend

* Auto fetching Annotations on the backend

* Closing the loop

* Adding missing files

* annotation layers UI

for https://github.com/apache/incubator-superset/issues/3502

* a few fixes per code review.

- add annotation input sanity check before add and before update.
- make SelectAsyncControl component statelesis, and generic
- add annotation description in d3 tool tip
- use less variable to replace hard-coded color
2017-09-27 20:40:07 -07:00
Maxime BeaucheminandGitHub 3d72eb475a [explore] fix cached tooltip (#3526) 2017-09-27 20:39:29 -07:00
Maxime BeaucheminandGitHub b50489eb96 v0.20.0 (#3544) 2017-09-27 20:38:50 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 8773e32cd6 setup: bump pandas to 0.20.3 (#3506) 2017-09-27 19:50:06 -07:00
Riccardo MagliocchettiandMaxime Beauchemin f438ccbcb1 Add support for column specific fillna to viz (#3066)
Fix #3029
2017-09-27 17:51:04 -07:00
Riccardo MagliocchettiandMaxime Beauchemin f829b486d1 docs: QUERY_TIMEOUT_THRESHOLD is gone (#3537) 2017-09-27 08:20:59 -07:00
Maxime BeaucheminandGitHub 06e52e600e [style] no bold on dashboard widget headers (#3531) 2017-09-26 16:04:09 -07:00
michellethomasandMaxime Beauchemin f0636b8748 Break word on InfoTooltip (#3532)
* Break word on InfoTooltip

* Moving style object to separate const
2017-09-26 16:03:39 -07:00
Jeff NiuandMaxime Beauchemin c629282ec4 Feature: Paired t-test table visualization (#3473)
* Feature: paired t-test table viz

* Added unit tests for viz
2017-09-26 15:11:35 -07:00
Jeff NiuandMaxime Beauchemin 7d934e7246 Feature: query string API endpoint (#3513)
* exposed API endpoint to get querystring for a slice

* Added unit tests for endpoint

* fixed test case for python3

* moved get querystring logic into its own func

* renamed query string endpoint
2017-09-26 09:03:03 -07:00
fabianmengesandMaxime Beauchemin 8efcaeb768 Feature: Display the verbose name for metrics within Charts and legend. (#3504) 2017-09-25 20:21:44 -07:00
Jeff NiuandMaxime Beauchemin cf0b670932 Druid refresh metadata performance improvements (#3527)
* parallelized refresh druid metadata

* fixed code style errors

* fixed code for python3

* added option to only scan for new druid datasources

* Increased code coverage
2017-09-25 18:00:46 -07:00
Grace GuoandMaxime Beauchemin 3949d39478 Allow user update slice title in visualize flow (#3466)
* 1. after user make sql query and visualize, allow user click title to update slice title, and create a new slice at the same time.
2. don't save new title if it is empty. Will still show old title.

* change saveSlice call response and update explore view
2017-09-25 11:38:29 -07:00
Grace GuoandMaxime Beauchemin 5718d6bbaf allow user update slice name in dashboard view (#3467)
- if current user is allowed to edit dashboard, we will allow this user to edit slice name.
- show different tooltip given allowed/not-allowed to update slice name.
- user will click slice name and update.
- after user submit edit, if he doesn't have right to alter slice, server-side will return error message to client-side. Slice name will not be changed or saved.
- will show notification after save slice name.
2017-09-25 11:37:12 -07:00
Jeff NiuandMaxime Beauchemin f3146ef6f9 Add Table performance improvements (#3509)
* Improved performance of 'Add table' function

* got rid of pvt function call

* changes metric obj to key on metric_name
2017-09-25 11:35:09 -07:00
michellethomasandMaxime Beauchemin 255ea69977 Add metric warning (#3499)
* Adding warning text to metrics

* Adding javascript tests

* Fixing downgrade script for warning_text

* Adding merge migration
2017-09-22 09:49:13 -07:00
Grace GuoandMaxime Beauchemin 9af34ba51c js translation -- performance improvment (#3390)
* Chinese page

* Using react-intl-universal to improve multi language in react page

* Using react-intl-universal to improve multi language in react page

* react_intl_universal

* change

* change

* change

* change

* change

* change

* change

* merge

* multiple page in js

* merge

* merge

* merge

* merge

* Js Translations

* JS Translation

* JS Translations

* Js translation

* JS translations

* JS translations

* Js translaion

* JS en Translation

* JS Translation

* upgrade document

Fixing the damn build (#3179)

* Fixing the build

* Going deeper

[bugfix] only filterable columns should show up in FilterBox list (#3105)

* [bugfix] only filterable columns should show up in FilterBox list

* Touchups

Datasource cannot be empty (#3035)

add title description to model view (#3045)

* add title description to model view

* add missing import

Add 'show/hide totals' option to pivot table vis (#3101)

[bugfix] numeric value for date fields in table viz (#3036)

Bug was present only when using the NOT GROUPED BY option

fixes https://github.com/ApacheInfra/superset/issues/3027

fix hive.fetch_logs (#2968)

add Zalando to the list of organizations (#3171)

docs: fixup installation examples code indentation (#3169)

[bugfix] fix bar order (#3180)

[bugfix] visualize flow error: 'Metric x is not valid' (#3181)

The metric name in the frontend doesn't match the one generated on the
backend. It turns out the explore view will default to the first
metric so specifying one isn't needed.

Fix the segment interval for pulling metadata (#3174)

The end of the interval would be on the truncated today date, which
means that you will exclude today. If your realtime ingestion job
runs shorter than a day, the metadata cannot be pulled from the
druid cluster.

Bump cryptography to 1.9 (#3065)

As 1.7.2 doesn't compile here with openssl 1.1.0f

Escaping the user's SQL in the explore view (#3186)

* Escaping the user's SQL in the explore view

When executing SQL from SQL Lab, we use a lower level API to the
database which doesn't require escaping the SQL. When going through
the explore view, the stack chain leading to the same method may need
escaping depending on how the DBAPI driver is written, and that is the
case for Presto (and perhaps other drivers).

* Using regex to avoid doubling doubles

[sqllab] improve Hive support (#3187)

* [sqllab] improve Hive support

* Fix "Transport not open" bug
* Getting progress bar to show
* Bump pyhive to 0.4.0
* Getting [Track Job] button to show

* Fix testzz

Add BigQuery engine specifications (#3193)

As contributed by @mxmzdlv on issue #945

[bugfix] fix merge conflict that broke Hive support (#3196)

Adding 'apache' to docs (#3194)

[druid] Allow custom druid postaggregators (#3146)

* [druid] Allow custom druid postaggregators

Also, fix the postaggregation for approxHistogram quantiles so it adds
the dependent field and that can show up in the graphs/tables.

In general, postAggregators add significant power, we should probably
support including custom postAggregators. Plywood has standard
postAggregators here, and a customAggregator escape hatch that allows
you to define custom postAggregators.

This commit adds a similar capability for Superset and a additional
field/fields/fieldName breakdown of the typical naming for dependent
aggregations, which should make it significantly easier to develop
approxHistogram and custom postAggregation-required dashboards.

* [druid] Minor style cleanup in tests file.

* [druid] Apply code review suggestions

* break out CustomPostAggregator into separate class. This just cleans
  up the creation of the postaggregator a little bit.
* minor style issues.
* move the function around so the git diff is more readable

add combine config for metrics in pivot table (#3086)

* add combine config for metrics in pivot table

* change method to stack/unstack

* update backendSync

Autofocus search input in VizTypeControl modal onEnter (#2929)

Speed up JS build time (#3203)

Also bumping a few related libs

JS Translation

JS translations

js translation

fix issue 3204 (#3205)

[bugfix] capture Hive job_id pre-url transformation (#3213)

js translation

fix issue 3204 (#3205)

[bugfix] capture Hive job_id pre-url transformation (#3213)

[docs] update url in CONTRIBUTING.md (#3212)

[sqllab/cosmetics] add margin-top for labels in query history (#3222)

[explore] nvd3 sort values in rich tooltip (#3197)

[sqllab] fix UI shows 'The query returned no results' momentarily (#3214)

this is visible when running async queries between the fetching and
success state as the rows are getting cached in the component

[explore] DatasourceControl to pick datasource in modal (#3210)

* [explore] DatasourceControl to pick datasource in modal

Makes it easier to change datasource, also makes it such that the list
of all datasources doesn't need to be loaded upfront.

* Adding more metadata

* Js translation

* js tran

* js trans

* js trans

* js tran

* js trans

* js trans

* js tran

* js translation

* js trans

* js translation

* try load language pack async

* Backend translations things

* create language pack inside common data

* performance improvement for js i18n.

- js bundle should not contain localized content
- we populate translation content from server-side, in boostrap.common.language_pack
- in client-side, use promise to wrap around translation content. text will be translated after translation content arrived/parsed.
- fix linting

* fix Timer unit test

* 1. add global hook for all tests, to make translation pack avaialble before each test starts.
2. fix unit test for Timer component
3. remove noused method get_locale, and modules
4. fix page reload after user change page language

* parse and build i18n dictionary as a module

* fix sync-backend task, which should run without DOM
2017-09-20 12:37:33 -07:00
timifasubaaandMaxime Beauchemin 1cf634afa2 Remove repeated line (#3491)
* add lanscape?

* Revert "add lanscape?"

This reverts commit b3d6e80af4.

* remove unused line
2017-09-19 21:30:48 -07:00
timifasubaaandMaxime Beauchemin d7fc364ff4 Fix idna requirement (#3497)
There is often conflicting versions of idna. This fixes is to 2.5.
2017-09-19 21:30:18 -07:00
timifasubaaandMaxime Beauchemin aebd089ca5 update contributing.md (#3495)
Uses pip instead to setup superset.
2017-09-19 21:30:01 -07:00
Maxime BeaucheminandGitHub ae7f163372 Removing super() call from refactor (#3500) 2017-09-19 16:41:09 -07:00
Maxime BeaucheminandGitHub ed9f56448f Adding missing future imports (#3493) 2017-09-19 11:20:22 -07:00
Maxime BeaucheminandGitHub ccd5fd44cf Removing dependency on pythrifthiveapi (#3494)
Since the latest pyhive, we don't need pythrifthiveapi as they ship with
the latest version.

There's actually a conflict between the new pyhive and pythrifthiveapi
and this fixes it.
2017-09-19 11:19:49 -07:00
Maxime BeaucheminandGitHub c5252d0f43 [heatmap] account for bounds = 0 (#3474)
* [heatmap] account for bounds = 0

* Fix sorting

* linting
2017-09-18 21:32:39 -07:00
timifasubaaandMaxime Beauchemin ede1432936 Improve code quality (#3480)
* add lanscape?

* add code climate badges

* pylint first pass

* Try out yapf

* merge

* merge

* lint

* more yapf

* removed unnecessary corrections
2017-09-18 20:40:27 -07:00
fabianmengesandMaxime Beauchemin c3c9ceb1cc Feature/Fix: Get a full times_series for your filter instead of Topn for each point in time (#3434) 2017-09-18 10:48:05 -07:00
datinhoandMaxime Beauchemin 6fe93e18c7 Getting datatype with its dialect (#3486) 2017-09-18 09:55:41 -07:00
Dmitry GoryunovandMaxime Beauchemin c988080990 Feature: "Impersonate user" setting on Datasource (#3404)
* Add "Impersonate user" setting to Datasource

* Add tests

* Use g.user.username for all the sync cases

* use uri.username instead of uri.user

* Small refactoring
2017-09-18 09:52:29 -07:00
JulieRossiandMaxime Beauchemin a26e65f418 Create CsvResponse to manage csv exports encoding (#3484) 2017-09-18 09:51:13 -07:00
Maxime BeaucheminandGitHub e66f68d36c Better installation docs (#3469) 2017-09-18 09:49:48 -07:00
Riccardo MagliocchettiandMaxime Beauchemin cb4d934ba5 viz: fix reversed stats_logger label (#3475) 2017-09-18 09:45:49 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 6962c76412 docs: athena can be installed from pypi (#3477)
As sqlalchemy support has been merged and available in a release
since a few.
2017-09-18 09:45:00 -07:00
Riccardo MagliocchettiandMaxime Beauchemin b0d25a154a Miscvizcleanups (#3476)
* viz: remove unused countries import

* viz: simplify code in BaseViz.query_obj
2017-09-18 09:44:19 -07:00
fabianmengesandMaxime Beauchemin e22aecb0d1 Adding hook for CSRF exempting flask views. (#3435) 2017-09-14 20:54:18 -07:00
Jeff CareyandMaxime Beauchemin 32bd827b25 bugfix/3321 Ensure text appears on buttons inside tables (#3409) 2017-09-14 20:28:01 -07:00
Stephanie RiveraandMaxime Beauchemin e399a8c613 Simple grammar and update to link (#3415) 2017-09-14 17:41:01 -07:00
JulieRossiandMaxime Beauchemin b90d8e32f1 config: allow changing default options for writting csv (#3441) 2017-09-14 17:40:15 -07:00
Xiao HanyuandMaxime Beauchemin c81026ddb1 Add shopee to user list. (#3425)
Shopee (https://shopee.sg) use superset for data analytics, visualisation and reporting.
2017-09-14 17:12:54 -07:00
Jeff NiuandMaxime Beauchemin dd72048320 Fixed filter removal bug (#3458)
* Fixed bugs when removing filter, switching operators, and switching columns

* Fixed lint errors for code style

* Added more unit tests for FilterControl

* Code format changes to meet standards
2017-09-14 17:10:38 -07:00
Grace GuoandMaxime Beauchemin ad604aed09 fix encoding error in sql lab logging (#3424) 2017-09-14 11:18:34 -07:00
timifasubaaandMaxime Beauchemin 31b7b9a6a0 Sqllab dont send empty queries to db (#3459)
* add lanscape?

* prevent empty queries from being sent to db

* Revert "add lanscape?"

This reverts commit b3d6e80af4.

* improve code style

* nit

* unnit

* renit
2017-09-14 09:50:06 -07:00
Jeff NiuandMaxime Beauchemin 745784fc97 Fixed dashboard filters carrying over to explore slice (#3461) 2017-09-14 09:44:00 -07:00
fabianmengesandMaxime Beauchemin fdee06bbf2 Adding hook for external password store for databases (#3436) 2017-09-13 20:59:03 -07:00
Maxime BeaucheminandGitHub 816c517f0f Allow specifying sort criteria on Table viz (#3460)
* Allow to specify sort criteria on table viz

* Better handling of ordering
2017-09-13 20:18:47 -07:00
Maxime BeaucheminandGitHub 49f24d128b [heatmap] numerous improvements (#3456)
* [heatmap] numerous improvements

* flexibility as to how to sort X and Y axis (alpha/value, desc/asc)
* option to show a legend
* fixed margins, maximize real estate
* allowed users to define bounds

* Tunning
2017-09-13 16:13:45 -07:00
Grace GuoandMaxime Beauchemin 8223729e1e fix https://github.com/apache/incubator-superset/issues/3430 (#3431) 2017-09-12 12:06:38 -07:00
Grace GuoandMaxime Beauchemin 2d6b9422c6 fix https://github.com/apache/incubator-superset/issues/3422 (#3440) 2017-09-12 12:06:22 -07:00
fabianmengesandMaxime Beauchemin 3c0e85e2c0 Adding order_desc flag to explore endpoint (#3439) 2017-09-12 09:48:43 -07:00
fabianmengesandMaxime Beauchemin 490c707eb6 Handling pandas ExtensionDtypes (#2937) 2017-09-12 09:36:28 -07:00
Maxime BeaucheminandGitHub 7c1b56f3a9 [postgres] adding support to serialized timedelta (#3444) 2017-09-12 09:06:53 -07:00
Maxime BeaucheminandGitHub 3e9f797949 [explore] show validation error on control panel header (#3453)
* [explore] show validation error on control panel header

* Linting
2017-09-12 09:06:29 -07:00
Maxime BeaucheminandGitHub f3de758363 [heatmap] fix default sorting (#3450)
Currently the heatmap axis are sorted randomly, this PR makes it such
that it's properly sorted.

Also allowing for specifying the left and bottom margins
2017-09-12 09:06:03 -07:00
Maxime BeaucheminandGitHub 90e46cb39c Fix off-by-one error with linear color scales (#3452)
* Fix off-by-one error with linear color scales

* linting
2017-09-12 09:05:26 -07:00
Maxime BeaucheminandGitHub fe77534c03 [explore] checkbox control won't uncheck (#3454) 2017-09-12 09:05:07 -07:00
fabianmengesandMaxime Beauchemin 1f135e41cd Ignore intellij files (#3446) 2017-09-12 09:04:48 -07:00
Maxime BeaucheminandGitHub 147c12dddf Fixing the build (#3445)
* Bumping npm

* Fixing the build

This addresses long standing issues and hacks around react-map-gl
that have been creating all sorts of build issues over time.

It appears that recent changes broke things further.

This PR upgrades to the latest `react-map-gl` and removes related hacks.
2017-09-11 16:30:39 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 3dfdde130a setup: Bump sqlalchemy-utils to 0.32.16 (#3405)
Now sqlalchemy-utils will make explicit that we are trying
decoding the secret with the wrong key instead of a generic
UnicodeDecodeError.

Fix #2600
2017-09-01 08:30:48 -07:00
Maxime BeaucheminandGitHub 255a36c280 [hotfix] user dashboard says '150 weeks' (#3403) 2017-08-31 15:00:21 -07:00
Maxime BeaucheminandGitHub 66f646ac66 [hotfix] fix slices where since/until = None (#3401) 2017-08-30 20:26:58 -07:00
Maxime BeaucheminandGitHub e53f3032bb [dashboard] adding an option to duplicate slices when "Saving AS" (#3391)
* [dashboard] adding an option to duplicate slices when "Saving AS"

* Fix tests
2017-08-30 14:09:29 -07:00
Maxime BeaucheminandGitHub 3b4cd812ae Fix copypasta control label error 'Until' -> 'Since' (#3399) 2017-08-30 14:05:21 -07:00
Maxime BeaucheminandGitHub ac5da46fb2 [line chart] add 'min_periods' control related to rolling windows (#3397)
* [line chart] add 'min_periods' control related to rolling windows

* Linting js
2017-08-30 13:32:07 -07:00
Maxime BeaucheminandGitHub 497a6f1df9 [hive] fix date casting in explore view (#3394) 2017-08-30 11:56:43 -07:00
Maxime BeaucheminandGitHub 1fd08a5912 [hotfix] backward compatibility on date expressions (#3396)
Previously all 'since' date expression evaluated in the future like
`30 days` would be reassigned to the past (now - `30 days`). It would
extend to fixed dates which is a bad thing and was removed.

Now we have reports and dashboards in the wild that use things like `30
days` and we'd like to not break those as we roll out the next version.

This fix should allow for that.
2017-08-30 11:18:23 -07:00
PatrykandMaxime Beauchemin 9676f02497 Add Capital Service to organizations list (#3395) 2017-08-30 09:36:54 -07:00
mxmzdlvandMaxime Beauchemin 42dd64e413 Fix datatable scroll height when using filter or pagination (#3377) 2017-08-29 21:10:48 -07:00
Grace GuoandMaxime Beauchemin c3ab796734 fix date picker Select alignment (#3392) 2017-08-29 19:08:54 -07:00
Maxime BeaucheminandGitHub a782d623f0 Build optimizations (#3378)
Bumping some version, removing unused libs, ...
2017-08-28 16:16:52 -07:00
Maxime BeaucheminandGitHub 48b88e5241 [dashboard] load list of slices at modal enter time (#3379) 2017-08-28 14:31:43 -07:00
Maxime BeaucheminandGitHub a47a512808 [explore] Improved time filters controls (#3371)
* Improved time filters controls

* lint

* Fix coverage

* Allow empty dates
2017-08-28 09:16:23 -07:00
Maxime BeaucheminandGitHub aff7a82664 [sql lab] using react-split-pane (#3363)
* [sql lab] using react-split-pane

* padding
2017-08-27 15:01:24 -07:00
Maxime BeaucheminandGitHub 2d237fe2ef v1.9.1 (#3376) 2017-08-26 15:07:17 -07:00
mxmzdlvandMaxime Beauchemin c944c61747 Apply advanced analytics processing to comparison time series (#3373) 2017-08-25 11:08:15 -07:00
Maxime BeaucheminandGitHub 0c8b24378d [webpack] add a 'npm run dev-fast' command that is much faster (#3362)
The tradeoff is that the sourcemap isn't as reliable.
2017-08-24 19:23:23 -07:00
Boris HajdukandMaxime Beauchemin 90ba6ee6a0 bugfix for addTotalValues with negative values (#3366) 2017-08-24 15:37:58 -07:00
timifasubaaandMaxime Beauchemin 8d877e8a35 [explore] Fix and test slice id logging issue (#3339)
* [explore] fixed padding bug on filter section

* fix slice_id logging issue

* [superset-sqllab] fix slice_id population in appropriate column

* [explore-logging] test the slice_id logging fix

* fix travis errors

* fix nits pointed out in PR comments

* cleanup tests

* made python more beautiful

* made python even more beautiful

* made python even more more beautiful

* made python even more more more beautiful

* fix lint error

* make exception handling more specific

* fixed silly error

* fixed argument indentation
2017-08-24 09:11:41 -07:00
Maxime BeaucheminandGitHub c5b1eb7f5b Bump fab to 1.9.4 (#3364)
Important bug/security fixes detailed here:
https://github.com/dpgaspar/Flask-AppBuilder/blob/master/docs/versions.rst
2017-08-24 08:08:29 -07:00
Maxime BeaucheminandGitHub 46d60880eb Revert "[sql lab] Make sql editor resizable (#3242)" (#3360)
This reverts commit 75e69f02e8.
2017-08-23 14:40:08 -07:00
Maxime BeaucheminandGitHub 0c36827368 [dist_bar] break down control groups (#3357) 2017-08-22 21:11:48 -07:00
timifasubaaandMaxime Beauchemin 2b1bb35c5c delete unused csv file (#3356) 2017-08-22 21:11:26 -07:00
Maxime BeaucheminandGitHub d3824bbb38 [hotfix] react-select dropdown autocomplete are invisible (#3358) 2017-08-22 20:56:25 -07:00
Maxime BeaucheminandGitHub 670ba5d32e Collapsible Control sections (#3354)
The left panel of the explore view has become crowded and overwhelming
overtime. This PR adds functionality to collapse the control sections,
and sets most sections to be collapse by default as the explore view
opens up.

* breakdown `Query` section for most viz
* bring filters to the top, under Query section
* collapse most sections by default
* removed confusing outdated description for Filter section
2017-08-22 16:10:55 -07:00
Maxime BeaucheminandGitHub 64c91ec9e3 [bugfix] Y bounds in line chart (#3353)
Also fixing tick labels showing NaN in the `dist_bar` viz
2017-08-22 16:10:42 -07:00
Maxime BeaucheminandGitHub 1fda6f0745 [css] react-select only in theme (#3351) 2017-08-21 17:36:54 -07:00
Grace GuoandMaxime Beauchemin f8e596b9d8 fix multi-value react select style (#3352) 2017-08-21 17:36:33 -07:00
Maxime BeaucheminandGitHub 254645773c Better looking checkboxes (#3345)
Also showing icon only on hover on control headers
2017-08-21 13:47:50 -07:00
Maxime BeaucheminandGitHub e79adbbc5f [hotfix] self-immune filter_box fix (#3338) 2017-08-18 17:43:11 -07:00
Dmitry GoryunovandMaxime Beauchemin 75e69f02e8 [sql lab] Make sql editor resizable (#3242)
* Update to the version of react-ace with the fixed sizing issues

* Make ace editor resizable

* Use small util method for offset calculation instead of $

* Test ResizableAceEditor

* Make the right pane of the Sql Lab scrollable

* Add default and min height to the ResizableAceEditor

* Implement SplitPane

* Make Splitter fullscreen

* React on resize of the window

* Implement min and max

* Get rid of a magic number + add margin

* Handle resize event with delay + cleanup the code

* Make ResultSet adjustable

* Make QueryHistory adjustable

* Remove ResizableAceEditor

* Make linter happy

* Test SplitPane

* Init sizes properly
2017-08-18 17:15:25 -07:00
Maxime BeaucheminandGitHub 6fc837db51 [sql lab] improve error messages (#3308)
* [sql lab] improve error messages

Some error messages in non-async mode were showing as JSON or sometimes
as tuples. This fixes that.

* linting
2017-08-18 15:50:07 -07:00
Maxime BeaucheminandGitHub 2923a125db Syncing the timeout param from backend (#3329)
* Syncing the timeout param from backend

* Linting
2017-08-18 15:49:47 -07:00
Maxime BeaucheminandGitHub 527572c3eb [dashboard] re-enabling cascading filters (#3335)
* [dashboard] re-enabling cascading filters

https://github.com/apache/incubator-superset/pull/3183 disabled the
ability of a filterbox to get filtered by another filterbox

* linting
2017-08-18 15:49:29 -07:00
Maxime BeaucheminandGitHub a7ba6e4a5d [nvd3] fix bubble axis (#3332)
number of issues are addressed here:
* x axis formatting doesn't apply in bubble chart
* adding option to show/hide bounds of x and y axis
* with a flaky 'auto' margin mode, allow user to specify hard values or
  auto
* x label font-size was different than y axis
* show more options and reorg Control panels for Axes in `line` viz
2017-08-18 11:56:34 -07:00
Maxime BeaucheminandGitHub e31ad22f50 [hotfix] hotfixing the hotfix (#3333) 2017-08-17 23:18:41 -07:00
RoganandMaxime Beauchemin 813ed6018d Unnecessary to specify order_columns for DatasourceModelView (#3331) 2017-08-17 22:18:32 -07:00
Grace GuoandMaxime Beauchemin 0454ef3726 disable immediately re-render for color scheme change (#3328)
for chart type: bubble, area, treemap and country map, color scheme change cannot take effect immediately. So have to disable immediately re-render function and hide lightening icon for these chart type.
2017-08-17 21:38:34 -07:00
Maxime BeaucheminandGitHub afedcdf0d8 [hotfix] dashboard widget resize is broken (#3330)
blame https://github.com/apache/incubator-superset/pull/3315
2017-08-17 21:20:51 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 9f3aeb22d9 docs: add references to Flask-Appbuilder Security documentation (#3322)
And a specific link to an oauth example configuration.
2017-08-17 11:48:22 -07:00
Maxime BeaucheminandGitHub 59268e978a Use react-alert for backend message flashing (#3315) 2017-08-16 23:00:23 -07:00
Grace GuoandMaxime Beauchemin b9a2fa4015 Allow for multiple color schemes (#3295)
* Allow for multiple color schemes

1. create ColorSchemeControl component
2. using the same new control component for linear colors

* add color spectum for linear color scheme

* remove dup css

* fix controls setting for linear color scheme

* minor fix by code review comment
2017-08-16 22:20:11 -07:00
InvenisandMaxime Beauchemin 3c8577b853 French translation (#3313) 2017-08-16 20:29:18 -07:00
Maxime BeaucheminandGitHub 0aa3d2a818 [hive] improve error messages (#3305)
* [hive] improve error messages

* Addressing comments
2017-08-16 17:40:28 -07:00
Maxime BeaucheminandGitHub fbd0d46e8a Fix styles in Separator widget (#3309)
Style wasn't working right for separator widget since the iframe sandboxing of
the markup widget. This addresses this small issue and also now allows
for html in the separator widget
2017-08-16 17:40:06 -07:00
Maxime BeaucheminandGitHub c4e056929d [sql lab] run button shortcut tooltip (#3310) 2017-08-16 17:39:48 -07:00
Maxime BeaucheminandGitHub 84e59a11f1 [bugfix] Presto KeyError 'errorLocation' (#3291) 2017-08-16 13:25:09 -07:00
Maxime BeaucheminandGitHub 9fcd5d67e4 [sql lab] add pending to the list of searchable statuses (#3292) 2017-08-16 13:24:43 -07:00
Maxime BeaucheminandGitHub ccf505a480 [mapbox] fix viewport alterations (#3293)
* [mapbox] fix viewport alterations

Since explorev2 it appears that altering the viewport hasn't been
changing the controls as it used to. This PR addresses it.

* lint
2017-08-16 11:23:01 -07:00
RoganandMaxime Beauchemin d1d1c49009 Fix raise error when query datasource (#3298)
* Catching the 'NoResultFound' exception when the datasource does't exist

* change one() to first()

* revert modify

* remove import
2017-08-16 10:18:43 -07:00
Maxime BeaucheminandGitHub 232a5c392e [docs] document how to compile/publish docs (#3296) 2017-08-15 16:37:40 -07:00
Maxime BeaucheminandGitHub 9c6248f3ba [dashboard] add link to export CSV from dashboard (#3280)
* [dashboard] add link to export CSV from dashboard

fixes #1304

* Fix tests
2017-08-14 18:25:36 -07:00
Maxime BeaucheminandGitHub 6841697917 FAQ entry for backend support (#3282)
so that I can close:
https://github.com/apache/incubator-superset/pull/1470/files
2017-08-14 17:57:09 -07:00
Maxime BeaucheminandGitHub 81817309d3 [sql lab] fix sluggish backspace in editor (#3286)
Somehow Ace's "changeSelection" event is triggered when hitting
backspace (and shouldn't!).

changeSelection on our side triggers enough work to make the
holding backspace sluggish and laggy.

This fix ignores selection with a length of 1, avoiding mutating the
state altogether when hitting/holding backspace.
2017-08-14 17:55:30 -07:00
Grace GuoandMaxime Beauchemin 025ef5a0f1 Fix Chart Error Message Display (#3287) 2017-08-14 12:24:35 -07:00
Maxime BeaucheminandGitHub 9a4e4d0443 [dashboard] fix standalone mode that hides the navbar (#3284) 2017-08-14 12:24:05 -07:00
Grace GuoandMaxime Beauchemin c9c6bcaabe Improve superset list view content layout (#3031)
* improve superset list view page layout

- less header spaces and stacks
- move pagination down to bottom
- apply material design style to 'add' action button
- will apply to all superset list view, like slices list, security tab lists etc.

* improve superset list view page layout

- less header spaces and stacks
- move pagination down to bottom
- apply material design style to 'add' action button
- will apply to all superset list view, like slices list, security tab lists etc.

* improve superset list view page layout

- less header spaces and stacks
- move pagination down to bottom
- apply material design style to 'add' action button
- will apply to all superset list view, like slices list, security tab lists etc.

* improve superset list view page layout

- less header spaces and stacks
- move pagination down to bottom
- apply material design style to 'add' action button
- will apply to all superset list view, like slices list, security tab lists etc.

* improve superset list view page layout

- less header spaces and stacks
- move pagination down to bottom
- apply material design style to 'add' action button
- will apply to all superset list view, like slices list, security tab lists etc.

* remove tabs from indentation

* fix merge conflicts

* adjust css after code merge
2017-08-11 15:34:29 -07:00
Maxime BeaucheminandGitHub 144f516700 [markup] fix CSS, remove scrollbar (#3281) 2017-08-11 08:26:47 -07:00
Emanuele CesenaandMaxime Beauchemin c17ffc1e9c Fix returned time parse_human_datetime (#2033)
parse_human_datetime parses date-only strings, e.g. "today", returning the correct date but time set at 9am. This is an internal implementation in parsedatetime. This patch resets to midnight. If time is specified and parsed, it is correctly returned.
2017-08-10 23:04:49 -07:00
RoganandMaxime Beauchemin 0d4137d21e Add translatable columns in label_columns of the view (#3032)
* add translatable columns in label_columns of the view

* display the verbose_name of columns in list view, just like in the metrics list

* Revert "display the verbose_name of columns in list view, just like in the metrics list"

This reverts commit f815d3b3ed.
2017-08-10 22:28:06 -07:00
Maxime BeaucheminandGitHub 0c5db55d55 [security] prevent XSS markup viz (#3211)
* Prevent XSS in Markup viz

We protect the browser by sandboxing the user code inside an iframe

* Helvetica
2017-08-10 21:38:33 -07:00
RoganandMaxime Beauchemin bd4a4c2753 add _() to Exception messages (#3034)
* add `_()` to Exception messages

* fix error
2017-08-10 20:57:05 -07:00
RoganandMaxime Beauchemin f399fcd624 display the verbose_name of columns in list view, just like in the metrics list (#3275) 2017-08-10 20:52:24 -07:00
RoganandMaxime Beauchemin 08e40e2d78 add placeholder to Select components (#3274) 2017-08-10 20:51:36 -07:00
Luis RodriguezandMaxime Beauchemin 2898f9d379 Added Konfio to 'Who uses Superset' list. (#3277) 2017-08-10 20:50:49 -07:00
Alex GuzielandMaxime Beauchemin dfea8df7c9 Fix celery worker (#3278) 2017-08-10 20:50:21 -07:00
RoganandMaxime Beauchemin a5320a0f37 [add] Save filters to dashboard (#3183)
* [add] Save filters to dashboard

* format code

* fix CI error

* add semicolon  semi

* fix none object

* add test data
optimize the js code
fix the compatibility issue

* fix urllib to urllib.parse

* add space

* update test case

* remove  'return'

* fix error

* update test case
2017-08-10 20:49:49 -07:00
Grace GuoandMaxime Beauchemin b68084b9ac Explore view save modal spec (#3110)
* split reducer logic for ExploreViewContainer

* fix saveModal component and unit tests

* revert changes in SaveModal_spec.
will make another commit just to improve test coverage for SaveModal component.

* improve test coverage for explore view components:
- SaveModal component
- URLShortLinkButton

* remove comment-out code

* [bugfix] wrong 'Cant have overlap between Series and Breakdowns' (#3254)

* [explore] make edit datasource a basic link (#3244)

* Relying on FAB for font-awesome.min.css (#3261)

* Modernize SQLA pessimistic handling (#3256)

Looks like SQLAlchemy has redefined the best practice around
pessimistic connection handling.

* [webpack] break CSS and JS files while webpackin' (#3262)

* [webpack] break CSS and JS files while webpackin'

* cleaning up some templates

* Fix pylint issue

* import logging (#3264)

* [bugfix] preserve order in groupby (#3268)

Recently in
https://github.com/apache/incubator-superset/commit/4c3313b01cb508ced8519a68f6479db423974929
I introduced an issue where the order of groupby fields might change.

This addresses this issue and will preserve ordering.

* Explicitly add Flask as dependancy (#3252)

* Use sane Celery defaults to prevent tasks from being delayed (#3267)

* Improve the chart type of Visualize in sqllab (#3241)

* Improve the chart type of Visualize in sqllab & Add some css & Fix the link address in the navbar

* add vizTypes filter

* Set default ports Druid (#3266)

For Druid set the default port for the broker and coordinator.

* [explore] Split large reducer logic in ExploreViewContainer (#3088)

* split reducer logic for ExploreViewContainer

* fix saveModal component and unit tests

* revert changes in SaveModal_spec.
will make another commit just to improve test coverage for SaveModal component.

* remove comment-out code

* fix merge confilicts
2017-08-10 17:04:44 -07:00
timifasubaaandMaxime Beauchemin 3b24d7df83 [explore] fixed padding bug on filter section (#3279) 2017-08-10 16:48:30 -07:00
Grace GuoandMaxime Beauchemin b3107bb603 [explore] Split large reducer logic in ExploreViewContainer (#3088)
* split reducer logic for ExploreViewContainer

* fix saveModal component and unit tests

* revert changes in SaveModal_spec.
will make another commit just to improve test coverage for SaveModal component.

* remove comment-out code

* fix merge confilicts
2017-08-10 14:21:45 -07:00
Alex GuzielandMaxime Beauchemin 08b7e891a7 Use sane Celery defaults to prevent tasks from being delayed (#3267) 2017-08-09 22:34:39 -07:00
Maxime BeaucheminandGitHub 57421d14d0 [bugfix] preserve order in groupby (#3268)
Recently in
https://github.com/apache/incubator-superset/commit/4c3313b01cb508ced8519a68f6479db423974929
I introduced an issue where the order of groupby fields might change.

This addresses this issue and will preserve ordering.
2017-08-09 18:06:18 -07:00
Fokko DriesprongandMaxime Beauchemin 0cf0860a3d Set default ports Druid (#3266)
For Druid set the default port for the broker and coordinator.
2017-08-09 17:25:00 -07:00
Maxime BeaucheminandGitHub 327c052456 [webpack] break CSS and JS files while webpackin' (#3262)
* [webpack] break CSS and JS files while webpackin'

* cleaning up some templates

* Fix pylint issue
2017-08-09 09:52:43 -07:00
eeveandMaxime Beauchemin 033ba2cb66 Improve the chart type of Visualize in sqllab (#3241)
* Improve the chart type of Visualize in sqllab & Add some css & Fix the link address in the navbar

* add vizTypes filter
2017-08-09 09:12:21 -07:00
Maxime BeaucheminandGitHub cc36428260 Modernize SQLA pessimistic handling (#3256)
Looks like SQLAlchemy has redefined the best practice around
pessimistic connection handling.
2017-08-09 09:10:12 -07:00
Fokko DriesprongandMaxime Beauchemin 6da68ab271 Explicitly add Flask as dependancy (#3252) 2017-08-09 09:09:02 -07:00
Maxime BeaucheminandGitHub be01851ef7 Relying on FAB for font-awesome.min.css (#3261) 2017-08-09 09:04:29 -07:00
cclaussandMaxime Beauchemin 20915457ff import logging (#3264) 2017-08-09 08:18:10 -07:00
Maxime BeaucheminandGitHub 2385cd445b [explore] make edit datasource a basic link (#3244) 2017-08-08 12:29:24 -07:00
Maxime BeaucheminandGitHub 0429e842b5 [bugfix] wrong 'Cant have overlap between Series and Breakdowns' (#3254) 2017-08-07 21:47:42 -07:00
Pedro Valentim Silva LeiteandMaxime Beauchemin f68189b54e Fix Yahoo's website link (#3249) 2017-08-07 08:31:49 -07:00
Zeeshan AhmedandMaxime Beauchemin dcf83031d1 Fix typo (#3246) 2017-08-06 20:27:54 -07:00
Riccardo MagliocchettiandMaxime Beauchemin ef7e9dd336 docs: use yarn in making your own build (#3235) 2017-08-04 09:31:36 -07:00
Riccardo MagliocchettiandMaxime Beauchemin ae0655028f explore: redraw chart on width change too (#3067)
Fix #3028
2017-08-04 09:15:08 -07:00
Maxime BeaucheminandGitHub 166c576c94 Add basic Impala engine spec (#3225)
From:
https://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_datetime_functions.html
2017-08-04 09:10:32 -07:00
Rich @ RadICSandMaxime Beauchemin 7190cf8e77 Treemap vis verbose metric name (#3237)
* Change hardcoded references to 'User' security model to allow custom class override

* verbose metric name in treemap

* Linting
2017-08-04 09:07:03 -07:00
Shao-Yen "Fred" ChengandMaxime Beauchemin 2ef9bfed20 [bug fix] Fix to #3137 and #3239 (#3240)
* #3137 add the leftover code from #3138 for fixing issue #3137

* #3239 Use slice id as the key instead of sliceName
2017-08-04 09:05:50 -07:00
Rich @ RadICSandMaxime Beauchemin 0191fa58c8 SUPERSET_HOME enviroment variable (#3238)
* Change hardcoded references to 'User' security model to allow custom class override

* Add SUPERSET_HOME environment variable
2017-08-04 08:51:40 -07:00
Maxime BeaucheminandGitHub 4c3313b01c Handle Time at query_obj generation time (#3236)
As opposed to in the within itself
2017-08-03 15:42:26 -07:00
Maxime BeaucheminandGitHub 5278b53218 [pivot] add support for in Pivot on Druid (#3230) 2017-08-03 00:04:16 -07:00
Maxime BeaucheminandGitHub 4ea770068b Allowing to integrate time as a groupby value (#3229) 2017-08-02 21:33:27 -07:00
Maxime BeaucheminandGitHub 91bd38a851 0.19.0 (#3227) 2017-08-02 16:56:46 -07:00
Rich @ RadICSandMaxime Beauchemin 163f4e359c Allow 'refresh_immune_slices' (#2974)
* Allow 'refresh_immune_slices'

* Changed param name, added note in FAQ

* Linting
2017-08-02 08:46:19 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 90592d3e3d sql_lab: re-raise exception in get_sql_results (#3111)
As caller expect it to raise an exception instead of returning
None.

Refs #3075
2017-08-01 22:38:52 -07:00
Maxime BeaucheminandGitHub 62fcdf2a92 [explore] DatasourceControl to pick datasource in modal (#3210)
* [explore] DatasourceControl to pick datasource in modal

Makes it easier to change datasource, also makes it such that the list
of all datasources doesn't need to be loaded upfront.

* Adding more metadata
2017-08-01 12:08:00 -07:00
Maxime BeaucheminandGitHub 48821b5101 [sqllab] fix UI shows 'The query returned no results' momentarily (#3214)
this is visible when running async queries between the fetching and
success state as the rows are getting cached in the component
2017-08-01 10:26:13 -07:00
Maxime BeaucheminandGitHub 3b129253a3 [explore] nvd3 sort values in rich tooltip (#3197) 2017-08-01 10:25:52 -07:00
Maxime BeaucheminandGitHub 48760849ec [sqllab/cosmetics] add margin-top for labels in query history (#3222) 2017-08-01 10:25:13 -07:00
Xingze ZhangandMaxime Beauchemin 9c1ca07c40 [docs] update url in CONTRIBUTING.md (#3212) 2017-08-01 08:54:35 -07:00
Maxime BeaucheminandGitHub 774ad45efb [bugfix] capture Hive job_id pre-url transformation (#3213) 2017-07-31 22:22:08 -07:00
Xingze ZhangandMaxime Beauchemin 299e9ce6b8 fix issue 3204 (#3205) 2017-07-31 12:24:19 -07:00
Maxime BeaucheminandGitHub 219f33f0d1 Speed up JS build time (#3203)
Also bumping a few related libs
2017-07-28 17:34:09 -07:00
Andrew PariserandMaxime Beauchemin 58a704b84c Autofocus search input in VizTypeControl modal onEnter (#2929) 2017-07-28 14:57:24 -07:00
RoganandMaxime Beauchemin b58cfbcb91 add combine config for metrics in pivot table (#3086)
* add combine config for metrics in pivot table

* change method to stack/unstack

* update backendSync
2017-07-28 14:16:38 -07:00
Brian WolfeandMaxime Beauchemin 1e325d9645 [druid] Allow custom druid postaggregators (#3146)
* [druid] Allow custom druid postaggregators

Also, fix the postaggregation for approxHistogram quantiles so it adds
the dependent field and that can show up in the graphs/tables.

In general, postAggregators add significant power, we should probably
support including custom postAggregators. Plywood has standard
postAggregators here, and a customAggregator escape hatch that allows
you to define custom postAggregators.

This commit adds a similar capability for Superset and a additional
field/fields/fieldName breakdown of the typical naming for dependent
aggregations, which should make it significantly easier to develop
approxHistogram and custom postAggregation-required dashboards.

* [druid] Minor style cleanup in tests file.

* [druid] Apply code review suggestions

* break out CustomPostAggregator into separate class. This just cleans
  up the creation of the postaggregator a little bit.
* minor style issues.
* move the function around so the git diff is more readable
2017-07-28 11:45:59 -07:00
Maxime BeaucheminandGitHub ad5a4389a2 Adding 'apache' to docs (#3194) 2017-07-28 11:42:01 -07:00
Maxime BeaucheminandGitHub e4fba0ffb7 [bugfix] fix merge conflict that broke Hive support (#3196) 2017-07-27 21:34:15 -07:00
Maxime BeaucheminandGitHub e584a9673f Add BigQuery engine specifications (#3193)
As contributed by @mxmzdlv on issue #945
2017-07-27 14:01:13 -07:00
Maxime BeaucheminandGitHub b888802e05 [sqllab] improve Hive support (#3187)
* [sqllab] improve Hive support

* Fix "Transport not open" bug
* Getting progress bar to show
* Bump pyhive to 0.4.0
* Getting [Track Job] button to show

* Fix testzz
2017-07-27 14:00:19 -07:00
Maxime BeaucheminandGitHub 25c599d040 Escaping the user's SQL in the explore view (#3186)
* Escaping the user's SQL in the explore view

When executing SQL from SQL Lab, we use a lower level API to the
database which doesn't require escaping the SQL. When going through
the explore view, the stack chain leading to the same method may need
escaping depending on how the DBAPI driver is written, and that is the
case for Presto (and perhaps other drivers).

* Using regex to avoid doubling doubles
2017-07-27 09:47:31 -07:00
Riccardo MagliocchettiandMaxime Beauchemin fb866a937b Bump cryptography to 1.9 (#3065)
As 1.7.2 doesn't compile here with openssl 1.1.0f
2017-07-26 14:11:11 -07:00
Fokko DriesprongandMaxime Beauchemin aa95e03eb9 Fix the segment interval for pulling metadata (#3174)
The end of the interval would be on the truncated today date, which
means that you will exclude today. If your realtime ingestion job
runs shorter than a day, the metadata cannot be pulled from the
druid cluster.
2017-07-26 09:28:08 -07:00
Maxime BeaucheminandGitHub cf1d0f38ad [bugfix] visualize flow error: 'Metric x is not valid' (#3181)
The metric name in the frontend doesn't match the one generated on the
backend. It turns out the explore view will default to the first
metric so specifying one isn't needed.
2017-07-26 09:22:25 -07:00
Maxime BeaucheminandGitHub fca982c609 [bugfix] fix bar order (#3180) 2017-07-26 09:22:03 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 747bf80474 docs: fixup installation examples code indentation (#3169) 2017-07-26 09:20:06 -07:00
Dmitry GoryunovandMaxime Beauchemin 4f7fd65c8b add Zalando to the list of organizations (#3171) 2017-07-26 08:32:06 -07:00
timfeirgandMaxime Beauchemin 6045063e78 fix hive.fetch_logs (#2968) 2017-07-25 21:43:19 -07:00
Maxime BeaucheminandGitHub 0ec9cd4ad2 [bugfix] numeric value for date fields in table viz (#3036)
Bug was present only when using the NOT GROUPED BY option

fixes https://github.com/ApacheInfra/superset/issues/3027
2017-07-25 21:30:40 -07:00
Rich @ RadICSandMaxime Beauchemin 4268513653 Add 'show/hide totals' option to pivot table vis (#3101) 2017-07-25 21:11:38 -07:00
RoganandMaxime Beauchemin 7654eef110 add title description to model view (#3045)
* add title description to model view

* add missing import
2017-07-25 21:06:34 -07:00
RoganandMaxime Beauchemin b301ba1f57 Datasource cannot be empty (#3035) 2017-07-25 21:05:31 -07:00
Maxime BeaucheminandGitHub 95509f2000 [bugfix] only filterable columns should show up in FilterBox list (#3105)
* [bugfix] only filterable columns should show up in FilterBox list

* Touchups
2017-07-25 20:50:41 -07:00
Maxime BeaucheminandGitHub 49ab09101b Fixing the damn build (#3179)
* Fixing the build

* Going deeper
2017-07-25 13:57:29 -07:00
Chris WilliamsandMaxime Beauchemin 40d9e15126 Add event-flow visualization (#3102)
* [event-flow] add event flow visualizaton type from @data-ui/event-flow.

* [event-flow] update vis thumbnail

* [event-flow] update row limit label, remove duplicate chart controls

* [dependencies] add @data-ui/event-flow 0.0.2

* [linting] fix multiple imports

* [deps] bump mapbox-gl and react-map-gl to fix build

* [event-flow] bump to 0.0.3 for es2015 + stage-0 babel presets

* [deps] revert mapbox version bumps

* [event-flow] update png, bump to newest version, address reviewer comments, add min event count form.

* [event-flow] pin version

* [event-flow][spec] add test for coveralls

* [event-flow] revert spec
2017-07-21 16:29:25 -07:00
Maxime BeaucheminandGitHub a141695b2b Prevent people from deleting datasources that have associate slices (#3163) 2017-07-19 16:24:20 -07:00
Maxime BeaucheminandGitHub d01e67a159 More logging to csv endpoint (#3164) 2017-07-19 15:59:30 -07:00
Maxime BeaucheminandGitHub c34df3eea4 [bugfix] SQLA instance has been deleted (#3159)
Related Msg:
sqlalchemy.orm.exc.ObjectDeletedError: Instance '<PermissionView at
0x7f10306b0e90>' has been deleted, or its row is otherwise not present.
2017-07-19 01:35:00 -07:00
lucandMaxime Beauchemin 56bcbb0f8e add douban to the orgs. (#3157) 2017-07-19 01:18:34 -07:00
Maxime BeaucheminandGitHub 51f1aa3106 [docs] use yarn in CONTRIBUTING.md (#3150)
* [docs] use yarn in CONTRIBUTING.md

* Updating badges
2017-07-19 01:17:56 -07:00
Maxime BeaucheminandGitHub d7e419127c [bugfix] fails on None view_menu (#3155)
* [bugfix]  fails on None view_menu

* Update coveralls token
2017-07-18 19:42:20 -07:00
Grace GuoandMaxime Beauchemin 27fab0d54f allow user press Enter key to end editing title (#3112) 2017-07-17 08:58:10 -07:00
Maxime BeaucheminandGitHub 091e93c831 [minor] change tooltip on 'Edit slice properties' (#3116)
* [minor] change tooltip on 'Edit slice properties'

* Upgrading npm version for travis

* Bumping node version to most recent
2017-07-16 22:29:30 -07:00
Maxime BeaucheminandGitHub bb6b2da267 Prevent SQLA warning related to SQLALCHEMY_TRACK_MODIFICATION (#3133) 2017-07-16 22:02:22 -07:00
Shao-Yen "Fred" ChengandMaxime Beauchemin 7abe2d5eee [#3137] Use state.datasource.type instead of state.datasource_type when rendering ControlPanelsContainer (#3138) 2017-07-16 21:04:34 -07:00
Maxime BeaucheminandGitHub 7b015faae9 [heatmap] basic non empty validation (#3119) 2017-07-15 20:07:57 -07:00
Ke ZhuandMaxime Beauchemin e834154030 Fixes #3134 by correct response content-type of /testconn (#3135) 2017-07-15 09:52:37 -07:00
丁桂涛andMaxime Beauchemin 256a521bf1 [Celery] fix the celery worker concurrency settings (#3126) 2017-07-14 09:44:41 -07:00
Maxime BeaucheminandGitHub a626f994bf [CLI] Improve the missing perm creation logic (#3118)
I don't think this worked as intended
2017-07-13 15:53:20 -07:00
Maxime BeaucheminandGitHub 76dda688b1 Using yarn instead of npm install (#3120) 2017-07-13 15:16:39 -07:00
Grace GuoandGitHub 163a6a20e5 clarify Superset different timeout config (#3044)
* clarify different timeout configuration for superset
2017-06-30 15:47:37 -07:00
Maxime Beauchemin 3d136aa0a4 Update docs links on README 2017-06-28 06:27:51 -07:00
Grace GuoandGitHub ff3057de5d fix default checkbox alignment (#3042) 2017-06-26 18:06:12 -07:00
Maxime BeaucheminandGitHub 7045018d86 New chart type : Chord Diagrams (#3013) 2017-06-26 16:44:47 -07:00
Maxime BeaucheminandGitHub a55f963e52 [bugfix] issue creating separators & markup slices (#3041) 2017-06-26 11:00:21 -07:00
fabianmengesandMaxime Beauchemin 8dfe2b70b2 Bug fix: Datasource -> Slice relationship (#3011) 2017-06-22 17:30:09 -07:00
Maxime Beauchemin fdbb569c3e 0.18.5 2017-06-22 15:46:09 -07:00
Maxime Beauchemin cc3e63f1de [docs] adding info on how to create new viz 2017-06-22 12:37:42 -07:00
Grace GuoandGitHub a48e246aa0 add test coverage for sql lab components (#3022) 2017-06-22 10:31:13 -07:00
Maxime Beauchemin 6eba6cac0b [hotfix] xAxis broken on time series viz 2017-06-21 16:35:50 -07:00
Maxime Beauchemin bd706ebbd1 Fixing image sizes for horizon and country_map 2017-06-21 14:34:56 -07:00
Maxime Beauchemin abbf138cfb Bumping SQLLAB_ASYNC_TIME_LIMIT_SEC default config to 6 hours 2017-06-21 14:16:53 -07:00
Grace GuoandGitHub de346a3eba CONTRIBUTING: add python unittes setup (#3021) 2017-06-21 12:52:04 -07:00
Maxime BeaucheminandGitHub 99e1de58bc A set of minor fixes (#3014) 2017-06-21 12:09:49 -07:00
Maxime Beauchemin 5344a80535 Bumping flask-appbuilder to 1.9.1 2017-06-21 11:32:41 -07:00
Maxime Beauchemin 0b09a74d37 Downgrading celery to 3.1.25
https://github.com/celery/celery/issues/3932 is a blocker for Airbnb
2017-06-21 11:29:22 -07:00
Riccardo MagliocchettiandMaxime Beauchemin e21745ac9d CONTRIBUTING: ask to quote python stacktraces (#3017) 2017-06-21 10:12:34 -07:00
Maxime BeaucheminandGitHub 593861eac6 [bugfix] fix metrics/metric control default (#3009)
We should pick an arbitrary metric by default. This broke when
improving the metrics selector recently.
2017-06-21 09:31:29 -07:00
Maxime Beauchemin 53dead9c29 Revert "Bumping FAB to 1.9.1"
This reverts commit f64e2ba7d5.
2017-06-20 22:25:58 -07:00
Maxime Beauchemin f64e2ba7d5 Bumping FAB to 1.9.1 2017-06-20 21:52:16 -07:00
Benjamin YolkenandMaxime Beauchemin 80515d2a92 Revert change in npm run build command (#3012) 2017-06-20 21:34:17 -07:00
Maxime BeaucheminandGitHub 4d72afb54b Adding missing dependency and linting webpack.js (#3008) 2017-06-20 14:04:36 -07:00
Maxime BeaucheminandGitHub 06fcaa3095 Stabilizing Celery / SQL Lab (#2981)
* upgrade celery to 4.0.2
* using Redis for unit tests (sqla broker not supported in Celery 4)
* Setting Celery's soft_time_limit based on `SQLLAB_ASYNC_TIME_LIMIT_SEC` config
* Better error handling in async tasks
* Better statsd logging in async tasks
* show [pending/running] query status in Results tab
* systematically using sqla NullPool on worker (async) to limit number
  of database connections
2017-06-20 13:55:03 -07:00
Benjamin YolkenandMaxime Beauchemin de88764e93 Misc. tweaks to improve webpack performance (#2994)
* Misc. tweaks to improve webpack performance

* Fix code climate style issues
2017-06-20 08:40:33 -07:00
RoganandMaxime Beauchemin 9051e1f3e2 translations extracted by pybabel (#2990) 2017-06-19 23:58:39 -07:00
Andrew ChenandMaxime Beauchemin ba93e6a2d1 Fix importing config from env var (#2983) 2017-06-19 23:51:34 -07:00
Maxime BeaucheminandGitHub 7e5e229f48 Improving TextAreaControl to support code and modal (#2988) 2017-06-19 22:27:16 -07:00
Maxime BeaucheminandGitHub b9915e7ecf [pivot viz] fix formatting and verbose names (#2957)
* [pivot viz] fix formatting and verbose names

* Fixing tests
2017-06-19 22:10:54 -07:00
Maxime BeaucheminandGitHub 3e51c61dbf [explore] improve bubble viz (#2927)
* [explore] improve bubble viz

* allow for custom axis formatters
* reorg the control panels

* Addressing comments
2017-06-19 22:09:09 -07:00
Grace GuoandGitHub 591e512327 add test coverage for SqlEditorLeftBar (#2984) 2017-06-19 11:39:32 -07:00
Grace GuoandGitHub fc5db474b7 fix is_owner check (#2985) 2017-06-19 10:57:30 -07:00
Maxime BeaucheminandGitHub c083aec8e8 [FilterBox] use column verbose names (#2970) 2017-06-17 09:46:27 -07:00
Maxime Beauchemin 1ce3b81d01 Imporving the README 2017-06-16 23:35:46 -07:00
Maxime BeaucheminandGitHub 89cd10b3ce [bufix] superset views not getting from_dttm-to_dttm in template context (#2978) 2017-06-15 22:49:55 -07:00
Maxime BeaucheminandGitHub 712297480c [CLI] adding 'superset flower' command (flower is a UI for Celery) (#2963)
* [CLI] adding 'superset flower' command (flower is a UI for Celery)

* Addressing comments
2017-06-15 17:02:17 -07:00
Alanna ScottandGitHub 6ddccaaa9b tests for saveQuery, fetchQueryResults, runQuery, postStopQuery (#2979) 2017-06-15 15:35:31 -07:00
Grace GuoandGitHub 1dcf2c4326 fix local state 'columns' (#2896)
* fix local state 'columns'
* fix method name per code review
2017-06-15 15:30:13 -07:00
Alanna ScottandGitHub f0a8ea644b test props on alert wrapper (#2977) 2017-06-15 14:18:34 -07:00
Grace GuoandGitHub fb6ef26a24 add test coverage for ResultSet component (#2972)
* add test coverage for ResultSet component
2017-06-15 13:51:09 -07:00
Alanna ScottandGitHub 00b34d7fbd [js-testing] add tests for explore actions (#2976)
* move to explore folder and delete explorev2 folder

* add tests for fetchDatasourceMetadata

* tests for fetchDatasources, fetchDatasourceMetadata

* use $.ajax for fetch dashboards and write test
2017-06-15 12:26:22 -07:00
Grace GuoandGitHub 8329ea2b9b Edit Dashboard title and Slice title in place (#2940)
* Edit Dashboard title and Slice title in place

Add EditableTitle component into Dashboard and Explore view to support edit title inline.
2017-06-14 12:52:12 -07:00
Alanna ScottandGitHub da0a87a735 add test for ControlPanelSection (#2961) 2017-06-14 10:12:29 -07:00
Maxime BeaucheminandGitHub 7aeca39c46 [js] remove unused npm dependencies (#2952) 2017-06-13 22:08:13 -07:00
Alanna ScottandGitHub e1751c065c add new slice test (#2939)
* sort explicitly on label

* add simple test for /slicemodelview/add endpoint

* make comments and method names more clear

* fix test name

* be more explicit, test status_code
2017-06-13 09:44:26 -07:00
Alanna ScottandGitHub e5151cb915 [js] version js file names using webpack chunkhash (#2951)
* get compiled js file names

* make manifest available as template var

* use script src directly to avoid flash of unstyled content in the case of csstheme.js

* linting

* attempt to fix tests

* exception

* print the path when no manifest file found

* handle case when manifest.json is not present for some reason, or in the case of tests
2017-06-13 09:44:00 -07:00
Maxime BeaucheminandGitHub 24e3c7f89a [dashboard] notify instead of modal onSave (#2941)
* [dashboard] notify instead of modal onSave

* Addressing comments
2017-06-12 21:04:46 -07:00
Maxime Beauchemin 987cb9978d [hotfix] bumping pandas version to 0.20.2 2017-06-13 00:03:33 +00:00
Nishant BangarwaandMaxime Beauchemin 274d21795f Fix handling of Chunked requests (#1742)
* Fix handling of Chunked requests

Add fix for handling chunk encoding requests.
If ENABLE_CHUNK_ENCODING is set to true, for requests with transfer
encoding set to true. It will set wsgi.input_terminated to true which
tells werkzeug to ignore content-length and read the stream till the
end.

 break comment in multiple lines

* remove debug print logging
2017-06-12 13:46:14 -07:00
Maxime BeaucheminandGitHub 0d2c2b0681 [table viz] get metrics to right-align (#2943)
Moved the histogram to be rooted on the right side as well

fixes https://github.com/airbnb/superset/issues/2933
2017-06-12 13:35:00 -07:00
Maxime BeaucheminandGitHub 1eff48facb Bumping some dependencies (#2945)
Most notably Flask AppBuilder to 1.9.0
2017-06-12 13:21:14 -07:00
timfeirgandMaxime Beauchemin 17bd7512ff remove reference for CSRF_ENABLED, and use WTF_CSRF_ENABLED instead (#2946) 2017-06-12 13:17:59 -07:00
Maxime BeaucheminandGitHub 16141ecb94 [explore] improve metric(s) and groupby(s) controls (#2921)
* [explore] improve metric(s) and groupby(s) controls

- surface verbose_name, description & expression in controls
- [table viz] surface verbose name in table header

* Fixing tests

* Addressing comments

* Fixing tests (once more)
2017-06-09 11:29:55 -07:00
Alanna ScottandGitHub 34f381bc25 v 0.18.5-alpha.3 2017-06-08 11:21:07 -07:00
Alanna ScottandGitHub 24292dbc11 add new slice form improvements (#2928)
* dont set first datasource as default

* not used

* add a disabled class if datasource is not selected

* sort datasources alphabettically

* make btn disabled is no datasource is selected

* fix linting
2017-06-08 10:49:02 -07:00
Maxime BeaucheminandGitHub 24a2f5b8f0 [big number] various improvements (#2912)
* [big number] various improvements

* dynamic number of X axis ticks based on width to prevent label overlap
* corrected overflow on the x axis
* improved tooltips (precise arrow and visible data point circle on hover)

* Fixing tooltips in heatmap viz
2017-06-08 08:50:30 -07:00
Maxime BeaucheminandGitHub 0e6f754af9 Fix #2814 - json serialization edge case (#2924) 2017-06-08 08:49:01 -07:00
Alanna ScottandGitHub fb85f008fa v 0.18.5-alpha.2 2017-06-07 23:12:16 -07:00
Maxime Beauchemin 85fb4a933d [hotfix] only apply SQLAlchemy limit where needed
Observed issue in dev environment where SQL queries were emitted with
`LIMIT 0`. This fix addresses it.
2017-06-07 22:56:56 -07:00
Alanna ScottandGitHub d3ace6d63f [js-testing] type checking for dates.js (#2893)
* tests for dates.js

* linting

* test fduration output

* ignore warnings in code climate

* use eslint-2 otherwise defaults to eslint-3

* test eslint 1

* remove channel rule

* disable checks

* checks for eslint engine
2017-06-07 22:27:21 -07:00
Alanna ScottandGitHub 205eed8350 add more tests for Timer (#2889) 2017-06-07 22:12:07 -07:00
Alanna ScottandGitHub 5bf40e2256 [slices] add simple new slice form (#2800)
* initial structure for add new slice page

* simplify add slice form

* add a test

* fix long line

* use underscore for template name

* fix controls path

* fix vis types select
2017-06-07 22:08:59 -07:00
Denny BiasiolliandMaxime Beauchemin 7c28e4eace updating react-alert dependency to v2.0.1 (#2923) 2017-06-07 12:07:15 -07:00
Xiao HanyuandMaxime Beauchemin a882f7a55f Ignore pyenv files in .gitignore. (#2906)
Some python developers use Python version manager to create and switch Python
enviroments, pyenv (http://github.com/yyuu/pyenv) is one of the version managers.

When you use `pyenv local x.x.x`, `pyenv` will put a `.python-version` file in
project directory, which, in general, should not be commited to git.
2017-06-06 23:44:57 -07:00
Maxime Beauchemin 9aba77db74 0.18.5-alpha.1 2017-06-06 12:22:27 -07:00
Grace GuoandGitHub c9e5fbb09b [dashboard]Add timeout message on Dashboard view (#2910)
Same as explore view, if query takes > 45 seconds not returned, we will show Query timeout warning message. Otherwise user will see 504 Gateway timeout error.
2017-06-06 12:05:05 -07:00
Maxime BeaucheminandGitHub 65f25a1e5a [explore] fix IN filter on numeric field (#2908) 2017-06-05 17:41:08 -07:00
Josh WaltersandMaxime Beauchemin e0dd5d9d1d Removed __time column from druid metadata refresh, added long and double schema support (#2911)
* Removed __time column from load, added long/double schema support

* Format fix
2017-06-05 17:40:47 -07:00
Grace GuoandGitHub 737db25b6e fix visualize modal checkbox alignment (#2897)
in Visualize Modal, table headers are left-aligned. So columns checkboxes should also be left-aligned.
2017-06-05 10:38:42 -07:00
Maurizio NapolitanoandMaxime Beauchemin bea702269c update for the italian translation (#2902)
* italian translation

* update for the italian translation
2017-06-04 18:03:34 -07:00
Maxime BeaucheminandGitHub d78da8a9bf [docs faq] how do I add new columns to an existing table (#2888) 2017-06-04 18:02:10 -07:00
Riccardo MagliocchettiandMaxime Beauchemin ed8153ff8b update contributing a bit re contributing code (#2903)
* CONTRIBUTING: document starter_task label

* CONTRIBUTING: PR should work travis python versions

* CONTRIBUTING: move PR guidelines at the top

* CONTRIBUTING: no need to open a new pr after review
2017-06-04 18:00:33 -07:00
Riccardo MagliocchettiandMaxime Beauchemin f7ce100180 travis: no need to install python3.5 (#2904)
As we are testing on 3.4 and 2.7.
2017-06-04 17:56:43 -07:00
Maxime Beauchemin 72291d65c9 0.18.4 2017-06-04 17:54:31 -07:00
Grace GuoandGitHub 0d3f57a78d fix a linting error (#2895) 2017-06-02 15:52:39 -07:00
Alanna ScottandGitHub 04fb0e2c2d fix js error on explore view (#2894)
* fix js error on explore view

* bump version
2017-06-02 14:36:51 -07:00
Maxime Beauchemin 155fec0a6b Updating CHANGELOG.md to 0.18.3 2017-06-02 13:06:21 -07:00
Maxime Beauchemin d90044cd52 0.18.3 2017-06-02 08:27:56 -07:00
fabianmengesandMaxime Beauchemin 62bd4eb211 Converting filter argument to number if column is number (#2891) 2017-06-02 08:13:46 -07:00
Alanna ScottandGitHub 677c427b16 delete DataPreviewModal, it doesn't get used anywhere (#2882) 2017-06-01 14:30:15 -07:00
justinr1234andMaxime Beauchemin 52b0716571 [bugfix] allow database macro to work when CSRF is diabled (#2884) 2017-06-01 09:41:55 -07:00
Xiao HanyuandMaxime Beauchemin 04b662ea11 Fix a type error in rst' sub list. (#2881)
Sub list in rst requires a blank line above and below.

Ref:
- http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#bullet-lists
2017-05-31 21:26:17 -07:00
Grace GuoandGitHub db052b17ea Add visualize advise for long query (#2879)
in SqlLab view, if query takes over 45 seconds, we will show advise to store a summarized data set before user clicks on Visualize button.
This advise will not block Visualize button.

fixes https://github.com/airbnb/superset/issues/2733
2017-05-31 15:50:26 -07:00
Maxime BeaucheminandGitHub e300273e71 [explore] adding y_axis_bounds to force Y axis bounds (#2878)
* [explore] adding y_axis_bounds to force Y axis

* Handling comments
2017-05-31 14:47:09 -07:00
Maxime BeaucheminandGitHub c5f2eafc90 [explore] 'Save as' -> 'Save' as it can be used to overwrite (#2875)
* [explore] 'Save as' -> 'Save' as it can be used to overwrite

* Fix tests
2017-05-31 14:31:13 -07:00
Alanna ScottandGitHub 90e4d6469d [js-testing] more tests for SelectControl (#2877)
* rename spec folder

* remove special handling for viz_type control since it now uses VizTypeControl

* add test for getOptions

* linting

* add test for cwp

* linting
2017-05-31 10:52:02 -07:00
Grace GuoandGitHub 1e7773eb16 Improve visualize modal test coverage (#2811)
add unit tests for VisualizeModal component
2017-05-30 18:16:22 -07:00
Maxime Beauchemin 3c89c8cc46 0.18.3-alpha.3 2017-05-30 11:24:14 -07:00
Maxime BeaucheminandGitHub 74086dae2b [bars] fix sort numeric bar on x axis (#2812) 2017-05-30 11:18:25 -07:00
Maxime BeaucheminandGitHub 66403f1876 [explore] viz type selector as modal (#2787)
* [explore] viz type selector as modal

* Addressing comments

* Adressing comments
2017-05-30 11:05:18 -07:00
Maxime BeaucheminandGitHub 3a4cd3ae24 Applying specified limit in bubble plot (#2815)
* Applying specified limit in bubble plot

* Keeping bubbles proportinate
2017-05-30 11:04:44 -07:00
Maxime BeaucheminandGitHub 4ffc1f613e Fix filter values populating for views (#2816) 2017-05-30 10:51:34 -07:00
Maxime Beauchemin dfbba84400 0.18.3-alpha.2 2017-05-30 10:39:17 -07:00
Grace GuoandGitHub 77864e6cf4 reduce clientside timeout limit (#2820)
it was set to 60 seconds. But it seems gateway will return 504 around 50 seconds.
Will reduce client side timeout limit to 45 seconds.
2017-05-25 16:07:02 -07:00
Maxime BeaucheminandGitHub 4d12251806 [explore] include ControlHeader as part of Control interface (#2809)
* [explore] include ControlHeader as part of Control interface

* Adressing comments
2017-05-25 11:54:26 -07:00
Alanna ScottandGitHub 0c9f9b695b [clarity/consistency] rename /explorev2/ -> /explore/ (#2802)
* rename /explorev2/ -> /explore/

* add redirect for existing explorev2 urls

* fix long line

* remove extra line

* fix missed ref in spec
2017-05-24 17:12:28 -07:00
Marek VavrušaandMaxime Beauchemin a4a2bf7ae9 filter_box: allow creatable entries (#2804)
The reason is that it should be able to create arbitrary filters
over attributes with very high cardinality, where loading all
possible combinations into the filter box is infeasible,
e.g. IPv6 addresses.
2017-05-24 14:41:58 -07:00
Grace GuoandGitHub d0a04cde49 apply redux for VisualizeModal (#2795)
* redux visualize modal

* redux visualize modal

- apply redux
- add unit test for connect container component
- fix lint error

* redux visualize modal

- apply redux
- add unit test for connect container component
- fix lint error
2017-05-24 11:58:54 -07:00
Maxime BeaucheminandGitHub 69685b9dcc Fixing country maps (#2801) 2017-05-24 09:27:04 -07:00
ymatagneandMaxime Beauchemin b308a3eb4e Added Country Map : New Visualization tools (#2708)
* feat(visualization): Create new visualization's tools that display country with geojson file. Currently only  france and Spain are loaded

* refacto(visualization): fix issues created by codeclimate

* refacto(visualization): fix issues created by travis for mysql databases

* refacto(visualization): fix issues created by codeclimate

* refacto(visualization): fix issues created by codeclimate

* refacto(visualization): fix issues created by codeclimate

* refacto(visualization): fix issues created by codeclimate

* fix(visualization): fix issues

* doc(visualization): Init visualization documentation

* doc(visualization): init visualization documentation for country

* fix(visualization): implement iso 3166-2 for id of country

* fix(visualization): implement iso 3166-2 for id of country

* doc(visualization): init visualization documentation for country

* fix(visualization): implement iso 3166-2 for id of country

* feat(country_map): add ukraine map in component

* fix(visualization): Test dont working and add color based on metrics

* refacto(visualization): fix issues for es6 and color component
2017-05-23 10:43:33 -07:00
yamdracoandMaxime Beauchemin bfa40bd360 [hotfix] 'filter box from and to date filter #2649' (#2785) 2017-05-22 21:15:10 -07:00
ShengyaoQianandMaxime Beauchemin b0e2904c24 Updating permission when refreshing druid datasource (#2655)
* Updating permission when refreshing druid datasource

* Adding test

* Fix style

* Deletion view_menu after db, table, cluster, ds deletion

* Update table model

* Linting

* Override _delete instead of post_delete

* fix

* lint

* fix multi delete

* fix

* Refactoring

* Amending
2017-05-22 16:41:32 -07:00
Maxime BeaucheminandGitHub ce506bdf65 Logging a few more actions (#2783)
* Logging a few more actions

* adding statsd dep
2017-05-19 10:25:58 -07:00
Maxime Beauchemin 922cc037bf 0.18.3-alpha.1 2017-05-18 15:59:28 -07:00
Maxime BeaucheminandGitHub 8252ada1f9 [docs] more details on how filters are applied (#2778) 2017-05-18 15:56:42 -07:00
Maxime BeaucheminandGitHub a2d2f8bb8c Enable filter value autocomplete in examples (#2781) 2017-05-18 15:56:24 -07:00
Maxime BeaucheminandGitHub 7c5f61d6a6 Adding some STATSD logging (#2715) 2017-05-18 15:25:09 -07:00
Maxime BeaucheminandGitHub 841e18a08c [sql lab] make database ordering alphabetical in left panel (#2769) 2017-05-17 21:31:16 -07:00
Maxime BeaucheminandGitHub dbc7fef7f5 [sql lab] fix user timestamp is off (#2774) 2017-05-17 15:34:19 -07:00
Maxime Beauchemin cbfe3cb2dc 0.18.2 2017-05-16 23:08:56 -07:00
Maxime Beauchemin 5fcd25def1 0.18.1-alpha.2 2017-05-16 21:58:02 -07:00
Maxime Beauchemin fe3f5f69ae [hotfix] 'No numeric types to aggregate' 2017-05-16 21:57:02 -07:00
Maxime BeaucheminandGitHub 2395fbbdaa Adding end_result_backend_time to Query model (#2766)
This will help us keep track on how long it takes to push the data
into the results backend.
2017-05-16 20:34:38 -07:00
Grace GuoandGitHub 960b26c7a2 Show clear and actionable query timeout error message (#2763)
* Show clear and actionable query timeout error message

1. Instead of waiting for a long time or server-side response 504 Gateway timeout, explore view now add a query timeout threshold. After timeout it will show specific querytimeout message.
2. fix alert box close button position.

* Show clear and actionable query timeout error message

1. Instead of waiting for a long time or server-side response 504 Gateway timeout, explore view now add a query timeout threshold. After timeout it will show specific querytimeout message.
2. fix alert box close button position.
3. fix a linting error.
2017-05-16 13:12:12 -07:00
Maxime Beauchemin 28ac3504d6 0.18.1-alpha.1 2017-05-16 00:03:47 -07:00
Maxime BeaucheminandGitHub ecc00bdd26 [explore] a bit less margin in left panel (#2758)
* [explore] a bit less margin in left panel

* fix tests

* forcing react-select 1.0.0-rc.3
2017-05-16 00:02:37 -07:00
eeveandMaxime Beauchemin e7946451d6 fixed 500 error when export dashboard (#2760)
https://github.com/airbnb/superset/blob/master/superset/views/core.py#L474

http://flask-appbuilder.readthedocs.io/en/latest/actions.html?highlight=action

```
@action("mulexport", __("Export"), __("Export dashboards?"), "fa-database")
    def mulexport(self, items):
        ids = ''.join('&id={}'.format(d.id) for d in items)
```
change to 
```
@action("mulexport", __("Export"), __("Export dashboards?"), "fa-database")
    def mulexport(self, items):
        if not isinstance(items, list):
            items = [items]
        ids = ''.join('&id={}'.format(d.id) for d in items)
```

fixed:
#2184
#2667
2017-05-15 21:33:07 -07:00
Anthony BushandMaxime Beauchemin 9b34600c8e Remove duplicate text (#2761) 2017-05-15 21:31:37 -07:00
Maxime Beauchemin 884610861b 0.18.0 2017-05-13 16:33:03 -07:00
yileicandMaxime Beauchemin d9bd3d6460 fix percentage change viz (#2757) 2017-05-13 15:46:02 -07:00
Maxime BeaucheminandGitHub 38375be5c3 Fix issues around % signs and Presto (#2755)
* Fix issues around % signs and Presto

* Fix mysql
2017-05-12 09:45:33 -07:00
Rich @ RadICSandMaxime Beauchemin 91d951ac42 Change hardcoded references to 'User' security model to allow custom class override (#2728) 2017-05-12 09:37:24 -07:00
yileicandMaxime Beauchemin d79a45ff32 add number format to pivot table (#2703)
* modify pivot table number format

* lint code

* lint code

* lint

* lint

* change variable name

* add number format to pivot table

* clean

* fix code climate
2017-05-11 20:34:07 -07:00
yileicandMaxime Beauchemin 818251fc85 make margin consistent (#2753) 2017-05-11 20:31:05 -07:00
Maxime Beauchemin 75abd1f44a 0.18.0-alpha.4 2017-05-11 08:26:06 -07:00
Maxime BeaucheminandGitHub f55df3b18b [sql lab] fix responsivity of grid (#2742)
* [sql lab] fix responsivity of grid

* Lint
2017-05-11 08:24:08 -07:00
Maxime BeaucheminandGitHub 5dbfdefae8 [sql lab] fix partitionned table has no partitions (#2740) 2017-05-11 08:23:43 -07:00
Maxime BeaucheminandGitHub e5584440ce Speed up all CRUD list views (#2747)
Load times on list view pages like Slices, Dashboards, Tables and Database
have grown to be terrible over time.

After a bit of digging, I found that the not specifying `search_columns`
in ModelViews actually means "all columns" and that for each filter,
FAB goes and fetches a list of all values to prepopulate the
filter dropdowns. That means that the list of tables would fetch all
slices and all users upfront which is horrible. Worse, database list
view would fetch all queries with is insane.

This picks a subset of columns for search/filters and changes the
default to show only 100 elements per page instead of 500
2017-05-11 08:22:30 -07:00
Grace GuoandGitHub d5e9d5d045 fix auto select override pre-selected value bug (#2745)
auto select should only apply to cases where select control doesn't have pre-selected value prop. If select control has pre-selected value (passed in from value prop), auto select first avaliable options should not apply.
2017-05-10 17:27:43 -07:00
yileicandMaxime Beauchemin 3208a014ff fix dual line chart margin (#2737) 2017-05-09 17:44:08 -07:00
Maxime Beauchemin 874c12ad2d 0.18.0-alpha.3 2017-05-09 16:14:16 -07:00
Maxime BeaucheminandGitHub 22d8075c53 Making the stop button instantaneous (#2738) 2017-05-09 16:10:08 -07:00
Maxime Beauchemin baebba1159 0.18.0-alpha.2 2017-05-09 13:37:25 -07:00
Maxime BeaucheminandGitHub 04748b4cda [SQL Lab] fix gamma metadata access (#2702) 2017-05-09 13:36:49 -07:00
Maxime BeaucheminandGitHub a471afe206 [sql lab] improvements to the left panel (#2709)
* [sql lab] improvements to the left panel

* better error handling with error notifications
* table is added instantly with a loading image

* Fixing tests

* Fixed tests
2017-05-09 13:36:10 -07:00
Boris HajdukandMaxime Beauchemin 5d0a01d0d0 Decimal is a valid numeric type (#2720)
* Decimal is a valid numeric type

This will allow automatic creation of sum__ and avg__ metrics

* formatting for line length at 80 chars

* Reformating again, for the mandatory 79 chars maximum.
2017-05-08 22:19:52 -07:00
Maxime Beauchemin 9e1272e97c 0.18.0-alpha.1 2017-05-08 18:04:26 -07:00
Maxime BeaucheminandGitHub aeebd8840d [table] fixing CSS glitches on table view (#2725)
Somehow the CSS trick we use to display histogram-type visual elements
in table views started showing some odd glitches since
what I believe was a not-so-recent version of webkit.

The bug is around the `linear-gradient` call under `background-image`
prop being used to show non-gradient or "hard" colors, while using
transparency.

I was able to find a workaround that addresses things in chrome by using
a fake [minimal] gradient instead of a flat color.
2017-05-08 17:59:23 -07:00
YOUandMaxime Beauchemin 55d3b012e5 refactor: recentActions ajax call is redundant (#2722) 2017-05-06 21:27:40 -07:00
Maxime BeaucheminandGitHub a6e1e18244 [sql lab] fix CREATE TABLE AS (#2719) 2017-05-06 21:23:55 -07:00
YOUandMaxime Beauchemin 46d7a925bb chore: remove unused methods with invalid models.Query usage (#2721)
* fix: models.Query is not defined

* chore: remove unused Query and methods
2017-05-06 21:23:17 -07:00
Maxime BeaucheminandGitHub 5929ab7689 [dashboard] fix missing datasource issue (#2718)
Addresses a bug that happens when rendering a dashboard for which
a datasource behind one of the slices has been deleted
2017-05-05 16:48:41 -07:00
graceguo-supercatandMaxime Beauchemin fffb7b500a [sql lab]Add autoSelect (#2713)
In sql editor database dropdown list, we want to auto-select the first available option.
2017-05-05 11:00:06 -07:00
Maxime BeaucheminandGitHub cb14640a82 Removing uneeded results_backends.py (#2717) 2017-05-04 23:41:10 -07:00
Maxime BeaucheminandGitHub d65054e015 [sql lab] fix csv export where % in query (#2711)
* [sql lab] fix csv export where  in query

* Prgoress
2017-05-04 16:34:18 -07:00
Maxime BeaucheminandGitHub 5d5060eca6 Remove unecessary handling of %% (#2714) 2017-05-04 14:11:10 -07:00
Marek VavrušaandMaxime Beauchemin 9ff351532a Basic integration with ClickHouse (#1844)
* db_engine_specs: added engine spec for clickhouse

* models: group by time without join on subquery

if this is enabled, it will remove the subquery when grouping by time,
and group by time will be rewritten as group by timeslot, ...

this particularly fixes clickhouse backend

* docs: added clickhouse

* models: allow using secondary dttm columns as constraints

* superset/forms: configurable default slice since time

* superset/models: respect dialect quoting

* dttm handling, codeclimate tweaks
2017-05-03 13:57:39 -07:00
Songyan HoandMaxime Beauchemin 59a6f447ec Fix missing curUserId from SliderAdder.jsx (#2705) 2017-05-01 21:58:14 -07:00
Maxime Beauchemin 1887b5e934 0.17.6 2017-05-01 13:13:06 -07:00
Maxime Beauchemin 33758bfff5 0.17.6-alpha.2 2017-05-01 09:00:48 -07:00
Alanna ScottandMaxime Beauchemin 2d5beb1f91 improve csrf expiration error handling (#2695)
* add message

* re run query on result set mount if there is session time out error
2017-05-01 08:59:44 -07:00
Justin ParkandMaxime Beauchemin 5fd0e7d028 [vis] bar values should match y axis format (#2701)
It passes the user yAxis format value to the totalValue function to render the label text accordingly
2017-05-01 08:59:02 -07:00
Songyan HoandMaxime Beauchemin ef0c4be067 Fix for referring specific svg (#2612)
* Fix for referring specific svg

* Remove trailing space
2017-04-30 11:08:40 -07:00
Maxime BeaucheminandGitHub ac3aba7c7d [sql lab] visualization flow: fixing the groupby parameter (#2681) 2017-04-30 11:04:29 -07:00
yileicandMaxime Beauchemin 0fdb57a181 fix (#2696) 2017-04-30 11:01:34 -07:00
Maxime BeaucheminandGitHub 3e7b5df287 [explore] fix empty chart when changing viz type (#2698)
* [explore] fix empty chart when changing viz type

* Lint
2017-04-30 10:58:45 -07:00
Denny BiasiolliandMaxime Beauchemin 3cd16cf368 Fix test's warnings (#2697)
* tests: adding required props to FilterableTable mockedProps

* tests: adding required prop `height` to QuerySearch mockedProps

* tests: adding required prop `height` to ResultSet mockedProps

* tests: adding required prop `height` to SqlEditorLeftBar mockedProps

* tests: fix warning in Timer component
2017-04-30 10:58:09 -07:00
Riccardo MagliocchettiandMaxime Beauchemin a58adc862e Fix orm query in HiveEngineSpec.handle_cursor (#2699)
Fix #2643
2017-04-30 10:55:56 -07:00
yileicandAlanna Scott 7d88f80a9b hack to dynamically adjust y axis left margin (#2689)
* hack to dynamic adjust y axis margin

* merge into the previous hack

* render for both hack
2017-04-28 19:56:19 -07:00
yileicandMaxime Beauchemin 09be02f70a fix x axis label (#2691) 2017-04-28 17:59:09 -07:00
alanmcruickshankandMaxime Beauchemin 50fcdd3a34 Adding tails.com to inthewild (#2685) 2017-04-28 17:57:32 -07:00
Denny BiasiolliandMaxime Beauchemin dee36491c5 Fix js warnings (#2693)
* react: using prop-types package to fix deprecated React.PropTypes property warning

https://facebook.github.io/react/warnings/dont-call-proptypes.html

* removing babel devDependency because has been deprecated in favor of babel-cli

this fixes a warning during `npm install`:
```
npm WARN deprecated babel@6.23.0:
In 6.x, the babel package has been deprecated in favor of babel-cli.
Check https://opencollective.com/babel to support the Babel maintainers
```

* js: setting ExploreActionButtons.queryEndpoint PropType as required

because it's required in the child component DisplayQueryButton

* js(tests): using object in expandedSlices prop type of SliceCell tests

* js(tests): adding required props to SqlEditor mockedProps

* js(tests): adding required prop editorHeight to TabbedSqlEditors mockedProps

* js: removing unused moments dependency
2017-04-28 17:56:29 -07:00
yileicandAlanna Scott 903612ac6c fix (#2692) 2017-04-28 15:16:55 -07:00
yileicandAlanna Scott ce705054fa fix a bug in 'getMaxLabelSize' and x axis label not shown problem (#2694)
* fix

* fix code climate
2017-04-28 15:14:04 -07:00
graceguo-supercatandGitHub c589616883 [sql lab] Update event handler name (#2680)
Update SqlEditor database change event handler name to be more specific.
2017-04-28 11:42:48 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 58309f275f Mark a few more string for translation (#2651)
* Mark some more string for translations

Fix #2629

* Rebuild translations

* Please codeclimate
2017-04-26 21:57:56 -07:00
Tom PaineandMaxime Beauchemin edf4e4f24e Update README.md (#2676)
Spelling
2017-04-26 21:57:11 -07:00
Maxime Beauchemin b3e0b5b586 Specifying cryptography version in install docs 2017-04-26 14:20:27 -07:00
Maxime Beauchemin 68802989bc Pinning cryptography lib to 1.7.2 2017-04-26 10:32:25 -07:00
Alanna ScottandGitHub 70887d72e2 0.17.6-alpha.1 2017-04-25 22:13:29 -07:00
Maxime BeaucheminandGitHub 1922225042 Alternate fix for #2665 (#2671)
* Alternate fix for #2665

* Addressing comments

* Fix doctest
2017-04-25 18:18:17 -07:00
Alanna ScottandGitHub 0bdc3010d8 [vis] fix pivot table scrolling when using more than 1 groupy col (#2674)
* fix scrolling when more than 1 groupby

* generalize function arguments

* fix pivot table scrolling in js

* add padding rules back

* linting
2017-04-25 16:14:59 -07:00
robert-digitandMaxime Beauchemin 1df37e6e4d add option for pulling favourited dashboards by username (#2661)
* add option for pulling favourited dashboards by username

add tests

* fix too many lines pep8 error
2017-04-24 20:48:25 -07:00
Alanna ScottandGitHub e9ed416654 fix csrf error on import_dashboards (#2672) 2017-04-24 18:38:17 -07:00
Maxime BeaucheminandGitHub 03c42b5b87 Showing slices on datasource edit form (#2645)
* Showing slices on datasource edit form

* fixing build
2017-04-24 17:40:34 -07:00
Maxime BeaucheminandGitHub e055e6d2c2 Fixing PropTypes warning messages (#2670)
* Fixing PropTypes warning message

React recently started warning on the upcoming deprecation of
React.PropTypes, the new approach is to use the `prop-types`
npm package instead.

* Fixing the tests
2017-04-24 17:39:57 -07:00
Maxime BeaucheminandGitHub 29780821e8 [druid] fixing the having clause in the explore view (#2648)
* [druid] fixing the having clause in the explore view

* Backend

* Lint

* Fixing tests
2017-04-24 16:31:16 -07:00
Maxime BeaucheminandGitHub f10ee13901 [druid] fix FilterBox viz gets timestamps as values if granularity <> all (#2647) 2017-04-24 10:27:26 -07:00
Maxime BeaucheminandGitHub cdfc4a35b2 Optimizing the standalone view (#2663)
The standalone view doesn't need to fetch the datasources asynchronously
to fill in the dataources dropdown, it also doesn't need to render any
of the controls.
2017-04-23 22:13:23 -07:00
yileicandMaxime Beauchemin eb762c8bfe add the missing right bracket (#2662) 2017-04-22 12:36:47 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 83abfef830 superset: fix argument swap for SqliteEngineSpec.get_table_names (#2664)
Fix #2660
2017-04-22 12:35:39 -07:00
Maxime Beauchemin 54137ad023 Updating CHANGELOG 2017-04-21 14:15:21 -07:00
Maxime Beauchemin 4be6bfafaa 0.17.5 2017-04-21 13:56:23 -07:00
Alanna ScottandGitHub 9ba6d489f3 v0.17.5-alpha.10 (#2654) 2017-04-20 15:37:08 -07:00
Alanna ScottandGitHub af4bd40853 fix scrolling on markup vis (#2644) 2017-04-20 12:39:24 -07:00
Alanna ScottandGitHub 84fa0d1940 don't default sort by to first column (#2653) 2017-04-20 12:34:35 -07:00
Maxime Beauchemin 938e13a429 [hotfix] Presto's latest_sub_partion rendering fail 2017-04-20 17:44:56 +00:00
Alanna ScottandGitHub dc364daffd [query-search] fix scrolling on query search and pagination styling (#2646)
* fix scrolling for query search, getHeight was returning NAN

* add styling for query search pagination

* remove console.log

* make pagination buttons match bootstrap theme small buttons
2017-04-19 21:02:53 -07:00
RoganandMaxime Beauchemin 1cadfecd4b update core.py label and zh po file (#2642) 2017-04-19 12:46:07 -07:00
Alanna ScottandGitHub 5b26667fd5 0.17.5-alpha.9 2017-04-19 01:58:49 -07:00
Alanna ScottandGitHub 899caf9449 [sql-lab] fix scrolling in left hand panel for table meta data (#2641)
* fix scrolling in left hand panel for table meta data

* add height prop

* this prop is not used
2017-04-18 23:24:04 -07:00
Maxime Beauchemin e6063f2ddf 0.17.5-alpha.8 2017-04-18 16:06:23 -07:00
Maxime BeaucheminandGitHub 46486f82d9 Moving the warning message to the navbar (#2640)
At Airbnb we use these WARNING_MSG configuration element to make it
clear that we're in the staging environment.

Before this PR it would render under the navbar and mess up some of the
heights configurations, where you wouldn't be able to scroll all the way
to the bottom of the page. This fixes it.
2017-04-18 16:03:32 -07:00
Alanna ScottandGitHub 0089762955 0.17.5-alpha.7 2017-04-18 14:35:31 -07:00
Alanna ScottandGitHub 2bd60c0747 [vis] fix line chart when slice is really narrow (#2620)
* only show legend if larger than small breakpoint

* fix text length getter, it was returning -Infinity
2017-04-18 14:29:51 -07:00
Alanna ScottandGitHub db6cd21504 [sqllab] table refactor (#2587)
* make react-virtualized table work
use dynamic sizing for cell width
enable filtering
require height prop for result set component

* fix tests and linting

* move some state to props

* move getTextWidth to visUtils

* make striped rows optional

* fix striped proptype

* update name to FilterableTable

* add basic test and fix linting

* accept array of columns keys rather than an array of objects that needs to be mapped

* move container div inside the component

* rename styles

* fit table component to width if it's smaller than parent container

* move stylesheet to javascript folder otherwise it throws an error on npm run prod

* move css to index.jsx

* fix result set spec

* fix linting and test

* fix result set props

* keep list immutable
2017-04-18 14:29:38 -07:00
Maxime BeaucheminandGitHub f40499e550 [dashboard] improve error handling on dashboard (#2624)
* [dashboard] improve error handling on dashboard

* lint

* More wordy error msg
2017-04-18 13:29:54 -07:00
Maxime BeaucheminandGitHub 67a85b9831 Fix dashboard edit button is disabled (#2634)
* Fix dashboard edit button is disabled

* Addressing comments
2017-04-18 13:29:02 -07:00
Maxime BeaucheminandGitHub cb3384b3b2 Improving Presto error message in explore/dashboard (#2633)
* Improving Presto error message in explore/dashboard

* lint
2017-04-18 12:30:17 -07:00
Maxime BeaucheminandGitHub ac51a30f98 Remove metrics control non-null validator in Table context (#2635) 2017-04-18 12:29:43 -07:00
Maxime BeaucheminandGitHub 91fe02cdc8 Setting adjust_database_uri for HiveEngineSpec (#2636)
* Setting adjust_database_uri for HiveEngineSpec

* fix tests
2017-04-18 12:29:13 -07:00
Maxime Beauchemin 76042be7c3 [hotfix/sqllab] setting up the connection in the try: block 2017-04-17 17:32:21 -07:00
Maxime Beauchemin d3f55a0905 0.17.5-alpha.6 2017-04-17 17:58:31 +00:00
Maxime Beauchemin efaef8fe09 [hotfix] fix endpoint 2017-04-17 17:58:13 +00:00
Maxime Beauchemin 8757a24d89 0.17.5-alpha.5 2017-04-17 09:47:10 -07:00
Maxime Beauchemin 63785f039c [hotfix] using UTC for caching timestamps 2017-04-17 16:45:50 +00:00
Maxime Beauchemin d6689ee700 0.17.5-alpha.4 2017-04-17 09:08:29 -07:00
Maxime BeaucheminandGitHub 787daf6005 A nice CacheLabel React component (#2628)
Introducing a nice component as a label that show when data was
loaded from cache, when the cache was taken (in humanize duration as in
`a few minutes ago`) in a tooltip, and it can act as a button that
can trigger a force-refresh.

While working on it, it became clear that it was going to be hard to
use this component in the Dashboard view since it's not pure React.
I'm planning on refactoring the dashboard view with proper React/Redux
and introducing the CachedLabel component at that point.

While digging around in the Dashboard view I realized that there was a
bunch on unused code around managing timers that was used in explorev1
and decided to rip it out.
2017-04-17 09:06:56 -07:00
Maxime BeaucheminandGitHub 23aeee5a9c Slice level cache_timeout isn't taken into consideration (#2631) 2017-04-17 08:48:33 -07:00
Joe FranciaandMaxime Beauchemin 70c6cad0e3 Add UNIX socket option to runserver (#2627)
* Add UNIX socket option to runserver

Added an optional parameter to runserver to server from a UNIX socket instead of an address:port. I believe it is fairly common to server from sockets when using a web server like Nginx on the same host.

* Collapsed if/else logic for address or socket

Also wrapped help description for socket parameter
2017-04-16 23:19:02 -07:00
Maxime Beauchemin 6b1bf3b395 [hotfix] missing explore's main.css 2017-04-15 14:10:51 -07:00
Maxime BeaucheminandGitHub f5216f6047 Adding owner(s) to dashboard makes them own underlying slices (#2610) 2017-04-14 15:38:06 -07:00
Alanna ScottandMaxime Beauchemin 15654a3082 fix filters on dashboard (#2619) 2017-04-14 15:35:37 -07:00
Maxime BeaucheminandGitHub baff0cba38 Fix separator widget CSS (#2623) 2017-04-14 12:32:10 -07:00
Maxime Beauchemin c4ee098bb7 0.17.5-alpha.3 2017-04-13 17:41:30 -07:00
Maxime Beauchemin 612b8ca3d7 [hotfix] legacy url not handled properly 2017-04-13 17:40:36 -07:00
Maxime Beauchemin c43a9fd554 [hotfix] fixing the build 2017-04-13 15:58:04 -07:00
Maxime BeaucheminandGitHub 6c68a21e4f [sql lab] fix alt-enter runs out-of-date SQL (#2603) 2017-04-13 15:47:20 -07:00
Maxime BeaucheminandGitHub db02b33e09 [explore] fix query text modal while loading (#2596)
* [explore] fix and clean

Currently it's not possible to view queries while they are running, the
spinner appears endlessly. I decided to rearrange things a bit while
debugging so I could see clearly through it.

* Adding NotImplemented methods to base classes

* Fixing

* Piling up
2017-04-13 15:46:57 -07:00
Maxime BeaucheminandGitHub 2df6baa7a7 [sql lab] sorting database names in dropdowns (#2611) 2017-04-13 15:23:22 -07:00
Maxime BeaucheminandGitHub fc7bd63039 [sql lab] fixes issues specific to Sqlite (#2606) 2017-04-13 15:19:58 -07:00
Maxime BeaucheminandGitHub 959a09cc92 [dashboard] fix css padding for markup viz (#2602) 2017-04-13 15:16:46 -07:00
Maxime BeaucheminandGitHub 366ecefbaa Bumping the JS libs to fix the build (#2616)
* bumping the js libs

* New linting rules

* More linting

* More

* Done linting

* npm >=4.5.0

* Bumping node

* Tweaking the build

* Fixing the damn build

* Fixing the apps
2017-04-13 15:04:09 -07:00
Maxime Beauchemin a2b30f35fc 0.17.5-alpha.2 2017-04-13 18:39:05 +00:00
Maxime Beauchemin 8bceda8134 [hotfix] fix iframe viz 2017-04-13 18:37:27 +00:00
Maxime Beauchemin bae1067015 0.17.5-alpha.1 2017-04-13 01:09:49 +00:00
Maxime Beauchemin 116dca3e6f validationErrors is undedfined 2017-04-13 01:08:37 +00:00
Maxime Beauchemin b448394077 0.17.5-alpha.0 2017-04-12 13:56:12 -07:00
Alanna ScottandGitHub 09f407f553 add tooltips to big number vis (#2599) 2017-04-12 13:24:07 -07:00
Maxime Beauchemin 0479118efc 0.17.5.dev0 2017-04-12 13:09:53 -07:00
Songyan HoandMaxime Beauchemin c93411b1e7 Fix for merge string as array (#2597) 2017-04-12 09:40:41 -07:00
Maxime BeaucheminandGitHub 31283f1424 Fix metric formating in Dashboard view + some refactoring (#2598)
* Fix metric formating in Dashboard view + some refactoring

* Fixing build
2017-04-12 09:37:49 -07:00
Maxime Beauchemin 93c6597cf4 Adding docs/ to .eslintignore 2017-04-11 20:33:54 -07:00
Maxime Beauchemin 4446c745a8 Fix backend-sync 2 2017-04-11 20:31:01 -07:00
Maxime Beauchemin 38e90fe309 Fix backend-sync 2017-04-11 20:28:04 -07:00
Steven NiemitzandMaxime Beauchemin f5489467e5 Use correct dialect for escaping functions. (#2593)
Column functions are currently escaped with the
same dialect that is being used by Superset for its
metadata storage.  Instead the dialect of the target
table should be used when escaping column names.
2017-04-11 17:36:30 -07:00
Alanna ScottandGitHub ab0bc5a3fa handle percentage case for tooltips (#2570) 2017-04-11 12:26:34 -07:00
Riccardo MagliocchettiandAlanna Scott 412634cb57 Add missing flask-wtf dependency (#2586) 2017-04-11 12:25:54 -07:00
Maxime BeaucheminandGitHub a0ddbb9ec9 Make form_data dict a macro (#2585) 2017-04-10 22:04:25 -07:00
Maxime BeaucheminandGitHub a803705ddc [bugfix] clarifying how to create a slice (#2565)
* [bugfix] clarifying how to create a slice

First time users [rightfully] think that the proper way to create a
slice is to click the `+` button on the `Slices` CRUD page.

Changing / simplifying the redirect logic and message flashing that was
failing here somehow.

* Changing message from danger to info
2017-04-10 21:46:19 -07:00
Maxime BeaucheminandGitHub 75a358c616 [explore] force control validation before runQuery (#2544)
* [explore] force control validation before runQuery

* Addressing comments
2017-04-10 21:45:44 -07:00
Maxime BeaucheminandGitHub 493ba18362 Adding macros current_user_id & current_username (#2582)
* Adding macros current_user_id & current_username

* Addressing comments
2017-04-10 21:42:25 -07:00
Maxime BeaucheminandGitHub 5e4fca4ea4 Bumping a set of Python libraries to the latest release (#2575)
* Bumping a set of Python libraries to the latest release

* fixing flask-sqlalchemy==2.0
2017-04-10 15:37:30 -07:00
Maxime BeaucheminandGitHub d289783b67 Adding Vertica to installation docs (#2581) 2017-04-10 15:37:14 -07:00
Maxime BeaucheminandGitHub ac84fc2b65 Fixing confusion when selecting schema across engines (#2572) 2017-04-10 15:36:58 -07:00
Maxime Beauchemin 40b3d3b3ef [hotfix] add csrf_token api endpoint 2017-04-10 12:27:03 -07:00
Maxime Beauchemin 50a9e13f9b [hotfix] add csrf_token api endpoint 2017-04-10 12:10:27 -07:00
Maxime Beauchemin 66bff01b45 Changelog for 0.17.4 2017-04-10 09:41:32 -07:00
Maxime Beauchemin 9691234b7e [hotfix] casting db_id to int 2017-04-07 17:02:00 -07:00
Maxime BeaucheminandGitHub ddeabdd048 Fixing CSRF issues (#2569)
* 0.17.4

* Fixing CSRF issues

Since turning CSRF across the site with Flask-WTF, a few POST request
have been failing. This PR addresses these issues.
2017-04-07 10:57:31 -07:00
Maxime BeaucheminandGitHub 3ed45ab98c [bugfix] saved query restore wouldn't pick the db (#2568) 2017-04-07 07:48:47 -07:00
Maxime Beauchemin ca08e7051e 0.17.4rc5 2017-04-06 14:09:30 -07:00
Alanna ScottandGitHub 1fb21b8b45 [revert] reverting big num changes (#2567)
* Revert "[big num] make sure scatterplot dots align properly (#2559)"

This reverts commit f24ddfd467.

* Revert "Revert "measure x axis labels too and use the longest to determine margins" (#2550)"

This reverts commit fe68bc31c3.

* Revert "[bug num vis] fix sizing for single digits (#2548)"

This reverts commit 3d2c791ff1.

* revert all big num changes.

* fix linting

* make document global, fix linting
2017-04-06 13:15:42 -07:00
rumbinandMaxime Beauchemin c581ea8661 Alternative PR for: Some bytes/str issues in py3 w/ zlib and json (#2558)
* sql_lab.py: compress via utils

* utils.py: added zlib_compress and zlib_compress_to_string

* core.py: converted to use zlib_decompress_to_string; renamed uncompress to decompress in utils.py

* utils_tests.py: added test for compress/decompress

* fixed broken utils test; removed redundant code and empty lines from utils.py

* utils.py: corrected docstrings, removed unnecessary 'else'

* removed yet another superfluous else
2017-04-06 09:42:43 -07:00
rumbinandMaxime Beauchemin f19d1958c5 INTHEWILD: added Endress+Hauser (#2562) 2017-04-06 09:40:37 -07:00
Maxime Beauchemin 9c99be510b [hotfix] iframe viz is broken 2017-04-06 09:11:54 -07:00
Alanna ScottandGitHub 7a08cdcb1c 0.17.4rc3 2017-04-05 12:47:46 -07:00
Alanna ScottandGitHub f24ddfd467 [big num] make sure scatterplot dots align properly (#2559)
* use cardinal so scatterplot lines up properly

* use min 30 for margins, accounts for small y axis labels
2017-04-05 12:41:24 -07:00
Maxime Beauchemin 23a8ea5636 v0.17.4rc2 2017-04-05 12:02:16 -07:00
Maxime BeaucheminandGitHub 2c04d3c250 [bugfix] save dash fails with CSRF related error (#2552) 2017-04-05 12:01:17 -07:00
Maxime Beauchemin 337454b646 [hotfix] slice with missing datasource related 2017-04-05 19:00:49 +00:00
Maxime Beauchemin b7f46ebe75 [hotfix] dashboard fails when a slice is missing its datasource 2017-04-05 18:52:17 +00:00
Maxime BeaucheminandGitHub 10773f96a7 URL Params macro (#2537) 2017-04-05 10:45:32 -07:00
rhunwicksandMaxime Beauchemin b97a8275d4 Clarify docs on Redis package required for caching (#2557) 2017-04-05 10:07:36 -07:00
Maxime Beauchemin 081bdca71e [hotfix] [sql lab] fix sqlite errors when schema is selected 2017-04-05 00:26:15 -07:00
openmaxandMaxime Beauchemin 62959ca38b Db2 Grain Correct Data Format (#2545)
* Db2 Grain Correct Data Format

* Db2 Grain Correct Data Format.

* Db2 Grain Correct Data Format + typo

* Db2 Grain Correct Data Format +typo
2017-04-05 00:03:24 -07:00
Alanna ScottandGitHub fe68bc31c3 Revert "measure x axis labels too and use the longest to determine margins" (#2550)
This reverts commit cc640c1c4f.
2017-04-04 22:47:48 -07:00
Alanna ScottandGitHub 3d2c791ff1 [bug num vis] fix sizing for single digits (#2548)
* fix sizing for single digits

* measure x axis labels too and use the longest to determine margins
2017-04-04 22:34:00 -07:00
Maxime Beauchemin d40ce52139 v0.17.4rc1 2017-04-04 20:22:36 -07:00
Maxime BeaucheminandGitHub 122891c29b [sql lab] allow users to save their queries (#2528)
* Allow users to save their queries

Fixing tests .

* Adding placeholder for Query Description

* initJQueryCSRF -> initJQueryAjaxCSRF
2017-04-04 20:15:19 -07:00
Alanna ScottandGitHub c1d9918abe [vis] bug num improvements (#2523)
* fix js error, make should render viz more readable, add tooltips, style axis and add min/max to xaxis

* put getTextWidth in utils

* add document to eslint globals config
2017-04-04 20:05:36 -07:00
Alanna ScottandGitHub d93b1fc686 [sql-lab] make query history scrollable (#2499)
* make query history scrollable

* not around results
2017-04-04 15:46:11 -07:00
Maxime Beauchemin 02c5cac26f [hotfix] adding filterable to DruidColumnInlineView.edit_columns 2017-04-04 15:15:02 -07:00
Maxime BeaucheminandGitHub 6566377740 [sql lab] fix table dropdown with large schema make UI unresponsive (#2547)
Indexing was done on render, moving to doing it only when the data
changes.
2017-04-04 12:19:44 -07:00
Maxime BeaucheminandGitHub db6b2f3ae1 pylint errors will now break the build (#2543)
* Linting pylint errors

* Backing off of an unecessary change
2017-04-03 21:53:06 -07:00
Maxime BeaucheminandGitHub c31210b96d Some column description clarifications (#2536) 2017-04-03 21:52:35 -07:00
Alanna ScottandGitHub dcc6f2a18f serve roboto font locally (#2519)
* serve roboto locally

* add trailing comma

* fix long line for linter
2017-04-03 13:05:13 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 0c0666caa0 druid: use six.string_types instead of basestring (#2541)
Which is not available in python3

Fix #2539
2017-04-03 08:25:08 -07:00
dwaandMaxime Beauchemin 243eeadfd6 installation instructions for AWS Athena (#2538) 2017-04-03 08:22:40 -07:00
dwaandMaxime Beauchemin 9ba5b49d8a WIP: Initial commit to support the athena DB (#2531)
* Initial commit to support the athena DB

This work was done at tobii.com (in collaboration with knowit.se), and depends on:

- A patched version of PyAthenaJDBC (https://github.com/dwa/PyAthenaJDBC/tree/dwa-tobii-dict_formatter)
- A patched version of PyHive (https://github.com/dwa/PyHive/tree/dwa-tobii-sqlalchemy-athena)

And can be used like so:
athena://<user>:<password>@athena.us-east-1.amazonaws.com/?region_name=<region>&s3_staging_dir=s3%3A//<staging_bucket_of_choice>

* Rebased, and fixed two lint issues

* rename athena engine: athena -> awsathena
2017-04-02 20:29:33 -07:00
Maxime Beauchemin c870bd414e 0.17.3 2017-04-01 16:55:38 -07:00
Maxime BeaucheminandGitHub 4b01e92509 [dashboard] allow bar charts to scroll on x axis (#2513) 2017-03-31 08:28:19 -07:00
Maxime BeaucheminandGitHub 513a090cdc [sql lab] address lingering spinner in schema select (#2512) 2017-03-31 08:27:48 -07:00
Maxime BeaucheminandGitHub abe79d1427 Deprecate is_featured as a datasource attribute (#2485) 2017-03-31 08:27:20 -07:00
Maxime BeaucheminandGitHub b81968dc20 Redirect to explore view when saving a table (#2479) 2017-03-31 08:26:49 -07:00
Maxime Beauchemin 66cc546a30 [hotfix] fixing the (one js lint err in the) build 2017-03-31 07:52:26 -07:00
dwaandMaxime Beauchemin 6e899ac55f added tobii (#2526) 2017-03-30 13:13:18 -07:00
Maxime Beauchemin 6b52384024 [hotfix] fix pending queries race condition 2017-03-30 19:54:55 +00:00
Maxime Beauchemin 0a1d8db357 v0.17.3rc3 2017-03-29 19:14:14 +00:00
Maxime Beauchemin 6f68ddb505 Adding to polling states 2017-03-29 19:13:37 +00:00
Maxime Beauchemin 4f59abf189 v0.17.3rc2 2017-03-29 12:02:54 -07:00
Maxime BeaucheminandGitHub 5c441f4ddb [hotfix] queries trigger polling (#2517) 2017-03-29 11:58:08 -07:00
Maxime Beauchemin be023aba8d 0.17.3rc1 2017-03-29 09:50:19 -07:00
Wyndham BlantonandMaxime Beauchemin 53990201bc forgotten query_datasources_by_name function (#2497)
* forgotten query_datasources_by_name function

* use normal formats
2017-03-29 09:47:26 -07:00
Maxime Beauchemin 37783d685f Updating CHANGELOG 2017-03-29 07:56:36 -07:00
Maxime Beauchemin 25fdcaca8b v0.17.2 2017-03-29 07:46:24 -07:00
Maxime Beauchemin ce6e7c1359 [hotfix] missing logging import in db_engined_specs 2017-03-29 05:08:55 +00:00
Maxime BeaucheminandGitHub 91167665b1 Track both query start time and button push time to track delay (#2502)
* Track both query start time and button push time to track delay

* Fix

* Setting the proper precision

* More logging
2017-03-28 20:21:34 -07:00
Maxime BeaucheminandGitHub f374345860 Adding a .pylintrc file and a bit of linting (#2507) 2017-03-28 20:15:54 -07:00
Maxime BeaucheminandGitHub d3b50cb92e [explore] remove grey background in standalone mode (#2503)
* [explore] remove grey background in standalone mode

* Going with background-transparent
2017-03-28 17:11:50 -07:00
Maxime Beauchemin a58194bdb0 0.17.2rc4 2017-03-28 08:47:43 -07:00
Maxime BeaucheminandGitHub 5f3484ac59 Handle errors when the MQ is down (#2494) 2017-03-28 08:46:21 -07:00
Maxime BeaucheminandGitHub e14b74fdbf [explore] fixing bugs in controls (#2496) 2017-03-28 08:45:19 -07:00
Maxime BeaucheminandGitHub 56f28859b7 Fixing filter_box css padding (#2498) 2017-03-28 08:34:45 -07:00
openmaxandMaxime Beauchemin f3cdb3b787 Add ibm_db_sa TimeStamp and Datatime Grain Spec. (#2500)
* Add ibm_db_sa TimeStamp and Datatime Grain Spec.

* Add ibm_db_sa TimeStamp and Datatime Grain Spec. + Typo Err
2017-03-28 08:12:47 -07:00
Maxime Beauchemin b35f6b0a94 0.17.2rc3 2017-03-27 22:06:46 -07:00
Maxime BeaucheminandGitHub 5574cfef59 Fixing out-of-sync security (#2493) 2017-03-27 21:51:55 -07:00
Maxime BeaucheminandGitHub c3015583ce Stabilizing master (#2478) 2017-03-27 17:52:17 -07:00
Maxime BeaucheminandGitHub 7cc2c930ed [docs] adding notes on the Public role (#2486) 2017-03-27 17:51:41 -07:00
Maxime Beauchemin 2662bf19df v0.17.2rc2 2017-03-27 16:00:50 -07:00
Maxime Beauchemin 62e3fe2345 [hotfix] SqlaTable has no attribute column_cls 2017-03-27 15:59:58 -07:00
Alanna ScottandGitHub 7d25d171e2 [release] update to 0.17.2rc1 (#2492) 2017-03-27 15:33:22 -07:00
Maxime Beauchemin c5859c7254 [hotfix] druid queries 'There was no query executed' issue 2017-03-27 22:26:03 +00:00
Alanna ScottandGitHub dd7b4b8310 Revert "[sql-lab] revert react-virtualized-select (#2489)" (#2491)
This reverts commit 7eafbabe65.
2017-03-27 14:52:10 -07:00
Alanna ScottandGitHub 93551a65b8 only fetch tables if we have a schema, otherwise reset options. (#2490) 2017-03-27 14:38:12 -07:00
Alanna ScottandGitHub 7eafbabe65 [sql-lab] revert react-virtualized-select (#2489)
* revert react-virtualized-select

* add space between selects

* Label is not needed
2017-03-27 13:50:10 -07:00
Alanna ScottandGitHub 43dd948476 [sql-lab] performance updates - make ui more responsive (#2469)
* remove network status feature

* only fetch queries if there are started or running queries

* don't use local storage

* remove last network status from actions

* don't remove support for local storage

* address pr comments and linting

* use .some rather than .forEach
2017-03-27 12:46:36 -07:00
Maxime Beauchemin 75e7f2d22c [hotfix] bumping QUERY_UPDATE_FREQ from 1000 to 2000ms 2017-03-27 11:09:31 -07:00
Songyan HoandMaxime Beauchemin 26662eed9e Fixed CSS syntax for background linear-gradient (#2482) 2017-03-27 08:30:41 -07:00
Maxime BeaucheminandGitHub 121b1d0951 Refactoring more in the connector base classes (#2431) 2017-03-27 08:24:49 -07:00
Maxime Beauchemin 398036d77e [hotfix] 'NoneType' object has no attribute 'upper' 2017-03-26 09:28:16 -07:00
Maxime Beauchemin 59d5fcf88c [hotfix] fixing checkboxes in Tables->Columns 2017-03-25 19:25:37 -07:00
Maxime BeaucheminandGitHub 1f8e48b374 [sqllab] assign types for visualize flow (#2458)
* [sqllab] assign types for visualize flow

Somehow when using the visualize flow, the types were not
assigned at all, creating some bugs downstream. This PR attempts to get
the information required based on what pandas is knows and the types in
the data itself.

* Fixing tests

* Fixing tests

* Fixing more tests

* Fixing the last py3 tests
2017-03-24 09:23:51 -07:00
Maxime BeaucheminandGitHub 7bf19b1232 [WiP] making doubling '%' not required (#2459)
* Making doubling '%' not required

Now passing the sqlalchemy query object to pandas's read_sql_query

* Fix test/lint
2017-03-24 09:23:25 -07:00
Maxime BeaucheminandGitHub 1590b8c7e5 Speeding up polling by not checking access (#2466)
* Speeding up polling by not checking access

* Fix tests
2017-03-23 22:46:25 -07:00
Alanna ScottandGitHub 22522fc05f [sql-lab] improve table select performance (#2457)
* use fast filter for tables select

* react-virtualized needs this package, throws error otherwise...

* continue to use async select and this.getTableNamesBySubStr when a schema is not selected

* import styles in same place as react-select css import
2017-03-23 14:25:13 -07:00
Jakub CzaplickiandMaxime Beauchemin c9b59fab1f Update INTHEWILD.md (#2455) 2017-03-22 15:24:49 -07:00
Maxime BeaucheminandGitHub 69152e087a [explore] remove 'SQL Clauses' section when using Druid (#2449) 2017-03-21 23:17:44 -07:00
Alanna ScottandGitHub 652e572b56 [sql-lab] make results table scroll in static container (#2426)
* only scroll result set horizontally

* only scroll results table, keep rest of ui static

* use hard coded values

* fix linting
2017-03-21 18:30:53 -07:00
Maxime BeaucheminandGitHub 65c89f54dc [hotfix] merging db migration scripts (#2448) 2017-03-21 15:42:56 -07:00
Maxime BeaucheminandGitHub edf5c0e83b [dist_bar] fix x scroll when overflowing (#2440) 2017-03-21 14:00:45 -07:00
Jan EglingerandMaxime Beauchemin a4abbfe126 Fix formatting in README.md (#2441) 2017-03-21 14:00:09 -07:00
Alex DeBrieandMaxime Beauchemin 7b28bcef15 Fix documentation for adding a Redshift database (#2447)
When adding a Redshift database, the docs said to use a connection
string that started with `redshift+psycopg2://...`, but this results
in a Python error from how SQLAlchemy executes the `get_schema_names`
method (first reported [here](https://github.com/airbnb/superset/issues/2364#issuecomment-284705179)).

The fix is to use `postgresql+psycog2://...` for the Redshift connection
string.
2017-03-21 13:59:29 -07:00
Maxime BeaucheminandGitHub 8042ac876e [explore] improved filters (#2330)
* Support more filter operators

* more filter operators [>, <, >=, <=, ==, !=, LIKE]
* Fix need to escape/double `%` in LIKE clauses
* spinner while loading values when changing column
* datasource config elements to allow to applying predicates when
  fetching filter values
* refactor

* Removing doubling parens

* rebasing

* Merging migrations
2017-03-20 21:10:59 -07:00
yileicandMaxime Beauchemin 82bc907088 fix a bug in pie chart (#2423)
* fix a bug in pie chart

* remove unnecessary line
2017-03-20 21:10:06 -07:00
Maxime Beauchemin e2b572d9e2 Prevent alarming users with stacktrace when using sqlite 2017-03-19 18:55:11 -07:00
yileicandMaxime Beauchemin e71596dc45 make dualline thumbnail have consistent size as other thumbnails (#2434) 2017-03-19 18:30:32 -07:00
BogdanandGitHub c3be58db43 Add verbose name to db and druid cluster (#2429)
* Add verbose name field to the databases

* Add migration

* Display verbose name in the view.
2017-03-17 14:27:34 -07:00
BogdanandGitHub 3d77a12aa9 Display the first partition. (#2425) 2017-03-16 15:52:35 -07:00
Maxime BeaucheminandGitHub 36deb8da71 Allow users to alter column types (#2424) 2017-03-16 14:53:02 -07:00
Maxime Beauchemin 05ee8c0e36 v0.17.1 2017-03-16 08:44:09 -07:00
Maxime Beauchemin 5ca55a5585 [hotfix on dist_bar] bringing back overwritten handling of ints and tuples 2017-03-16 06:50:12 +00:00
BogdanandGitHub 1b330a8c55 Use connector registry for metrics (#2420) 2017-03-15 18:13:15 -07:00
vera-liuandGitHub 696678c981 Replace query once query response returned (#2415)
* Replace query once query response returned

* Fix bug with refresh druid datasources
2017-03-15 17:56:37 -07:00
BogdanandGitHub 20aec3cfca Use connector registry to fetch the table column class. (#2419) 2017-03-15 17:36:28 -07:00
Maxime Beauchemin 4ded37e71e [hotfix] handle missing or empty column type 2017-03-15 08:19:29 -07:00
BogdanandGitHub 0674ed846c Use list instead of numpy array (#2412) 2017-03-14 18:01:35 -07:00
BogdanandGitHub 3107152f5b Revert "Preprocess the where clauses." (#2411)
* Revert "Display full name. (#2378)"

This reverts commit 5b19528662.

* Revert "Preprocess the where clauses. (#2405)"

This reverts commit 357773c631.
2017-03-14 16:00:52 -07:00
BogdanandGitHub 5b19528662 Display full name. (#2378) 2017-03-14 14:33:43 -07:00
BogdanandGitHub 357773c631 Preprocess the where clauses. (#2405) 2017-03-14 13:28:05 -07:00
Maxime BeaucheminandGitHub 5e43d074c3 [explore ] templating can now reference query elements (#2388)
Second take on
https://github.com/mistercrunch/superset/pull/3
2017-03-14 13:23:20 -07:00
Maxime BeaucheminandGitHub 08bdcd52b8 Fix bad d3.format metric setting and/or value === Infinity (#2399) 2017-03-14 12:18:51 -07:00
Maxime BeaucheminandGitHub 0b8522be50 [filter_box] fix time filter and inverted instantFilter (#2402)
* [filter_box] fix time filter and inverted instantFilter

* Added a few comments
2017-03-14 12:18:33 -07:00
vera-liuandGitHub c02a7fe763 Add more tests to Save Modal specs (#2313) 2017-03-14 11:31:33 -07:00
Benedict JinandMaxime Beauchemin dcd5bdeb00 fix unicode issues (#2308 #2282) (#2401) 2017-03-14 09:53:31 -07:00
BogdanandGitHub 562b4f0415 Do not silence error message for query. (#2396) 2017-03-13 18:23:53 -07:00
BogdanandGitHub 6160a3fdff Implement stop query functionality. (#2387)
* Implement stop query functionality.

* Address comments
2017-03-13 13:54:38 -07:00
BogdanandGitHub 0779da6d24 Keep column order in .csv (#2377) 2017-03-10 14:49:11 -08:00
BogdanandGitHub 740624ba01 Fix monthly time grain in sqllite (#2380) 2017-03-10 11:57:17 -08:00
Maxime BeaucheminandGitHub 2969cc9993 Refactoring Druid & SQLa into a proper "Connector" interface (#2362)
* Formalizing the Connector interface

* Checkpoint

* Fixing views

* Fixing tests

* Adding migrtion

* Tests

* Final

* Addressing comments
2017-03-10 09:11:51 -08:00
Maxime BeaucheminandGitHub 9a8c3a0447 [table] metric ordering is wrong in some cases (#2373) 2017-03-08 20:14:42 -08:00
vera-liuandMaxime Beauchemin e817382efd Add more tests to Filter spec (#2315) 2017-03-08 16:36:20 -08:00
Maxime Beauchemin 422d1feb3e 0.17.1rc2 2017-03-08 16:02:44 -08:00
BogdanandGitHub 2b0cb2b0a5 Fix partition query (#2353) 2017-03-06 17:22:52 -08:00
BogdanandGitHub 705d09d3d0 Remove duplicate (#2351) 2017-03-06 16:54:13 -08:00
BogdanandGitHub 9114d86ecd Add hive to superset + monkey patch the pyhive (#2134)
* Initial hive implementation

* Fix select star query for hive.

* Exclude generated code.

* Address code coverage and linting.

* Exclude generated code from coveralls.

* Fix lint errors

* Move TCLIService to it's own repo.

* Address comments

* Implement special postgres case,
2017-03-06 16:20:55 -08:00
Maxime BeaucheminandGitHub ad4a950b56 Fixes filters emitted from table viz (#2335) 2017-03-06 15:14:08 -08:00
Maxime BeaucheminandGitHub bd480e0c6b Fix duplicate property DruidDatasource.database (#2348)
fixes https://github.com/airbnb/superset/issues/2347
2017-03-06 14:24:12 -08:00
Maxime BeaucheminandGitHub af3415b040 [filter_box] option to delay filtering with apply button (#2338)
* [filter_box] delayed filtering with apply button

* Remove lingering console.log statement
2017-03-06 13:31:00 -08:00
moranrfandMaxime Beauchemin b4a96bd840 Fix for RuntimeError: dictionary changed size during iteration (#2320) 2017-03-06 12:38:20 -08:00
Maxime Beauchemin 9d8d421384 [hotfix] fix world map 2017-03-03 21:20:25 -08:00
Maxime BeaucheminandGitHub f6ffc00748 Allow running Flask Blueprints alongside Superset (#2337)
* Allowing environments to import Blueprints

* Docs entry

* Fix typos
2017-03-03 17:09:54 -08:00
Alanna ScottandGitHub e35016f07d remove unneeded tooltip/description text (#2303) 2017-03-03 17:00:11 -08:00
Alanna ScottandGitHub af8e2523a8 fix version (#2336)
0.17.1rc1
2017-03-03 16:59:47 -08:00
Maxime BeaucheminandGitHub 492df94b2a [sqllab] reserved words should be upper case (#2316) 2017-03-03 14:55:58 -08:00
Alanna ScottandGitHub b62f7e2820 [version] use rc for production only releases (#2334) 2017-03-03 13:58:20 -08:00
Alanna ScottandGitHub 5cc2fc157c v0.17.1 (#2333) 2017-03-03 12:53:04 -08:00
vera-liuandAlanna Scott 266c049f2d Fix bug with breakdown (#2312)
* Fix bug with breakdown

* allow distribution graph to scroll horizontally

* don't stringify i
2017-03-03 12:31:46 -08:00
Maxime Beauchemin 4e848c8cb5 Updating CHANGELOG 2017-03-01 12:42:07 -08:00
vera-liuandGitHub efff1ac4a1 Temp hack to make druid filters work in dashboard (#2300) 2017-02-28 16:54:42 -08:00
vera-liuandGitHub fc64a75fbd v0.17.0 (#2298) 2017-02-28 14:34:09 -08:00
Maxime Beauchemin dd9f431b6f v0.17.0 2017-02-28 11:47:35 -08:00
Maxime BeaucheminandGitHub c894c54d00 [table] Allowing to show the time grain in table view (#2294)
Explicitely request to show the time grain in the table view as
a checkbox
2017-02-28 11:10:42 -08:00
vera-liuandGitHub 4d349c7885 [hotfix] Fix filter for sqlalchemy and druid (#2293)
* [table viz] allow showing time granularity in table (#2284)

The time granularity currently does not show up in table viz. Now
defining a granularity will add an extra ISO-formatted time column in
the table. The column will be added for both grouped by and not grouped
by.

* Changes based on comments
2017-02-28 09:22:51 -08:00
vera-liuandGitHub 675b819e0a Revert "[hotfix] Fix druid filters" (#2292) 2017-02-27 20:46:12 -08:00
vera-liuandGitHub 09f1083c50 [table viz] allow showing time granularity in table (#2284) (#2291)
The time granularity currently does not show up in table viz. Now
defining a granularity will add an extra ISO-formatted time column in
the table. The column will be added for both grouped by and not grouped
by.
2017-02-27 20:33:21 -08:00
Maxime BeaucheminandGitHub 47be3ef3ea Fixing bugs in Sankey diagrams (#2290)
* NULL values for name breaks the chart
* negative rect svg height values
2017-02-27 17:07:10 -08:00
Maxime BeaucheminandGitHub 9dd7778597 [table viz] allow showing time granularity in table (#2284)
The time granularity currently does not show up in table viz. Now
defining a granularity will add an extra ISO-formatted time column in
the table. The column will be added for both grouped by and not grouped
by.
2017-02-27 13:58:05 -08:00
Maxime Beauchemin efffa925ed rc7 2017-02-27 13:27:08 -08:00
Maxime Beauchemin fa9bc92c95 [hotfix] filters broken on multi-datasource dashboards 2017-02-27 21:16:13 +00:00
vera-liuandGitHub 227c66c2c5 [hotfix] add regex for druid filters (#2288) 2017-02-27 11:12:47 -08:00
Joel DonahueandMaxime Beauchemin e91bc9dfcc added gcc-c++ for RHEL OS dependencies (#2286) 2017-02-27 10:19:33 -08:00
Maxime Beauchemin bc29035bda 0.16.1rc6 2017-02-26 23:58:26 -08:00
Maxime BeaucheminandGitHub f10e453c9b Fixing bar charts x_axis labels (#2280) 2017-02-26 23:44:08 -08:00
Sungju JinandMaxime Beauchemin d4b59b36a8 Fixed a bug when querying with schema path to Redshift/Postgresql (#1789) 2017-02-26 22:54:48 -08:00
Maxime Beauchemin 4f644cd0ca 0.16.1rc5 2017-02-26 10:24:10 -08:00
Maxime BeaucheminandGitHub ed2935ec69 Fixing multi value parsing on old URL (#2277) 2017-02-26 10:23:41 -08:00
Maxime BeaucheminandGitHub ea72c6b018 [bugfix] css editor dooesn't pop up (#2243) 2017-02-25 23:12:17 -08:00
Sungju JinandMaxime Beauchemin 2df6ab36bf Add Udemy to INTHEWILD (#2275) 2017-02-25 22:58:57 -08:00
Maxime Beauchemin 10ea63557a [hotfix] not grouped by -2 2017-02-26 01:34:50 +00:00
Maxime Beauchemin 55e462d90b 0.16.1rc3 2017-02-25 17:21:30 -08:00
Maxime BeaucheminandGitHub 73393925c0 [hotfix] Table view doesn't allow SELECT (no group by) (#2274) 2017-02-25 17:19:58 -08:00
Alanna ScottandGitHub f9852bc807 v0.16.1rc2 (#2272) 2017-02-24 20:02:57 -08:00
Alanna ScottandGitHub 6e1901e8e8 d is not defined, fix (#2270) 2017-02-24 19:15:57 -08:00
vera-liuandAlanna Scott 87582962d9 [Hotfix] access slice_id when slice exists (#2268) 2017-02-24 18:10:41 -08:00
Maxime BeaucheminandGitHub 3de2698657 Introducing support for pre-depercate_v1 URL scheme (#2267) 2017-02-24 17:58:14 -08:00
vera-liuandAlanna Scott ec1f0221cd Parse filter values for possible integers and floats (#2263) 2017-02-24 17:21:28 -08:00
vera-liuandAlanna Scott 4d900c9ee1 Do not add slice_name when slice doesn't exist (#2265) 2017-02-24 17:20:35 -08:00
Maxime Beauchemin 3a758900eb [hotfix] separator renders markdown 2017-02-24 16:51:43 -08:00
Alanna ScottandGitHub 1ea7178d17 v0.16.1rc1 (#2260)
fixes
https://github.com/airbnb/superset/issues/2255
https://github.com/airbnb/superset/issues/2252
2017-02-24 14:35:58 -08:00
Alanna ScottandGitHub c85c9988df fix index error for bar charts (#2258) 2017-02-24 14:30:22 -08:00
vera-liuandGitHub 34f68073a2 Default action to overwrite for users with overwrite permissions (#2257) 2017-02-24 13:34:39 -08:00
Alanna ScottandGitHub acc880c4df [v0.16.1] bump version for prod release (#2250) 2017-02-24 10:56:46 -08:00
Maxime BeaucheminandGitHub 557b557503 [bugfix] avoid caching errors (#2244) 2017-02-24 10:32:51 -08:00
BogdanandGitHub 3018356588 Support more druid postaggregations. (#2235) 2017-02-23 17:14:00 -08:00
BogdanandGitHub ede4dffcb7 Add trailing slash (#2236) 2017-02-23 16:27:59 -08:00
BogdanandGitHub cad392eb76 Fetch schemas separately. (#2227) 2017-02-23 14:02:40 -08:00
Maxime Beauchemin 0296158100 [docs] more specific about python versions 2017-02-23 13:47:15 -08:00
Maxime Beauchemin b2a4692a02 0.16.0rc3 2017-02-23 08:59:49 -08:00
Maxime BeaucheminandGitHub 2fbadea9e3 Fixing exploring a table (#2233) 2017-02-23 08:58:27 -08:00
BogdanandGitHub dc05be36a6 Check if the query is in state first. (#2226) 2017-02-22 16:26:17 -08:00
Maxime Beauchemin dac0d1d0dc 0.16.0rc2 2017-02-22 15:32:26 -08:00
Maxime BeaucheminandGitHub 459f7160ac Fixing filtering issues (#2223)
* Fixing filtering issues

* Fixing off by one error
2017-02-22 15:17:20 -08:00
vera-liuandGitHub aff524d843 **Allow user to put dbname in url (#2209)
**Parse dbid from url to integer
2017-02-22 14:48:14 -08:00
BogdanandGitHub 3a91667e92 Update cache for the command line command. (#2213) 2017-02-22 12:06:48 -08:00
Maxime Beauchemin 3e0d3584f7 v0.16.0rc1 2017-02-22 11:39:04 -08:00
Maxime BeaucheminandGitHub 1e47d6fb41 Renaming field to control (#2210) 2017-02-22 08:36:47 -08:00
Maxime BeaucheminandGitHub d5ba88b407 Fixing the CACHING (#2203)
Caching wasn't working after deprecate_v1, this addresses it. Also surfacing
whether the data is served from cache in explore view and a way to force
run the query bypassing the cache.
2017-02-22 08:31:31 -08:00
Maxime BeaucheminandGitHub ce1e18b31b Merge pull request #2202 from mistercrunch/clean_cli
[cli] Cleaning up CLI stdout on startup
2017-02-21 14:32:24 -08:00
Maxime Beauchemin ec84aa7577 Fixing typo 2017-02-21 08:44:55 -08:00
Maxime Beauchemin 8b4d72cf32 Reverting react-select to rc2 2017-02-21 08:43:39 -08:00
Maxime Beauchemin 85e6e65a47 Fixing the build 2017-02-21 08:35:16 -08:00
Maxime Beauchemin 7cad3655f5 Bumping react-select to 1.0.0-rc.3 2017-02-21 00:33:25 -08:00
Maxime Beauchemin b9e7f292c3 Cleaning up CLI stdout on startup
on startup, FAB spits out a bunch of logging messages that aren't useful
in most cases. This shuts them down by default. They can be turned back
on with `config.SILENCE_FAB = True`

Also shushing a flask-cache warning around setting up a null (default) cache
2017-02-18 12:18:56 -08:00
vera-liuandGitHub fc85034c60 Better error handling for presto (#2161)
* Better error handling for presto

* Move to db_engine_spec
2017-02-17 10:29:35 -08:00
Maxime Beauchemin f5e3d0cc02 [hotfix] incompatible diamond flask-sqlalchemy version 2017-02-16 23:16:35 -08:00
Maxime Beauchemin fe377e8b94 [hotfix] dashboard won't load, error in fields.js 2017-02-17 07:13:08 +00:00
Maxime Beauchemin 5bb87138e9 [hotfix] Trends example slice is broken 2017-02-16 22:06:23 -08:00
Maxime Beauchemin 579e58206e Bumping up some of the python lib deps 2017-02-16 22:05:29 -08:00
Maxime Beauchemin 172b6ce892 v0.16.0 2017-02-16 17:48:02 -08:00
Maxime BeaucheminandGitHub 0cc8eff1c3 [WiP] Deprecate Explore v1 (#2064)
* Simplifying the viz interface (#2005)

* Working on dashes

* Making this a collaborative branch

* Fixing some bugs

* Fixing bugs

* More improvements

* Add datasource back in bootstrap data

* Decent state

* Linting

* Moving forward

* Some more linting

* Fix the timer

* Triggering events through state

* Lingint

* Put filters in an array instead of flt strings (#2090)

* Put filters in an array instead of flt strings

* Remove query_filter(), put opChoices into Filter

* Update version_info.json

* Fix migrations

* More renderTrigger=true

* Fixing bugs

* Working on standalone

* getting standalone to work

* Fixed forcedHeight for standalone =view

* Linting

* Get save slice working in v2 (#2106)

* Filter bugfix

* Fixing empty series limit bug

* Fixed dashboard view

* Fixing short urls

* Only allow owners to overwrite slice (#2142)

* Raise exception when date range is wrong

* Only allow owner to overwrite a slice

* Fix tests for deprecate v1 (#2140)

* Fixed tests for control panels container and filters

* Fixed python tests for explorev2

* Fix linting errors

* Add in stop button during slice querying/rendering (#2121)

* Add in stop button during slice querying/rendering

* Abort ajax request on stop

* Adding missing legacy module

* Removing select2.sortable.js because of license

* Allow query to display while slice is loading (#2100)

* Allow query to display while slice is loading

* Put latestQueryFormData in store

* Reorganized query function, got rid of tu[le return values

* Merging migrations

* Wrapping up shortner migration

* Fixing tests

* Add folder creation to syncBackend

* Fixing edit URL in explore view

* Fix look of Stop button

* Adding syntax highlighting to query modal

* Fix cast_form_data and flase checkbox on dash

* Bugfix

* Going deeper

* Fix filtering

* Deleing invalid filters when changing datasource

* Minor adjustments

* Fixing calendar heatmap examples

* Moving edit datasource button to header's right side

* Fixing mapbox example

* Show stack trace when clicking alert

* Adding npm sync-backend command to build instruction

* Bumping up JS dependencies

* rm dep on select2

* Fix py3 urlparse

* rm superset-select2.js

* Improving migration scripts

* Bugfixes on staging

* Fixing Markup viz
2017-02-16 17:28:35 -08:00
Alanna ScottandGitHub 3b023e5eaa add css to the data object to be saved (#2188) 2017-02-16 10:37:29 -08:00
Maxime Beauchemin 615d8f1624 Moving branding assets to folder 2017-02-15 14:11:47 -08:00
Maxime Beauchemin b4409ace21 Adding branding assets in the repo 2017-02-15 14:09:14 -08:00
Alanna ScottandGitHub dbee6aca1f use pre-wrap for long lines (#2181) 2017-02-15 13:09:17 -08:00
BogdanandGitHub acfe62eaf7 Add command to refresh datasources (#2180) 2017-02-15 10:13:53 -08:00
vera-liuandGitHub 527a8af060 Return original state for query if query was stopped (#2164) 2017-02-14 10:28:25 -08:00
Benedict JinandMaxime Beauchemin a5a931a670 Fix werkzeug instance was created twice in Debug Mode (#2135) (#2136)
* Fix werkzeug instance was created twice in Debug Mode (#2135)

* add reloader option for flask (#2136)

* using --no-reload option for flask

* divide a line of code into two lines for PEP8
2017-02-13 21:33:59 -08:00
vera-liuandGitHub 2f05efaf12 Set default time range of query search to the past month (#2162) 2017-02-13 17:16:09 -08:00
vera-liuandGitHub 83ef8a2e12 Add parsing for nested json objects in resultset (#2163) 2017-02-13 17:15:41 -08:00
BogdanandGitHub c564881867 Implement caching and dynamic data fetching. (#1466)
* Rename rv => o in the decorator.

* Address comments.

* Permissions cleanup: remove none and duplicates. (#1967)

* Updates

* Rename var and dropdown text

* Cleanup

* Resolve comments.

* Add user to the perm check.
2017-02-13 16:14:55 -08:00
vera-liuandGitHub b16930f35d Keep order of axis data when storing df (#2092) 2017-02-10 12:54:03 -08:00
Alanna ScottandGitHub 2d910e3f07 [vis] render line breaks in TableViz (#2118)
* convert line breaks to br tags in table vis

* use css!
2017-02-10 11:51:18 -08:00
Saleh HindiandMaxime Beauchemin daa1420c8e adding tests for #1131 (#1902)
* Add login test

* Add add-slice test

* Fix linting errors

* Use get_resp()helper method instead of self.client.get()

* Fix failing test.

* Add checks for URLs in the tablemodelview

* Fix linting errors

* Address pull request comments

* Address pull request comments

* Remove accidentally added files

* Fix failing test
2017-02-10 01:17:49 -08:00
Benedict JinandMaxime Beauchemin cea310e50b Using the time zone with specific name for querying Druid (#2143)
* Using the time zone with specific name for querying Druid

* Revert DRUID_TZ into tz.tzutc() (#2143)
2017-02-09 23:48:49 -08:00
Alanna ScottandGitHub fcdd5c6752 [slices axis] fix axis spacing on dashboard and explore slices (#2145)
* fix axis label size bug and accommodate dual axis chart

* don't adjust margins for bar time series

* handling this below now

* apply different margin padding if explore or dashboard

* fix linting
2017-02-09 21:24:52 -08:00
Alanna ScottandGitHub 2ace73e9a1 [sql-lab] make datasource name in visualize flow more descriptive (#2103)
* make data source name more descriptive

* add user name to datasource name as well
2017-02-09 12:11:25 -08:00
Alanna ScottandGitHub 80cfb08794 only call drawGraph once (#2132) 2017-02-09 09:39:08 -08:00
Benedict JinandMaxime Beauchemin 1edc2b91cf Fix ExtDeprecationWarning (#2137) (#2138)
* fix ExtDeprecationWarning (#2137)

* remove warnings.simplefilter from cli.py into superset for PEP (#2137)
2017-02-08 11:59:43 -08:00
Benedict JinandMaxime Beauchemin 1f58e18b6f Some code refactoring (#2139) 2017-02-08 11:52:58 -08:00
auxsvrandMaxime Beauchemin f2bf316058 Add NUMERIC num_type (#2127) 2017-02-07 11:16:52 -08:00
Benedict JinandMaxime Beauchemin 9cd38fa1ed little code refactor in models.py (#2124) 2017-02-06 22:19:30 -08:00
BogdanandGitHub edb0111775 Increase query limit to 1M, add separate display limit. (#2111) 2017-02-06 10:35:54 -08:00
Benjamin YolkenandGitHub de4f9e8d1a Merge pull request #2113 from airbnb/byolken/s3_cache_implementation
Add implementation of S3Cache
2017-02-03 23:10:57 -08:00
Benjamin Yolken 461e41cd61 Use BytesIO instead of StringIO for python2/3 compatibility 2017-02-03 22:36:34 -08:00
Benjamin Yolken 716406198e Clean up imports of cPickle and StringIO 2017-02-03 21:50:04 -08:00
Benjamin Yolken 68592aeddf Fix StringIO import in results_backends module 2017-02-03 21:43:31 -08:00
Benjamin Yolken b927ff6eef Fix indentation errors in results_backends module 2017-02-03 21:28:42 -08:00
Benjamin Yolken ce50e6e4fe Fix python3 cPickle import errors 2017-02-03 21:27:21 -08:00
Benjamin Yolken 167ed33bba Fix name of test in results_backends_tests module 2017-02-03 16:29:28 -08:00
Benjamin Yolken 0ee1abf31a Misc. fixes in response to code review feedback 2017-02-03 16:21:33 -08:00
Benjamin Yolken 6a0a1af67e Fix misc. style issues 2017-02-03 15:59:18 -08:00
Benjamin Yolken f85481d51b Fix long lines in superset/results_backends.py 2017-02-03 15:48:33 -08:00
Benjamin Yolken 00b6b0ac68 Misc. style tweaks to S3Cache changes and tests 2017-02-03 15:43:43 -08:00
Benjamin Yolken 1546b1ae71 Add tests for S3Cache 2017-02-03 15:40:18 -08:00
Benjamin Yolken 1e94498d9d Add initial implementation of S3Cache 2017-02-03 13:32:23 -08:00
BogdanandGitHub 0f7189b859 Do not fail is the filter cannot be parsed. (#2105) 2017-02-03 10:37:32 -08:00
BogdanandGitHub a6e0f1b75a Add an option to configure celery workers size. (#2085) 2017-02-03 09:37:08 -08:00
Alanna ScottandGitHub 543c22bb50 [dashboard] fix nvd3 tooltips (#2096)
* hide tooltips on scroll

* hide tooltips on render/re-render of the chart

* move function above vis function, fixes linter
2017-02-01 19:16:52 -08:00
BogdanandGitHub 07e067cf0b Revert "Bump version to 0.15.4.1" (#2095) 2017-02-01 17:24:05 -08:00
BogdanandGitHub 6c256a34a9 Bump version to 0.15.4.1 (#2094) 2017-02-01 17:17:21 -08:00
BogdanandGitHub 6b2eb04a73 Put back a default count * metric (#2091) 2017-02-01 16:53:26 -08:00
BogdanandGitHub 898d80ba38 Viz the compiled query rather than user input. (#2086) 2017-01-31 19:56:59 -08:00
BogdanandGitHub ea8e4ad05b Display all columns if none are specified. (#2077)
* Display all columns if none are specified.

* Update models.py

* Do not use column for the time series.

* Update models.py

* Update config.py
2017-01-31 17:50:53 -08:00
vera-liuandGitHub 27aeac6859 Remove fetch results button for async queries (#2084) 2017-01-31 17:25:06 -08:00
vera-liuandGitHub 8da371e324 Make show query button work for v1 (#2080) 2017-01-31 14:47:50 -08:00
vera-liuandGitHub 0c59fe933d Only call topn when having_filters don't exist (#2075) 2017-01-31 13:59:44 -08:00
Alanna ScottandGitHub e169c67760 [vis] fix axis labels display (#2066)
* re-render chart after adjusting for long axis labels

* measure all of the labels and take the max height

* add missing isTimeSeries var

* fix linting

* use jQuery to get text ticks

* rotate 45 rather than 90
2017-01-31 11:15:59 -08:00
vera-liuandGitHub 3a5a927dc6 check if tempTable exists for ctas queries (#2073) 2017-01-30 17:08:52 -08:00
vera-liuandGitHub 2d419e4253 Return alert instead of fetch button when async results has no data (#2072) 2017-01-30 11:03:37 -08:00
vera-liuandGitHub 87869a29c9 Customize tooltip with axis format (#2068) 2017-01-30 10:43:11 -08:00
vera-liuandGitHub 544211f5ec Revert "Display no data alert when async result has zero rows" (#2069) 2017-01-27 15:31:28 -08:00
BogdanandGitHub f6ac95e2dd Convert objects to json (#2050) 2017-01-27 13:33:54 -08:00
vera-liuandGitHub 63bef2f844 [bugfix] only pop slice_id when it exists in url (#2065) 2017-01-27 11:07:34 -08:00
vera-liuandGitHub 4a8cd04de6 Display no data when async result has zero rows (#2055) 2017-01-27 11:06:54 -08:00
vera-liuandGitHub 85806624db Use a key-value store model for sharing long queries (#1951)
* Add KeyValue model for storing id-value pairs
use it for storing shared queries

* Change string to text and added test

* Put getQueryLink in one place

* Changed migration down version

* Changes based on comments

* Update bcf3126872fc_add_keyvalue.py
2017-01-27 10:20:24 -08:00
BogdanandGitHub 1ac2273984 Reimplement has_access. (#2028) 2017-01-26 12:13:56 -08:00
vera-liuandGitHub a8c29c4ffe Change validator of timeshift to allow for strings (#2051) 2017-01-26 09:55:47 -08:00
Dylan J. SatherandMaxime Beauchemin 31af01c4f2 Splitting dev-reqs.txt into requirements for development and docs (dev-reqs-for-docs.txt). Updating CONTRIBUTING.md accordingly (#2049) 2017-01-26 09:07:23 -08:00
BogdanandGitHub b1bba96d04 Fix csv download. (#2036) 2017-01-25 18:06:29 -08:00
BogdanandGitHub c5c730224e Check datasource level perms for downloading csv and fetching results (#2032)
* Check datasource level perms for downloading csv and fetching results

* Add index on the query table on the result key column
2017-01-25 16:02:26 -08:00
Emanuele CesenaandMaxime Beauchemin 7441cf7d39 Fix inner query labels for Vertica (#2041)
In Vertica, inner queries require different aliases than the main query.

This is an example of query generated before this patch:
SELECT chain AS chain,
                weekstartday AS __timestamp,
                SUM(inventory) AS "Inventory"
FROM mytable
JOIN
  (SELECT chain AS chain__,
                   SUM(inventory) AS "Inventory"
   FROM mytable
   WHERE weekstartday >= '2016-01-24 00:00:00'
     AND weekstartday <= '2017-01-17 00:00:00'
   GROUP BY chain
   ORDER BY "Inventory" DESC LIMIT 50) AS anon_1 ON chain = chain__
WHERE weekstartday >= '2016-01-24 00:00:00'
  AND weekstartday <= '2017-01-17 00:00:00'
GROUP BY chain,
         weekstartday
ORDER BY "Inventory" DESC LIMIT 50000

Which in Vertica produces the error:
Error: ('42702', '[42702] ERROR 2671: Column reference "inventory" is ambiguous\n (2671) (SQLExecDirectW)')


And this is the same example after the patch:
SELECT chain AS chain,
                weekstartday AS __timestamp,
                SUM(inventory) AS "Inventory"
FROM mytable
JOIN
  (SELECT chain AS chain__,
                   SUM(inventory) AS mme_inner__
   FROM mytable
   WHERE weekstartday >= '2016-01-24 00:00:00'
     AND weekstartday <= '2017-01-17 00:00:00'
   GROUP BY chain
   ORDER BY mme_inner__ DESC LIMIT 50) AS anon_1 ON chain = chain__
WHERE weekstartday >= '2016-01-24 00:00:00'
  AND weekstartday <= '2017-01-17 00:00:00'
GROUP BY chain,
         weekstartday
ORDER BY "Inventory" DESC LIMIT 50000

Related PR:
https://github.com/airbnb/superset/commit/19f5371787df8d65137b7cf2ceb6c2a6b764cdca
2017-01-25 12:12:30 -08:00
Dylan J. SatherandMaxime Beauchemin 45c72d25df New administrator tutorial (#2046)
* New Tutorial for Superset Admins

* Removing old images from tutorial, adding new
2017-01-25 11:44:02 -08:00
Dylan J. SatherandMaxime Beauchemin 3fff631b32 Expanded on documentation section, running through an example of committing a change to the docs end-to-end and describing the process for adding static assets (#2047) 2017-01-25 11:41:39 -08:00
Riccardo MagliocchettiandBogdan bfa2891b23 models: add real to numeric types (#2044)
Fix #2010
2017-01-25 07:41:28 -08:00
vera-liuandGitHub 5715f52fef [hotfix] delete DAR when datasource requested does not exist anymore (#2040) 2017-01-24 21:49:02 -08:00
Emanuele CesenaandBogdan 1f2126f463 Fix Druid granularity timeZone (#2037)
timezone -> timeZone
2017-01-24 21:08:13 -08:00
vera-liuandGitHub 27ed0b37bf Cleanup fulfilled requests after approve (#1953)
* Cleanup fulfilled requests after approve

* Modified tests

* Moved to separate test, add user to access functions

* Moved to separate test and added test cases

* Fixed issue with dryrun

* More changes based on comments
2017-01-24 18:11:51 -08:00
BogdanandGitHub cdbd2f8507 Guess the filter value type (#1978)
* Guess the filter value type

* Require quotes

* Use column type
2017-01-24 14:35:39 -08:00
Maxime BeaucheminandGitHub e46ba2b4a4 Simplifying the viz interface (#2005) 2017-01-24 14:03:17 -08:00
vera-liuandGitHub 1c338ba742 [WIP] [explorev2] Refactor filter into FieldSet (#1981)
* [explorev2] Refactor filter into FieldSet

* Fixed tests

* Added tests

* Modifications based on comments
2017-01-24 13:32:40 -08:00
Maxime Beauchemin 2b7673ad5d Fixing pypi_push.sh 2017-01-24 11:42:49 -08:00
Maxime Beauchemin 2f27353015 v0.15.4 2017-01-24 11:33:11 -08:00
Wyndham BlantonandMaxime Beauchemin 1b8c3f420a avoid py3 error in setup.py (#2030)
print("GIT SHA: " + GIT_SHA)
TypeError: Can't convert 'NoneType' object to str implicitly
2017-01-24 11:31:05 -08:00
Emanuele CesenaandMaxime Beauchemin a3a070855c Use dist instead of src in mapbox (#2027)
I had issues compiling the src, I think it's because the syntax is different than the one used here?
With the dist it works fine.

I also saw there were other related issues in the past, so I'm suggesting to switch to the dist file.
2017-01-24 10:10:35 -08:00
Maxime Beauchemin e84c6393b8 Correcting docs to run npm build instead of prod 2017-01-24 08:36:19 -08:00
Maxime Beauchemin 7413dd9f4b v0.15.3 2017-01-24 08:10:56 -08:00
Alanna ScottandGitHub 9cbd667eb7 [explore-v2] Fix edit datasource link for druid datasources (#1982)
* only add imgSrc key if choices contain an imgSrc

* handle table and druid edit links for datasource drop down

* fix linting
2017-01-23 10:08:00 -08:00
alanmcruickshankandMaxime Beauchemin 37fb56c61c Week beginning Monday time grain for MySQL (#2014) 2017-01-22 16:51:49 -08:00
Maxime Beauchemin 404a94cadb [hotfix] fixing the hotfix 2017-01-19 17:04:12 -08:00
Maxime Beauchemin 0807a8d016 [hotfix] load selectors in render 2017-01-19 15:27:01 -08:00
Silas HandMaxime Beauchemin 4a9888157e Update INTHEWILD.md (#2000)
Adding Brilliant.org.
2017-01-19 09:44:51 -08:00
Jun JiangandMaxime Beauchemin 83fbdcceac Add Qunar to INTHEWILD (#2001) 2017-01-19 09:43:44 -08:00
robert-digitandMaxime Beauchemin b070ef5fdb added Digit to inthewild (#1997) 2017-01-18 08:22:40 -08:00
Maxime Beauchemin 7d380dcd14 Adding Clark.de and Yahoo to INTHEWILD 2017-01-17 09:16:15 -08:00
Maxime Beauchemin a15dbd992d Adding Clark.de to INTHEWILD 2017-01-17 09:15:37 -08:00
Noppanit CharassinvichaiandMaxime Beauchemin 52c5d235af Add analysisTypes to refresh druid (#1983) 2017-01-14 16:00:34 -08:00
BogdanandGitHub 495f6460a4 Add email functionality (#1914)
* Add email functionality

* Add email templates.

* Test notifications

* Move email to utils
2017-01-13 19:30:17 -08:00
Maxime BeaucheminandGitHub a96024d0e7 [explorev2] Fields can validate input and handle errors (#1980)
As a result here, TextField does its own validation and now casts
the values it sends to Int or Float if set to do so.
2017-01-13 16:25:37 -08:00
Maxime BeaucheminandGitHub 99b84d2909 Reverting CLI changes in #1713 (#1964) 2017-01-13 12:37:35 -08:00
BogdanandGitHub 24728b8b47 Permissions cleanup: remove none and duplicates. (#1967) 2017-01-13 09:55:45 -08:00
Jun JiangandMaxime Beauchemin 9750e49df8 Add the missing argument (#1969) 2017-01-13 08:38:08 -08:00
alanna scott bf31783d0c v0.15.2 2017-01-12 23:08:59 -08:00
Jun JiangandMaxime Beauchemin 87eacf88c3 fix timestamp error in table view (#1960) 2017-01-12 17:05:34 -08:00
vera-liuandGitHub 1dbfb99ead Leave metrics empty if not specified (#1965) 2017-01-12 15:03:46 -08:00
Maxime BeaucheminandGitHub ff4020ea73 [explorev2] using label in 'Visualization Type' Select instead of key (#1927)
* [explorev2] using label in 'Visualization Type' Select

* moved url related logic upstream in the caller
* moved option creation logic from render method to the constructor as
  it only needs to be executed once

* Refactoring out getOptions
2017-01-12 12:32:42 -08:00
Maxime BeaucheminandGitHub 0ce7fc18a8 Adding a way to see the git SHA from the website (#1956)
* Adding a way to see the git SHA from the website

* Fixing py3 bug
2017-01-12 12:32:06 -08:00
Maxime BeaucheminandGitHub 470a6e9d76 [explorev2] adding support for client side validators on controls (#1920)
* Adding support for client side validators on controls

* Applying validators to more fields

* Addressing comments
2017-01-12 09:21:17 -08:00
Alanna ScottandGitHub fc74fbeeaa [explore-v2] make control panel sections and fields more dense (#1954)
* make control panel sections and fields more dense

* remove Panel

* use <Panel> with className prop
2017-01-11 21:57:36 -08:00
BogdanandGitHub 9c6a5793b9 Fix none view_menues. (#1950) 2017-01-11 14:03:10 -08:00
vera-liuandGitHub 49b6b38741 Pass query instead of slice to Action buttons to prevent lagging query (#1948)
* Pass query instead of slice to Action buttons to prevent lagging query

* Delete beforeOpen and put DisplayQueryButton in pure component
2017-01-11 12:29:06 -08:00
vera-liuandGitHub a385ee9e97 Use POST in sqllab_viz instead of url params to avoid error with long queries (#1933)
* Use POST in sqllab_viz instead of url params to avoid error with long queries

* Delete error handling

* Fix returning statement
2017-01-11 11:58:16 -08:00
vera-liuandGitHub f0917c62f2 Add a Async Select that fetches options from given endpoint (#1909)
* Add a Async Select that fetches options from given endpoint

* update it statement
2017-01-11 10:31:30 -08:00
vera-liuandGitHub 94d20168da Change fields for dual_line to match with new SelectField structure (#1932) 2017-01-11 10:07:30 -08:00
Maxime BeaucheminandGitHub 2d866e3ffa [hotfix] fix the logging fix that broke the build (#1940)
* [hotfix] fix the logging fix that broke the build

* Fixing tests
2017-01-11 07:53:24 -08:00
Alanna ScottandGitHub 5d94d7067e [explore-v2] add edit link below datasource select (#1919)
* add edit link below datasource select

* add default prop
2017-01-10 21:13:25 -08:00
Jun JiangandMaxime Beauchemin 7323f4c2ab Make up the user link string (#1947)
prevent the user link from being escaped
2017-01-10 21:10:41 -08:00
Patrick Leo TardifandMaxime Beauchemin eca6dfef6a switch order of period compare and rolling periods (#1946) 2017-01-10 21:09:02 -08:00
vera-liuandGitHub 761462ef93 Revert "#views users for created dashboards on profile page" (#1943)
* Revert "#views users for created dashboards on profile page"

* Change the downversion after after-version

* Update models.py
2017-01-10 16:58:19 -08:00
mobcdiandMaxime Beauchemin 98e83255e6 Added extra details around setting up admin user (#1937)
after running create-admin the user will be prompted to provide extra details and set the admin password
2017-01-10 09:06:38 -08:00
Saleh HindiandMaxime Beauchemin cbf3562a6f Fix double scrollbar in pivot table (UI bug) (#1931) 2017-01-09 23:11:34 -08:00
Riccardo MagliocchettiandMaxime Beauchemin a2c41bbace viz: hotfix for saving in cache (#1922)
Fix cache set after c14c7ed update json serializer behaviour
but forget to update one call site.

While at it move payload serialization outside of catch all try
block since we want to see explosions if any.

Fix #1910
2017-01-09 16:27:01 -08:00
Maxime Beauchemin 2a12a3c702 [hotfix] logging is down 2017-01-09 15:40:07 -08:00
BogdanandGitHub 2ab6a411f4 Druid dashboard import/export. (#1930)
* Druid dashboard import

* Fix tests.

* Parse params with trailing commas

* Resolved issue with datasource is not in DB yet when slice perms are set

* Finish rebase

* Fix heads alembic problem.
2017-01-09 10:02:03 -08:00
Maxime Beauchemin 14ed10bdb0 Fixing docs generation 2017-01-08 07:48:02 -08:00
Maxime BeaucheminandGitHub 49e6fd5bfb Revert "Druid dashboard import/export. " (#1923) 2017-01-07 14:02:13 -08:00
BogdanandGitHub af872fa4d4 Druid dashboard import/export. (#1811)
* Druid dashboard import

* Fix tests.

* Parse params with trailing commas

* Resolved issue with datasource is not in DB yet when slice perms are set

* Finish rebase
2017-01-06 16:48:21 -08:00
vera-liuandGitHub cec4cf014c #views users for created dashboards on profile page (#1667)
* Add #views and #distinct users to created dashboard on profile page

* Added index on logs to speed up query

* Added #views and #users for slice table

* Add a views column to dashboards and slices, prepopulate
them with Log data

* Remove index on Log model

* Remove unused index

* Update 1b2c3f7c96f9_.py

fix multiple heads

* Exclude postgres in prepopulating views column
2017-01-06 16:31:20 -08:00
vera-liuandGitHub 783ad703d0 [hotfix] delete ipdb breakpoint (#1917) 2017-01-06 13:48:01 -08:00
Maxime BeaucheminandGitHub 222671675c [exploreV2] mapStateToProps for fields (#1882)
* Controls support for mapStateToProps

* Binding methods in the constructor

* Adressing comments

* Fixing tests
2017-01-06 12:38:44 -08:00
Maxime BeaucheminandGitHub 9a62d94630 [sqllab] bugfix visualizing a query with a semi-colon (#1869)
* [sqllab] bugfix visualizing a query with a semi-colon

* Fixing tests
2017-01-06 12:24:07 -08:00
vera-liuandGitHub c3edc6e24b [WIP] Add dual-axis line chart to viz (#1782)
* Add dual-axis line chart to viz
 - Add a new viz using two y axis for multi-chart in nvd3
 - Option to set metric and axis format for two y axis

* Resolve conflicts

* Fixed x axis and resized thumbnail

* Added example to __init__.py

* Change get_df to match with format
2017-01-06 10:30:27 -08:00
Maxime BeaucheminandGitHub 119b0c55e9 [explore] fix height in embed mode (#1898)
* [explore] fix height in embed mode

* Linting
2017-01-06 09:41:53 -08:00
Maxime BeaucheminandGitHub c14c7edc5e [explore] show the broken query when failing (#1871)
* Return query when failing

* Linting

* sjson -> simplejson
2017-01-05 10:00:39 -08:00
Riccardo MagliocchettiandMaxime Beauchemin e3b296c558 utils: teach our json serializer to handle more types (#1907)
Namely datetime.time and numpy.bool_

Refs: #1900
Refs: #1903
2017-01-05 09:56:07 -08:00
Maxime BeaucheminandGitHub c2d29fb54b Change ordering of fields when adding a table (#1899) 2017-01-04 17:36:37 -08:00
Maxime BeaucheminandGitHub 7aab8b0ae3 Simplifying the Fields (Controls) interface (#1868)
* Simplifying the Field interface / logic

* Moving ControlLabelWithTooltip where it belongs

* Progress

* Rename FieldClass->FieldType
2017-01-04 15:46:52 -08:00
andreamelloncelliandMaxime Beauchemin 861a3bd4ae docs: 8088 is the default port, no need to specify it (#1861)
* docs: 8088 is the default port, no need to specify it

* docs: hint to use a non default port
2017-01-04 14:43:56 -08:00
vera-liuandGitHub 9bc7ad9cd5 Do not use persistState for explorev2 (#1894)
* Do not use persistState for explorev2

* Change enhancerWithPersistState to enhancer and function name to initEnhancer
2017-01-03 20:23:43 -08:00
Maxime BeaucheminandGitHub a1e3fc1c23 [explorev2] giving more room for long textboxes (#1881) 2017-01-03 18:06:49 -08:00
Alanna ScottandGitHub 242869db3a [sql lab] only show single run query button (#1858)
* only show single run query button, allow async if possible

* only pass the needed props, rather than entire objects to the component

* add simple test

* fix linting
2017-01-03 17:20:30 -08:00
Maxime BeaucheminandGitHub 8924bb79e7 [explorev2] moving the "Time" section up to 2nd section (#1885)
This keeps the same section ordering as in v1.
2017-01-03 14:18:55 -08:00
David MoodieandMaxime Beauchemin a0d103dac3 Fix small typo (#1888) 2016-12-29 17:51:25 -08:00
Maxime Beauchemin d52b299df8 Updating CHANGELOG 2016-12-28 14:02:26 -08:00
Maxime Beauchemin 092432f04f v0.15.1 2016-12-28 13:29:17 -08:00
willgrovesandMaxime Beauchemin ea8e6634d6 read anon user role from config, remove reference to public role (#1878)
* read anon user role from configuration, add anon user role as 'Public' to testing configuration

* apply suggestions
2016-12-27 14:30:01 -08:00
Dongkyu HwangboandMaxime Beauchemin 3e6f90cf72 Upgrading pydruid version and adopt 'merge' flag during refresh_druid operation (#1879)
* Initial

* rewrite some line to make it short and setting merge variable temporarily

* rewrite commit author

* add emitted attribute

* Fix typo

* fix test error

* fix typo

* test added
2016-12-27 14:27:55 -08:00
Maxime BeaucheminandGitHub 16731056ed [sqllab] async queries - better error handling (#1853) 2016-12-19 22:33:55 -08:00
Maxime BeaucheminandGitHub 0712894353 Improving database logging by adding duration, referrer and post data (#1830)
* Improving logging with duration and referrer

* Handling case where referrer is None

* Providing log_this with its own session

* Attempting to fix tests

* Fixing tests
2016-12-19 22:32:50 -08:00
Riccardo MagliocchettiandMaxime Beauchemin 36fad803ed sqllab: don't hold database deletion because of query reference (#1863)
Let people delete the database even if there are sqllab queries
on that database. Instead delete them too.

Fix #1848
2016-12-18 17:12:23 -08:00
vera-liuandGitHub 6732f01cb7 Enable freeform-select with fetched column values for filter values (#1697)
* Enable freeform-select with fetched column values for filter values
 - db migration to add filter_select_enabled
 - add freeform-multi option for Selectfield
 - modify formatFilter() function on query to accomodate filter-select

* Fix js tests

* Fix codeclimate issue

* Changes based on comments

* Add test for filter endpoint

* Extract out renderFilterFormField function from render

* Fix landscape issues
2016-12-16 14:23:48 -08:00
szmate1618andMaxime Beauchemin bb04e6fcfa Use APP_ICON in template (#1855)
* use APP_ICON in template

* use APP_NAME in navbar template
2016-12-16 08:56:26 -08:00
Maxime BeaucheminandGitHub 007ee88d33 [explorev2] improving the scrolling/scrollbars placement (#1840) 2016-12-16 08:06:40 -08:00
vera-liuandGitHub 7a5bb94754 Stop ChartContainer from rendering twice on chartStatus change (#1828)
* Stop ChartContainer from rendering twice on chartStatus change

* Make spinner overlay and dim chart while laoding

* Added timeout to make render more stable on resize

* Put viz in state and call resize at browser size change

* add render after height change since resize depends on render called on the same object

* Change name of renderVis to renderVisOnChange

* Only call resize at height change, persist viz in state

* Call resize wihout render at window size change
2016-12-15 14:06:54 -08:00
vera-liuandGitHub e06a0cd89b Add force_ctas_schema to query model when enabled (#1825)
* Add force_ctas_schema to query model when enabled

* Add schema to temp_table_name

* Remove extra arg in create_table_as
2016-12-15 13:19:54 -08:00
Maxime BeaucheminandGitHub b6cba13293 [explorev2] enabling redux dev tools (#1842) 2016-12-15 08:54:02 -08:00
Maxime BeaucheminandGitHub d929bbfe30 [explorev2] making QueryAndSaveBtns disabled while running queries (#1841)
As I altered QueryAndSaveBtns to add the `disabled` prop
I also moved it to using react-boostrap
2016-12-15 08:53:33 -08:00
Maxime BeaucheminandGitHub bf67d64708 [explorev2] making Datasource an Viz controls not clearable (#1845)
* [explorev2] making Datasource an Viz controls not clearable

* Making choices default to empty list
2016-12-15 08:53:15 -08:00
BogdanandGitHub 92aa1a6124 Permissions refactoring, optimizations and unit testing. (#1798)
* Refactor and speed up superset init

* Add unit tests.

* Test fixes.

* More test updates.

* Fix read only perms

* Address comments.
2016-12-15 08:38:34 -05:00
Maxime BeaucheminandGitHub 733ab8014b [explorev2] using a loader to load the explorev2 specific css (#1843) 2016-12-14 18:31:50 -08:00
Alexander ManceviceandMaxime Beauchemin 6aaa49f0bf Change default gunicorn address (#1838)
Use `0.0.0.0` as default instead of `127.0.0.1`
2016-12-14 16:34:35 -08:00
vera-liuandGitHub 638f27c2df [sqllab] Fix sql expression bug with count distinct metrics (#1805)
* Return error message when metrics are not valid

* Fix bug with count distinct expression

* Fixed codeclimate issue
2016-12-14 16:09:22 -08:00
Maxime BeaucheminandGitHub 84a3b55912 [explorev2] remove unused file SqlClause.jsx (#1839) 2016-12-14 15:17:45 -08:00
Maxime BeaucheminandGitHub 552d46479b [explorev2] no bootstrap data, just metadata in exploreV2 (#1827)
json_data really just returns the *metadata* for the slice, where
get_json returns both the metadata and the data
2016-12-14 14:42:14 -08:00
vera-liuandGitHub fa9c066ffe Add email-to option in action buttons for dashboard and slice (#1705)
* Add email-to option in explore action buttons

* email to option for dashboard
2016-12-14 11:52:53 -08:00
vera-liuandGitHub e1e20b8757 Sort searched queries by recency (#1735)
* Sort searched queries by recency

* Fixed sqllab tests

* Add one more tr to QueryTable spec for pagination

* Change desc to asc as we reverse queries in component
2016-12-14 10:14:54 -08:00
Rossouw MinnaarandMaxime Beauchemin 2fb94a89e2 Add ADDITIONAL_MIDDLEWARE option to config (#1832)
Add documentation to explain ADDITIONAL_MIDDLEWARE
2016-12-14 09:39:59 -08:00
rleiandMaxime Beauchemin 7a9604a3c9 Workaround for slices "Not Found" issue in IE <= 11 (#1821)
This should fix issue #1339.

IE 11 and lower has a long standing issue: out-of-document element's
pathname has no leading '/'. See

https://connect.microsoft.com/IE/feedbackdetail/view/1002846/pathname-incorrect-for-out-of-document-elements

And Superset's Slice.jsonEndpoint() method relies on pathname() to build
JSON API URL for slices:

```javascript
      jsonEndpoint() {
        const parser = document.createElement('a');
        parser.href = data.json_endpoint;
        let endpoint = parser.pathname + this.querystring();
        endpoint += '&json=true';
        endpoint += '&force=' + this.force;
        return endpoint;
      },
```

`parser` above is exactly an out-of-document element. Therefore when
running in IE <= 11, Superset would build wrong JSON endpoint URLs,
hence the 404 errors for loading data for slices.

This commit adds a simple workaround when leading '/' is missing in the
value returned by pathname().
2016-12-14 08:41:03 -08:00
Maxime Beauchemin e099088012 [hotfix] fixing the build 2016-12-13 16:05:05 -08:00
Alanna ScottandGitHub 34e107e7d3 [explore-v2] add config option for explore v2 beta users, and send through v2 path (#1671)
* add config option for explore v2 beta users, and send through v2 path

* fix long lines

* use role rather than user ids in config

* add test

* simplify role check

* remove extra  line

* use different test user for v2 tests
2016-12-12 16:42:38 -08:00
Maxime Beauchemin 2254a4d0b4 v0.15.0 2016-12-12 11:30:11 -08:00
vera-liuandGitHub 9f7486f402 remove extra call to get_viz in explorev2 (#1812)
* Not working errors

* Remove update_explore endpoint, only update explore endpoints in reducer on query

* Change scroll to auto and make container reponse to height:

* Remove update_explore endpoint

* Remove can_update_explore perm
2016-12-12 10:58:07 -08:00
vera-liuandGitHub 699602d1c5 Add tooltips to RunAsync and CTAS button (#1792)
* Add tooltips to RunAsync and CTAS button

* Use button from components

* Phrasing
2016-12-12 10:13:01 -08:00
Daniel DarabosandMaxime Beauchemin 2993ff1d75 Add NVD3's bullet chart (#1775)
* Add NVD3's bullet chart.

* Add empty lines before nested function definitions.

* Add thumbnail for bullet chart.

* Add bullet chart to gallery.rst.

* Add "requiresTime: false", fix indentation.

* Avoid scaling bullet chart vertically.

* Use a default if no range is specified.

* Fix coloring of bullet chart.
2016-12-12 08:58:13 -08:00
Maxime Beauchemin afb3c24d5a Showing more fields in DatabaseView 2016-12-10 08:06:58 -08:00
vera-liuandGitHub 8ef730b5fe Added timer to explore v2 and share it with sqllab (#1802)
* Added timer to explore v2 and share it with sqllab

* Fixed js tests

* Add timer to initial load

* Make timer smaller

* nits
2016-12-09 13:39:53 -08:00
vera-liuandGitHub 866cfe5279 Add schema name to output column in query history (#1790)
* Add schema name to output column in query history

* Replace line break with dot between schema and table name
2016-12-09 11:03:31 -08:00
Maxime BeaucheminandGitHub 68c2eab6b9 [hotfix] handling 0% change in big number with trendline (#1801) 2016-12-08 12:59:35 -08:00
Maxime BeaucheminandGitHub aeda5bd260 [sqllab] config item for SQLLAB_DEFAULT_DBID (#1793) 2016-12-07 21:01:02 -08:00
vera-liuandGitHub a95cd71456 Add viz thumbnails to viz_type select (#1794)
* Add viz thumbnails to viz_type select

* Replace alt with value
2016-12-07 15:59:17 -08:00
Alanna ScottandGitHub 34d0dd9d6e adjust header nav links so they are all aligned on the base line (#1786) 2016-12-07 11:24:54 -08:00
Alanna ScottandMaxime Beauchemin 401d9afd54 [ui] update logo, favicon, and new primary color (#1781)
* update favicon image

* change primary color

* update logo in header

* update logo in readme
2016-12-06 20:59:44 -08:00
vera-liuandGitHub 74edb936a5 [WIP] Add http to copied url and move function to componentWillReceiveProps (#1780)
* Add http to copied url and move function to componentWillReceiveProps

* Added getText() to CopyToClipbaord to enable ajax calls for getting copy text

* Set ajax call to synchronous (document.execCommand only works in synchronous mode
2016-12-06 17:49:41 -08:00
Maxime BeaucheminandGitHub c1558578d7 [explorev2] Breaking down large files, fixing JS warnings (#1773)
* Breaking down large files, fixing JS warnings

* fix unit tests
2016-12-06 14:39:30 -08:00
BogdanandGitHub 3597fdb7f8 Filter table list based on the user permissions. (#1769)
* Filter table list based on the user permissions.

* Fix tests
2016-12-06 02:18:16 -05:00
vera-liuandGitHub 43f2a379a1 Make cell-click filter in table viz optional (#1762)
* Make cell-click filter in table viz optional
 - Added table_filter checkbox in table viz
 - If set to false, clicking on a cell in table will not apply filter to
   dashboard

* Fix codeclimate issue

* Change default to false
2016-12-05 17:17:31 -08:00
BogdanandGitHub 69702e3a19 Create users if not found. (#1753)
* Create users if not found.

* Do not fail is user is a duplicate.

* Make endpoint faster.
2016-12-05 20:03:40 -05:00
vera-liuandGitHub eb0655cf85 [sqllab] Fixed js error when results are not available (#1715)
* Fixed js error when results are not available

* Flush data and query in results when running new query, keeping columns

* add exception for columns

* Move setState from componentWillMount to componentWillReceiveProps

* Nit
2016-12-05 13:36:18 -08:00
vera-liuandGitHub d8864bc92b Enable overwrite sql in QueryHistory (#1731) 2016-12-05 11:34:42 -08:00
vera-liuandGitHub 89fc9d7c80 Make entire menuitem clickable for copy query (#1747) 2016-12-05 10:02:23 -08:00
vera-liuandGitHub 76aa9f7e10 [explorev2] fix textfield and druid bug (#1732)
* Fixed bug with textfield being empty

* Only return time grains for sqla table
2016-12-05 09:51:59 -08:00
Riccardo MagliocchettiandMaxime Beauchemin abd0974897 Fix superset cli for python3 (#1760)
* Fix superset cli for python3

dict.iteritems() has been removed since dict.items() returns an
iterable in python3. Shouldn't be a big deal for python2 to load
all the data into a list.

Fix #1756

* bin/superset: avoid some work when reading config

We don't need to unpack and then pack again a dictionary.
2016-12-04 07:40:56 -08:00
Maxime BeaucheminandGitHub c4e943a24f [sqllab] making 'click to retrieve results' a button (#1737) 2016-12-03 20:09:09 -08:00
Maxime BeaucheminandGitHub a3106bcb3d [bugfix] bignumber comparison wrong with neg values (#1743)
* [bugfix] bignumber comparison wrong with neg values

* Handling zero div
2016-12-03 20:05:43 -08:00
David DolphinandGitHub b045075a96 Sankey Tooltip fix (#1748) (#1750)
.layer{X,Y} gives viewport offset, moved to node offset using .offset{X,Y}
2016-12-02 22:14:39 -08:00
BogdanandGitHub 09d597f3ad Prevent duplicated view_menu perms (#1751) 2016-12-02 17:48:46 -05:00
BogdanandGitHub 9d4c3d83d0 Update role based on usernames not emails. (#1749) 2016-12-02 16:30:21 -05:00
Maxime BeaucheminandGitHub 95580a004f [explorev2] cosmetic, smaller size for input text (#1746) 2016-12-02 10:44:16 -08:00
Maxime BeaucheminandGitHub 723f90755e Fixing the sourcemap in dev mode (#1744) 2016-12-02 10:43:58 -08:00
Maxime BeaucheminandGitHub 324205f77a [sqllab] bugfix where a query has the same alias twice as output (#1734) 2016-12-01 19:53:23 -08:00
Benjamin YolkenandMaxime Beauchemin 0a40d8ce8f Rremove unused symlinks (#1736) 2016-12-01 19:52:46 -08:00
BogdanandGitHub 168a25239e State that npm should be between 3.9 and 4 2016-12-01 16:48:56 -08:00
Maxime BeaucheminandGitHub 7eef46e941 Adding links pointing to the new user profile page (#1704)
* Adding links pointing to the new user profile page

* Raising coverage

* Fixing tests
2016-12-01 15:21:18 -08:00
Benjamin YolkenandMaxime Beauchemin 50da4f8c07 Support running superset via pex (#1713)
* Support running superset via pex

* [superset] Update default port in superset/bin/superset

* Fix codeclimate line length issues

* Fix another line length issue, in config.py

* Add trivial utils test to increase test coverage

* Clean up runserver handling
2016-12-01 15:18:55 -08:00
vera-liuandGitHub 2d0ebeae1b [explorev2] Make chart container more responsive (#1724)
* Make chart container more responsive
 **Leave chart empty when theres error
 **Make all boolean fields auto-query chart when changed

* Replace forEach with some

* Added fields to autoQueryFields
2016-12-01 11:59:44 -08:00
BogdanandGitHub 1a16491971 Display full table name (schema + name) if possible. (#1728) 2016-12-01 14:57:39 -05:00
vera-liuandGitHub 7f4f250970 Redirects to login page if user not logged in at welcome page (#1723) 2016-11-30 17:41:02 -08:00
BogdanandGitHub 25acb78071 Pass schema to the select star query. (#1714) 2016-11-30 19:33:43 -05:00
BogdanandGitHub e822d5a1b7 Make edit / add / delete perms available to all users. (#1722)
* Make edit / add / delete perms available to all users.

* Add tests and restrict from editing the datasources.
2016-11-30 17:05:09 -05:00
vera-liuandGitHub 32fc0ff6d0 [Bugfix] autocomplete in sqleditor doesnot use newly loaded table columns (#1712) 2016-11-30 09:09:35 -08:00
Maxime Beauchemin 94dde075b3 v0.14.1 2016-11-29 15:57:05 -08:00
BogdanandGitHub 65e92327ab Druid hotfix. (#1710) 2016-11-29 18:11:59 -05:00
Maxime Beauchemin 0be02e67a5 Updating CHANGELOG 0.14.0 2016-11-29 15:10:21 -08:00
Maxime Beauchemin 7327c97e4c v0.14.0 2016-11-29 15:10:21 -08:00
vera-liuandGitHub 03b21dcf0a [explorev2] Bug fixes in Save Modal (#1707)
* Bug fixes in Save Modal
Issues solved:
 - Save button doesn't pass in gotodash
 - slice_name was passed in from store as original slice_name instead of
   new one in 'saveas' action
 - datasource_type wasn't passed in to defaultViz and defaultForm
   function

* Change css filename to exploreV2

* Moved out utils
2016-11-29 15:03:15 -08:00
BogdanandGitHub dc98c6739f Implement table name extraction. (#1598)
* Implement table name extraction tests.

* Address comments.

* Fix tests and reimplement the token processing.

* Exclude aliases.

* Clean up print statements and code.

* Reverse select test.

* Fix failing test.

* Test JOINs

* refactore as a class

* Check for permissions in SQL Lab.

* Implement permissions check for the datasources in sql_lab

* Address comments.
2016-11-29 15:43:36 -05:00
BogdanandGitHub fcb870728d Add per schema permissions. (#1698)
* Add per schema permissions.

* Address comments.

* Add schema_access perms to the alpha and admin

* Create permissions on addition databases and datasources.

* Remove hybrid_property. Linter complains.
2016-11-29 14:16:55 -05:00
vera-liuandGitHub 7919428a1e Vliu explorev2 bugs (#1701)
* Fixed table_name does not exist in druid

* Make Chart container scrollable for large chart

* Fixed bug of action buttons not clickable in heatmap

* Solve codeclimate issue

* Limit overflow to x
2016-11-29 10:31:11 -08:00
Alanna ScottandGitHub 3496a80f5a make stack trace more readable (#1672)
* make stack trace more readable

* remove ascii_art import

* remove ascii_art.py
2016-11-28 21:05:37 -08:00
Alanna ScottandGitHub 56b917a5c2 [explore-v2] fix errors on table view (#1675)
* render table name if in table view

* only render fave star and edit button if slice, not table

* fix error when table view

* use [table-name] - untitled format

* remove extra fave star
2016-11-28 21:04:43 -08:00
Alanna ScottandGitHub 18c43aaea2 make chart title larger, fix explore actions btn spacing (#1680) 2016-11-28 20:12:44 -08:00
Maxime BeaucheminandGitHub c43fc38f69 [druid] fix having clause (#1694) 2016-11-28 16:43:45 -08:00
BogdanandGitHub c07f0ab9c7 Config programmatic roles in the config.py (#1664)
* Config programmatic roles in the config.py,

* Add sql_lab.
2016-11-28 19:29:30 -05:00
Maxime BeaucheminandGitHub 1c429b27bc Fixing issue #1689 (#1696) 2016-11-28 16:25:09 -08:00
Maxime BeaucheminandGitHub b7019ad4f3 [sqllab] bugfix SouthPane doesn't update as expected (#1699)
* [sqllab] bugfix SouthPane doesn't update as expected

* Linting
2016-11-28 16:24:02 -08:00
the-dcruzandMaxime Beauchemin 84e8f741ae Add 'Save As' feature for dashboards (#1669)
* Add 'Save As' feature for dashboards

* Address code review comments
2016-11-28 08:34:14 -08:00
Nicolas NoéandMaxime Beauchemin e3a9b393c2 Missing merge_perm function. Fixes 1691. (#1692) 2016-11-28 08:27:41 -08:00
Riccardo MagliocchettiandMaxime Beauchemin 16aba517e4 Use smaller size for node max_old_space_size (#1679)
This makes the difference from being killed by OOM on a 8GB machine
or working.
2016-11-25 14:10:40 -08:00
Riccardo MagliocchettiandMaxime Beauchemin 205928e6df docs: fix python-redis link markup (#1683) 2016-11-25 14:09:14 -08:00
vera-liuandGitHub 39ce4aa049 Added filter in ControlPanelsContainer for explore V2 (#1647)
* Added filter in ControlPanelsContainer

* Move function for getting url params object to utils

* Fixed python test

* Move Filter to separate component

* Added specs and made changes based on comments

* Moved specs to right folder
2016-11-23 09:51:19 -08:00
Maxime BeaucheminandGitHub cef4a8296a [sqllab] adding a sql preprocessor for Presto (#1670)
* [sqllab] adding a sql preprocessor for Presto

* fixing tests
2016-11-22 21:24:38 -08:00
vera-liuandGitHub b370ef0229 Rerender chart without clicking query button for fields (#1658)
* For some fields we would like to re-render chart once field is
  * changed, saving user the time to click query button
  * Such fields are stored in an array in store, could add more fields in
  * the future
2016-11-22 17:08:52 -08:00
vera-liuandGitHub 6b80f5bb35 Get sections to render when switching datasource (#1660)
* Get sections to render when switching datasource
 - Move sectionsToRender in store and use is for defaultFormData
 - Change some SelectField to FreeFormSelect according to forms.py

* Solved the css not found problem in staging

* Fixed js tests
2016-11-22 14:55:32 -08:00
vera-liuandGitHub bdae570a69 Temperary fix of a slice bug (#1648) 2016-11-22 14:54:49 -08:00
vera-liuandGitHub face5245a9 Make explore container resize with browser window (#1608) 2016-11-22 14:36:41 -08:00
vera-liuandGitHub db1ed2a765 Calculate height dynamically using jquery for scrollable sqllab (#1611)
* Calculate height dynamically using jquery for scrollable sqllab components

* Move editorHeight to App.jsx

* Calculate height dynamically for query search
2016-11-22 13:21:07 -08:00
vera-liuandGitHub 10982dec3c Make QueryTable scrollable in Query Search page (#1656) 2016-11-22 11:19:23 -08:00
vera-liuandGitHub 6825e75681 Fixed bug with querylink passing sql object instead of string (#1659) 2016-11-22 11:09:32 -08:00
vera-liuandGitHub bd6a439e0b [QuerySearch] Add loading status to QuerySearch page (#1657)
* Add loading state to QuerySearch
 * Move ajax call to ComponentDidMount
 * Show loading image during ajax call
2016-11-21 13:18:18 -08:00
BogdanandGitHub c90dd4902f Programatically sync the role with user list. (#1619) 2016-11-21 13:06:43 -05:00
Robert KingstonandMaxime Beauchemin 868e5c45fe Redirect URL requests with "caravel" to "superset" (#1651)
* Redirect URL requests with "caravel" to "superset"

* Adding extra line break
2016-11-20 10:36:51 -08:00
Maxime BeaucheminandGitHub 7e1852ee88 User profile pages (favorites, created content, recent activity, security & access) (#1615)
* Super

* User profile page

* Fixing python style

* Python unit tests

* Touchups and js tests

* Addressing comments
2016-11-19 21:23:44 -08:00
Maxime BeaucheminandGitHub 5ae98bc7c9 Improving jinja2 security by using SandboxedEnvironment (#1632)
http://jinja.pocoo.org/docs/dev/sandbox/#sandbox
2016-11-18 17:14:30 -08:00
BogdanandGitHub 1624e7de7d Add all_tables endpoint to allow airpal / superset perm sync. (#1614) 2016-11-18 20:14:26 -05:00
BogdanandGitHub 7a98f84890 Admin / Alpha permission cleanup and fixes. (#1645) 2016-11-18 19:53:19 -05:00
Alanna ScottandGitHub 9b181280d4 include jQuery and bootstrap (#1642) 2016-11-18 16:22:46 -08:00
vera-liuandGitHub 38e94b9e43 Save modal component for explore v2 (#1612)
* Added specs for SaveModal

* Move datasource_id and datasource_name to form_data

* Add comments

* Deleted redundant fetchDashboard

* Replcae has_key for python3

* More react and less jquery

* Added alert for save slice

* Small changes based on comments

* Use react bootstrap
2016-11-18 14:56:02 -08:00
BogdanandGitHub dc25bc6f4d Fix alpha permission checks. (#1641) 2016-11-18 17:22:24 -05:00
vera-liuandGitHub f64a205603 Use Alert for visualization error (#1639) 2016-11-18 13:38:14 -08:00
vera-liuandGitHub a8480f5492 Added Alert for ControlPanel and ChartContainer (#1626)
* Added Alert for ControlPanel and ChartContainer

Done:
 - Add alert for Control Panel when fetch_datasource_metadata failes
 - Add alert for Chart Container when update_explore query fails

* Changed color to warning-yellow

* Solve linter issue

* Fixed indent and delete error_redirect
2016-11-18 11:17:06 -08:00
vera-liuandGitHub 0acf26b37c Fixed a bug with switching viz_type in exploreV2 (#1631)
- Issue: when switching from a viz_type outside nvd3 to a viz_type in
 nvd3, the Chart Container doesn't draw new graph
 - Fix: The reason was somehow the function inside nv.addGraph() wasn't
   called, extract the function outside and explicitly calling it solve
   the problem
2016-11-18 10:23:00 -08:00
Alanna ScottandGitHub 2c068a1a15 increase space between fieldsset rows (#1629) 2016-11-18 10:08:50 -08:00
Maxime BeaucheminandGitHub b961c95121 dim visualization during refresh (#1636) 2016-11-18 10:06:07 -08:00
Dody Suria WijayaandMaxime Beauchemin 82693211f0 Update faq.rst (#1637)
Related to #1557
2016-11-18 10:04:44 -08:00
the-dcruzandAlanna Scott e5467462cb Make nvd3 refresh smoother. (#1618) 2016-11-18 09:43:36 -08:00
Alanna ScottandGitHub ab5a4102cd [dashboard] give user feedback when there are unsaved changes (#1633)
* show alert and use dialog window if there are unsaved changes.

* add container class to alert
2016-11-18 09:37:01 -08:00
vera-liuandGitHub d5ef937b31 Fixed bugs with viz in exploreV2 (#1609)
* Fixed bugs with viz in exploreV2

Done:
 - fix typo in pie viz
 - add metrics/groupby to dist_bar viz
 - fix typo in heatmap viz
 - add big_number_total to viz
 - fixed problem with fetching columns for datasource
 - add sqlaTimeSeries to viz
 - change row_limit and limit from number to strings so that we
 don't need to parse integers in bootstrap data

* Fix python tests

* Added order_bars checkbox for dist_bar viz
2016-11-17 12:31:36 -08:00
Maxime BeaucheminandGitHub bce02e3f51 [security] improving the security scheme (#1587)
* [security] improving the security scheme

* Addressing comments

* improving docs

* Creating security module to organize things

* Moving CLI to its own module

* perms

* Materializung perms

* progrss

* Addressing comments, linting
2016-11-17 11:58:33 -08:00
Alanna ScottandGitHub aad9744d85 add new screenshots (#1589) 2016-11-17 11:45:40 -08:00
Alanna ScottandGitHub 506b781f3a [explore-v2] add fave star and edit button to chart header (#1623)
* add fave star to chart title

* add TooltipWrapper, and css for icons

* fix linting
2016-11-17 10:53:44 -08:00
Maxime BeaucheminandGitHub 267fd5b9bc [table viz] adding support for pagination (#1616)
* [table viz] adding support for pagination

* linting
2016-11-17 10:05:36 -08:00
Maxime BeaucheminandGitHub c362f2869e More Dashboard UX unit tests (#1603) 2016-11-17 10:05:08 -08:00
vera-liuandGitHub 4f7f437527 Vliu put datasource in store (#1610)
* Move datasource from global store object to form_data

* Moved datasource_id  and datasource_name to form_data

* Refetch defaultFormData when switching datasource

* Fixed js tests
2016-11-17 09:26:25 -08:00
Maxime BeaucheminandGitHub ab5da5ba28 [table viz] allow sorting on any column (#1601)
* [table viz] allow sorting on any column

* explorev2
2016-11-17 07:15:18 -08:00
vera-liuandGitHub 7531bb8942 Fixed dashboard controls for standalone bug (#1617) 2016-11-16 17:54:50 -08:00
vera-liuandGitHub 811ee8ccdc Deleted unused components in exploreV2 (#1613)
* Deleted unused components in exploreV2

* Deleted constants.js
2016-11-16 14:33:00 -08:00
vera-liuandGitHub 51cb485ce3 Add standalone to reactified dashboard page (#1596) 2016-11-16 13:22:14 -08:00
vera-liuandGitHub 83d08b8b8f Get query button working in explorev2 (#1581)
* Get query buttonw working in explorev2

 - Create new endpoint for updating explore viz
 - Send over new form_data when query button is pressed

* Added endpoint test

* Changes based on comments

* Added docstring for endpoint, and query spec

* Remove white space around docstring
2016-11-16 13:21:53 -08:00
Maxime Beauchemin ed3d44d591 Changelog entries for 0.13.2 2016-11-15 16:54:45 -08:00
Maxime Beauchemin 895fe23203 v0.13.2 2016-11-15 16:23:39 -08:00
André CruzandMaxime Beauchemin af04a560c8 Moved check to the correct place. (#1606) 2016-11-15 10:38:03 -08:00
Maxime Beauchemin 9124a17e86 Removing ascii_art.p from code coverage analysis 2016-11-15 08:50:08 -08:00
Maxime BeaucheminandGitHub 99b0d4c111 Fix MySql time grain issue (#1590)
* Fix MySql time grain issue

* linting

* linting
2016-11-14 21:35:10 -08:00
Maxime Beauchemin 84b98c234f Adding Greenplum to supported dbs 2016-11-14 15:46:24 -08:00
Maxime Beauchemin bcc1428ebf Updating CODECLIMATE_REPO_TOKEN to new location 2016-11-14 12:45:58 -08:00
vera-liuandGitHub 2133056c04 Added different Select Fields (#1583)
* Added different Select Fields
 - Switched FormGroup to react-select
 - Added multi and freeform to select, now it can take customized user
   input and insert it as options

* Fixed tests

* Small nit based on comments
2016-11-13 14:11:52 -08:00
Robert KingstonandMaxime Beauchemin 4155a9d7f9 Removing broken link to old docker image (#1591)
Need to re-add if/when Kochalex updates to using Superset
2016-11-12 19:32:39 -08:00
vera-liuandGitHub ed4825523c Fixed a bug with new dashboard (#1585) 2016-11-11 17:28:07 -08:00
Maxime Beauchemin fdbb2bbdab fixing the build 2016-11-11 16:24:57 -08:00
Mazdak BandMaxime Beauchemin c064d6d847 Correct part_fields variable name (#1586) 2016-11-11 16:20:04 -08:00
Maxime Beauchemin d33874bd3d [hotfix] postgres issue when slice_id is missing 2016-11-11 09:57:34 -08:00
Maxime BeaucheminandGitHub 96d32dd11f Improve Druid metadata fetching resilience (#1584) 2016-11-11 09:46:48 -08:00
Maxime Beauchemin d6bc354ff3 [hotfix] fix support for presto DATE and TIMESTAMP type 2016-11-11 00:39:20 +00:00
Maxime Beauchemin 7325a4fb4b [hotfix] table view not group by without orderby fails 2016-11-10 23:54:51 +00:00
Maxime Beauchemin 90f00c5b29 Minor documentation touchups 2016-11-10 11:27:56 -08:00
Maxime Beauchemin 8539c423ea v0.13.1 2016-11-10 10:01:31 -08:00
Maxime Beauchemin e9bfbfce84 Removing boat pic from README 2016-11-10 09:41:09 -08:00
Maxime Beauchemin 6e4f0664cb [hotfix] lint 2016-11-10 09:09:40 -08:00
Maxime Beauchemin 3c920c9d94 [hotfix] datatables import issues 2016-11-10 09:07:53 -08:00
Maxime BeaucheminandGitHub 15b67b2c6c [WiP] rename project from Caravel to Superset (#1576)
* Change in files

* Renamin files and folders

* cleaning up a single piece of lint

* Removing boat picture from docs

* add superset word mark

* Update rename note in docs

* Fixing images

* Pinning datatables

* Fixing issues with mapbox-gl

* Forgot to rename one file

* Linting

* v0.13.0

* adding pyyaml to dev-reqs
2016-11-09 23:08:22 -08:00
Maxime Beauchemin 973537fd9a [hotfix] resizing widgets 2016-11-09 14:52:39 -08:00
vera-liuandMaxime Beauchemin d70a74479d Make Sqllab a one-page app -- body not scrollable (#1551)
* Make Sqllab a one-page app -- body not scrollable

* Add scroll-container and scroll-content in main.css
2016-11-09 14:21:43 -08:00
Maxime BeaucheminandGitHub 946e4b750a Reactifying the dashboard (#1572) 2016-11-09 14:21:23 -08:00
vera-liuandMaxime Beauchemin 9789e3fb9b Bind data preview tabs to sql editor (#1573) 2016-11-09 14:21:06 -08:00
Maxime Beauchemin 6a15679d87 [hotfix] encode csv to utf-8 2016-11-09 11:46:15 -08:00
vera-liuandGitHub ad1cd5577c Pass values from global store to fields in exploreV2 (#1561)
* Link fields to store by firing setFormData action

* Moved onChange to ControlPanelsContainer, retrieve defaultFormData from fields in store

* Pass data from store to checkbox/select/text Field

* Fixed tests

* Changed reducer back to old Object.assign() style
2016-11-09 09:01:17 -08:00
Dirk KellyandMaxime Beauchemin 55668ca621 Link to database-urls in databaseadd view (#1480) 2016-11-09 08:49:01 -08:00
Alanna ScottandGitHub 0c221a28d1 add slice_name and table_name for title (#1567) 2016-11-09 08:48:26 -08:00
Maxime BeaucheminandGitHub a475551b23 [sqllab] bind alt+enter shortcut in AceEditor to run a query (#1554) 2016-11-09 08:42:13 -08:00
Riccardo MagliocchettiandMaxime Beauchemin bad7676414 Bump cryptography dependency to 1.5.3 (#1569)
As the 1.5 release branch builds with OpenSSL 1.1.x
2016-11-09 08:41:57 -08:00
Alanna ScottandGitHub 51c0470f0b [explore v2] populate dynamic select field options (#1543)
* pass field options in viz json

* move field options to fetch_datasource_metadata

* on control panels container mount, fetch datasource meta data and set dynamic field choices

* render options for select fields

* use component class rather than sic

* fix linting

* fix whitespace

* delete unused var

* only render fields once datasource meta has returned

* fix typo

* add datasources and fix column formatting

* fix tests

* never used function

* fix tests

* add test for fetch_datasource_metadata

* remove unneeded props
2016-11-08 15:55:49 -08:00
vera-liuandGitHub 4530047c76 Added action buttons to Chart Container of explore V2 (#1562) 2016-11-08 15:22:20 -08:00
Alanna ScottandGitHub 1bf83c3bf7 [explore-v2] render columns based on length of fieldSets array (#1559)
* render columns based on length of fieldSets array

* fix tests
2016-11-08 13:52:24 -08:00
vera-liuandGitHub bb6ab11001 Vliu link form data explore v2 (#1540)
* Put default form_data and viz in store

* Link fields to store by firing setFormData action

* Fixed tests for Container and actions

* Moved onChange to ControlPanelsContainer, retrieve defaultFormData from fields in store

* Deleted switch statement in reducer

* Removed resetFormData and refactored setFormData in reducers

* Added text for fields

* Changed test statements
2016-11-08 10:28:51 -08:00
Maxime BeaucheminandGitHub e4bd1884d3 [druid] adding support for dimensionspecs (#1545)
More about it here:
http://druid.io/docs/latest/querying/dimensionspecs.html

fixes https://github.com/airbnb/caravel/issues/1086
2016-11-07 17:05:41 -08:00
vera-liuandGitHub 4014a48f7d Added cache prop to ResultSet (#1552)
* Added cache prop to ResultSet for distiguishing query result and datapreview results

* small nit

* Only cache results.data locally
2016-11-07 15:28:46 -08:00
pinkythalli97andMaxime Beauchemin 97ded32415 Update linting instructions. (#1478)
flake8 changes tests lints only the test dir.
2016-11-06 08:26:14 -08:00
vera-liuandGitHub 593ac081f0 Added scroll bar and option to collapse for Sql Editor tool bar (#1532)
* Added scroll bar and option to collapse for Sql Editor tool bar
Done:
 - Added scroll-bar to Sql Editor tool bar
 - Added hide/expand tool bar option to dropdown menu of tab

* Add more margin to give space to scroll-bar

* Add scroll to right panel independently
2016-11-04 15:58:11 -07:00
vera-liuandGitHub 69f0a4e1cb Put data preview in south pane (#1486)
* Put data preview in south pane

Before: data preview of a selected table appears as a modal, but for
some cases users may want to view data and edit sql at the same time

After:
 - data preview of a selected table pops up a new tab in South Pane
 - data are saved to local state and flushed in global store in
   ResultSet component

* Moved dataPreviewId to table object

* Put back preview icon for fetching preview data

* Revert "Put back preview icon for fetching preview data"

This reverts commit b6f5dcfe64.

* Added option to retrieve preview results after refresh
2016-11-04 14:21:51 -07:00
Glen SchraderandMaxime Beauchemin 757e7de60c add oracle time_grains (#1544) 2016-11-04 09:52:06 -07:00
Maxime Beauchemin 1d7d5469a9 [hotfix] remove failing Druid test 2016-11-04 09:47:02 -07:00
vera-liuandGitHub 98afc3e590 Added setFilter(), containerID and getFilter() to (#1360)
mock slice object in exploreV2

 - filter_box in exploreV2 was broken because containerID and
   getFilter() were not defined in the mock of slice object
2016-11-03 21:14:08 -07:00
Maxime Beauchemin ea189790f1 [hotfix] druid dist_bar viz issues with non-str x values 2016-11-04 00:59:41 +00:00
BogdanandGitHub 62987077fa Read the user origin specification. (#1541) 2016-11-03 17:33:06 -07:00
Maxime Beauchemin 3b9f7cb3f1 [hotfix] groupby may be a set 2016-11-04 00:08:18 +00:00
vera-liuandGitHub 5882c7e344 Added jquery methods to ChartContainer to get world_map viz working in exploreV2 (#1443) 2016-11-03 15:50:36 -07:00
vera-liuandGitHub 77b6e2cd2e Get pivot table working in explore v2 (#1432)
* Use jquery calls in find() and html() of slice mock to
Get pivot_table viz working

* Borrowed code from caravel.js into error callback
2016-11-03 13:53:45 -07:00
Alanna ScottandGitHub 88b1f956c7 [explore-v2] handle field overrides (#1535)
* pass all props to *Field components

* s/fieldSetOverrides/fieldOverrides

* handle field overrides
2016-11-03 13:38:17 -07:00
Alanna ScottandGitHub d9b49ca2bc [exploreV2] remove /exploreV2 endpoint, add v2 bootstrap data to /explore endpoint (#1536)
* remove exploreV2 endpoint, add v2 bootstrap data to explore endpoint

* delete empty line

* move bootstrap data inside elif condition
2016-11-03 13:37:29 -07:00
Alanna ScottandGitHub 4156ad5a30 [explore-v2] control panel fixes (#1529)
* make fieldset conditions more clear

* make label required

* use render* pattern

* use slugify util for turning labels into ids

* use field rather than html

* don't need panel-title class here
2016-11-02 21:51:56 -07:00
BogdanandGitHub ae46561648 Support week_ending_saturday for Druid. (#1491)
* Support week_ending_saturday for Druid.

* Use period granularity

* Use ISO 8601 for period definitions.

* Fix tests

* More flexibility for the freeform choices.
2016-11-02 18:45:10 -07:00
Maxime BeaucheminandGitHub 1700a807e9 [sqllab] templating refactor (#1504)
* Add support for jinja templates in WHERE/HAVING clauses

* Generalizing

* bugfix
2016-11-02 13:22:07 -07:00
shashank singhandMaxime Beauchemin 0bab15b213 Update INTHEWILD.md (#1526)
Added Faasos
2016-11-02 13:21:16 -07:00
Alanna ScottandGitHub 38d3075554 [explore V2] render all control panels and fields dynamically for each vis type (#1493)
* export functions directly rather than object at the bottom

* move viztypes to controlPanelMappings, add fieldset rows and section data

* for each viz type, render a controlPanelsContainer, controlPanelSections, FieldSetRows, and FieldsSets

* add comments, move mappings to store

* organize store and add default sections

* render all the needed sections

* add tooltip to sections

* remove console log

* use only panel panel-default, not panel-body, no need the padding

* render fields for all fields in field set

* add the rest of the control panel sections and field overrides

* fix naming

* add fieldTypes array

* don't use default section

* pass only needed state via mapStateToProps

* fix code climate errors

* linting

* move field components to their own files

* render field sets as lists

* fix field components

* use SFC

* update modal trigger test to be more accurate

* add FieldSetRow test

* add test for controlpanelsContainer

* fix test

* make code climate happy

* add freeform select field
2016-11-02 12:57:44 -07:00
Maxime BeaucheminandGitHub 1b124bfb87 [druid] optimize Druid queries where possible (#1517)
* [druid] optimize Druid queries where possible

Trying to use timeseries, topn where possible, falling back on 2-phases
groupby only where needed

* Fixing py3 bug
2016-11-02 11:25:33 -07:00
plumbeoandMaxime Beauchemin cdf4dd0302 Add yearly and quarterly granularities to mysql engine backend (#1518) 2016-11-02 08:00:34 -07:00
vera-liuandGitHub a13bed2db6 Moved sqllab tests from core_tests to sqllab_tests (#1502)
* Moved sqllab tests from core_tests to sqllab_tests

* Minor changes based on comments
2016-11-01 20:48:31 -07:00
vera-liuandGitHub 26318f94fe Moved queriesArray from render() to local state (#1505)
* Moved queriesArray from render() to local state, so that QueriesArray
is only reloaded only during switching tabs or queries object is updated.

* Changed object comparison function to take length into consideration
2016-11-01 19:40:09 -07:00
BogdanandGitHub 769fb0820f Strip sql and remove ; for csv download. (#1508) 2016-11-01 15:03:42 -07:00
vera-liuandGitHub 52380534f3 Moved ajax call for fetching table metadata from SqlEditorLeftBar to actions (#1494) 2016-11-01 09:00:24 -07:00
Maxime BeaucheminandGitHub 2fd2526046 Add support for jinja templates in WHERE/HAVING clauses (#1442) 2016-11-01 08:16:06 -07:00
Maxime BeaucheminandGitHub 61509bbd44 [sqllab] surfacing more table metadata (indices, pk, fks) (#1485)
* Expose more table/column metadata

* [sqllab] expose more table metadata

* more tests
2016-10-31 23:52:37 -07:00
Maxime Beauchemin 76499afd8d [pep8] allowing 90 chars per line 2016-10-31 21:22:44 -07:00
Maxime BeaucheminandGitHub 4023f328f7 [sqllab] run only the part of the query that is selected (#1479) 2016-10-31 21:07:46 -07:00
BogdanandGitHub 4f49cb555b Celery uses separate db engine with NullPool. (#1492)
* Celery uses separate db engine with NullPool.

* Address comment
2016-10-31 16:02:12 -07:00
BogdanandGitHub 4dc959a3e4 Revert "NullPool for the celery worker." (#1488) 2016-10-31 10:02:07 -07:00
Ron BakerandMaxime Beauchemin 518fbf562c Minor Fixes (#1484)
* Fix typo accomodate

* Fix typo calender

* Fix typo dimentions
2016-10-30 16:55:56 -07:00
Maxime Beauchemin 49828d3d9d add step to pypi build/push 2016-10-29 21:11:16 -07:00
willgrovesandMaxime Beauchemin 248e6a7b05 fix name for postgresql (#1482) 2016-10-29 20:34:10 -07:00
BogdanandGitHub 5561e6b770 Fix celery module import in comments. (#1474) 2016-10-29 14:08:23 -07:00
Maxime BeaucheminandGitHub ab083b86f3 [sqllab] slide animations when adding/removing/toggling TableElement (#1472)
* [sqllab] slide animations when adding/removing/toggling TableElement

* Adressing comments
2016-10-29 07:48:17 -07:00
Maxime BeaucheminandGitHub 4bf525222a [sqllab] add autocomplete to AceEditor for table and column names (#1475)
* [sqllab] add autocomplete to AceEditor for table and column names

* addressing comment about getCompletions as a component method
2016-10-28 21:35:49 -07:00
vera-liuandGitHub 45efcb381c Added time filter to query search page (#1329)
* Added time filter to query search page

* Added start date

* Updated python endpoint test

* changed spec

* Added specs and tests

* Modified python/js tests and some function/file names
based on code review comments

* Resolved conflicts in DashboardSelect_spec and QuerySearch_spec

* Break python tests for separate functions, Move sql queries to setUp()

* Get around eslint error for spec

* Small changes based on comments
2016-10-28 14:12:53 -07:00
BogdanandGitHub 07a7736c71 NullPool for the celery worker. (#1465) 2016-10-28 14:01:24 -07:00
vera-liuandGitHub d2826ab7af Added checkbox in dist_bar viz to enable sorting of bars based on x axis labels (#1379)
* Added order bars option for dist_bar viz

* Make order_bar checkbox to cover half the colum and translate the description
2016-10-28 10:33:57 -07:00
Maxime Beauchemin 6ab769f382 CHANGELOG for 0.12.0 2016-10-28 09:48:28 -07:00
Maxime Beauchemin 3e1cd2bdca v0.12.0 2016-10-28 09:40:52 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 22784b7f06 run_specific_test: take the test as parameter (#1469)
Instead of hardcoding it, e.g.:
./run_specific_test.sh tests.core_tests:CoreTests.test_templated_sql_json
2016-10-28 09:24:51 -07:00
Maxime BeaucheminandGitHub c4922615eb [sqllab] add column sort feature to TableElement (#1467) 2016-10-27 18:42:04 -07:00
vera-liuandGitHub 7307ddad3c Highlight affected slices for filter change in dashboard view (#1439)
* Highlight affected slices for filter change in dashboard view
Done:
 - When user adds/deletes a filter in dashboard, affected slices will
   have their header highlighted for 2 seconds

* Modified highlight to a more subtle box shadow

* Added slice-cell class for highlight transition

* Changed class name to slice-cell-highlight
2016-10-26 21:22:10 -07:00
Maxime Beauchemin c7ba143d03 Fix typo in sqllab docs 2016-10-26 20:44:03 -07:00
Maxime BeaucheminandGitHub b24206387b [sqllab] optimizing React (#1438)
* [sqllab] optimizing React

* Addressing comments and making npm run dev faster
2016-10-26 17:41:46 -07:00
vera-liuandGitHub 64d196442f Added dashboard standalone page (#1429)
* Added dashboard standalone page

* Deleted additional template, parameterized dashboard.html for standalone

* Only wrap add-slice-container for standalone instead of including whole modal

* Use standalone_mode argument passed from both explore view and dashboard view
2016-10-26 15:24:05 -07:00
Maxime BeaucheminandGitHub 5944643da6 [sqllab] add support for Jinja templating (#1426)
* [sqllab] add support for Jinja templating

* Adressing comments

* Presto macros

* Progress

* Addressing coments
2016-10-26 11:09:27 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 8c5e495272 Add github issue template (#1436) 2016-10-26 11:03:05 -07:00
vera-liuandGitHub bb23685b9d Added average metric AVG() to default metrics (#1413)
* Added average metric AVG() to default metrics

* Added avg as a column for both SqlaTable and Druid
2016-10-26 09:19:28 -07:00
Maxime BeaucheminandGitHub 940659bc14 [sqllab] some frontend tests (#1400)
* [sqllab] some frontend tests

* linting

* Addressing comments

* Addressing unaddressed comments

* Touchups
2016-10-25 16:44:32 -07:00
BogdanandGitHub 7c5933732b Filter immune slices array stores strings. (#1402) 2016-10-25 11:08:08 -07:00
vera-liuandGitHub 89df2fcf76 Adjusted top margin of heatmap plot to get it working in V2 (#1361)
* Adjusted top margin of heatmap plot to get it working in V2

Problem:
The heatmap in V2 was shifted towards the top margin of slice
container, this was because in v2 slice name header was part of the
container body, while in v1 the header was separately defined in
explore.html template.

Solution:
To get heatmap properly shown in V2, we need to
take into account the height of the slice_name header. Adding to
margin_top will shift the plot in V1 too, but it won't make a big
difference to the look.

Ideally when we renovate slice container in future PR we would defined a
height for slice_name header and take it into account for all
visualization files.

* Added panel header height to margin_top for explore v2

* Use getBoundingClientRect to get header height

* Use slice-header for id of panel-title
2016-10-25 10:44:29 -07:00
Maxime Beauchemin 174a199c30 [hotfix] Query search is unreachable 2016-10-24 17:54:43 -07:00
vera-liuandGitHub 6f1e7c3016 Added url shortner for sharing query link (#1314)
* Added url shortner for sharing query link

* Move shortener outside CopyToClipboard and move ajax call to common.js

* transfer dbId to int to avoid failed prop
2016-10-24 17:49:23 -07:00
vera-liuandGitHub 9f81e23f8f Fixed css class not being used by slice container (#1359)
* Fixed css class not being used by slice container

* Delete require css line since it's not needed when className is specified
2016-10-24 16:26:30 -07:00
vera-liuandGitHub 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 BeaucheminandGitHub 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
BogdanandGitHub 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 BeaucheminandGitHub 93f8e7d8e9 Fix the js build running out of heap space (#1408) 2016-10-21 13:05:14 -07:00
Maxime BeaucheminandGitHub 3dea6e0da5 [sqllab] adding more descriptive labels to left panel (#1407) 2016-10-21 12:51:50 -07:00
Maxime BeaucheminandGitHub 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
BogdanandGitHub 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
BogdanandGitHub 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
ShengyaoQianandMaxime Beauchemin ece69fbb75 Fix migration for make creator owners (#1262) 2016-10-20 08:51:13 -07:00
Ryan YeandMaxime Beauchemin 458651fa3e Add parens for custom where and having (#1337) 2016-10-20 08:22:21 -07:00
Maxime BeaucheminandGitHub 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 BeaucheminandGitHub c255e89219 [sqllab] show partition metadata for Presto (#1342) 2016-10-19 09:17:08 -07:00
Nick BarnwellandMaxime Beauchemin 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 BeaucheminandGitHub 8f299448ea [bugfix] text as subquery fails with 'Series Limit' (#1347) 2016-10-17 18:36:49 -07:00
Maxime BeaucheminandGitHub ecb951bb74 Specify the metric to order by for Series Limit (#1351) 2016-10-17 18:34:26 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 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-liuandGitHub 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 BeaucheminandGitHub 7a3bcc227c [bugfix] NaN issue in Big Number viz (#1346) 2016-10-14 15:08:52 -07:00
Alanna ScottandGitHub 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 ScottandGitHub 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
ComputeThisandMaxime Beauchemin 65c744f242 Fix utc time calculation if provided datetime has tz info (#1287) 2016-10-13 21:03:20 -07:00
Maxime BeaucheminandGitHub 82bcadf7f8 Moving 'CSS TEmplates' to the Manage menu category (#1336) 2016-10-13 20:55:44 -07:00
BogdanandGitHub f0f8478922 Revert "Override the role with perms for give datasources." (#1345) 2016-10-13 19:21:21 -07:00
BogdanandGitHub 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
BogdanandGitHub 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-liuandGitHub 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 ScottandGitHub 451860afca remove #app styling (#1312) 2016-10-12 14:04:38 -07:00
Ryan YeandMaxime Beauchemin 4cf4e3805c Bugfix when there's only date filter in FilterBox (no groupby) (#1326) 2016-10-12 13:51:40 -07:00
Maxime BeaucheminandGitHub 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
BogdanandGitHub 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 ScottandGitHub 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
BogdanandGitHub 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'BrienandMaxime Beauchemin 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 BeaucheminandGitHub 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 DiordievandMaxime Beauchemin 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äkiandMaxime Beauchemin 1e6e144d24 Fixed viewing dashboards as anonymous (#1320) 2016-10-11 08:04:00 -07:00
Alanna ScottandGitHub 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-liuandGitHub f8e2ce6ff3 Change status color in tab to match with success (#1247) 2016-10-10 13:32:38 -07:00
BogdanandGitHub 19677438c2 Add cascade delete to the 1 to composite relationships. (#1295) 2016-10-09 19:06:22 -07:00
Alanna ScottandGitHub 9012b11101 add ImmutableMultiDict back to views.py (#1298) 2016-10-07 18:27:19 -07:00
Maxime BeaucheminandGitHub f70d301f0d Refactor the explore view (#1252)
* Refactor the explore view

* Fixing the tests

* Addressing comments
2016-10-07 16:24:39 -07:00
vera-liuandGitHub b7d1f78f5e Put formData in store (#1281)
* Put formData in store

* Reform actions and reducers

* Maded modifications based on comments:
2016-10-07 14:53:36 -07:00
Maxime BeaucheminandGitHub 3384e7598e Fixing explore actions & slice controller interactions (#1292)
* Fixing explore actions & slice controller interactions

* Addressing a comment
2016-10-07 14:06:26 -07:00
Alanna ScottandGitHub 382b8e85da [explore v2] add scrollbar to control panel container (#1284)
* add scroll bars to control panel container

* make query and save-btns block elements

* don't use react component, use custom styles

* move style to stylesheet
2016-10-07 11:57:05 -07:00
Maxime Beauchemin 0a3121c243 [doc] installation, load examples before init 2016-10-07 10:57:26 -07:00
vera-liuandMaxime Beauchemin ecfe1a2417 Updated eslinter for object rest spread (#1289) 2016-10-07 10:18:23 -07:00
Stefano OrdineandMaxime Beauchemin 609ae22bda less number of default workers. (#1206) 2016-10-07 10:16:41 -07:00
Francesco RiosaandBogdan 94578cb6a7 reduce chunk size for countries table (#1279)
One user reported the load of the "countries" table exceed
max_allowed_packet which in some configurations can be as low as 1MB.

Changing the chunk size from 500 to 50 has a small cost on the initial
load of the data (one additional second to the 17 taken previously)
while being more universally usable without changing the configuration
of the mysql server.
The new packet size is estimated to be about 500KB.

The committer has not checked other tables
2016-10-07 09:16:26 -07:00
Alanna Scottandvera-liu 8a5f050f6c [explore v2] fix explorev2 chart errors (#1277)
* fix prototypes and arrow function

* only show line chart if viz type is line

* split render lines function

* fix arrow-body linter
2016-10-06 13:07:27 -07:00
vera-liuandGitHub 5c5b393f2f Change userId, dbId to username and dbname (#1274) 2016-10-06 09:53:33 -07:00
Alanna ScottandGitHub f837733d85 [explorev2] chart and controls (#1251)
* create structure for new forked explore view (#1099)

* create structure for new forked explore view

* update component name

* add bootstrap data pattern

* remove console.log

* Created store and reducers (#1108)

* Created store and reducers

* Added spec

* Modifications based on comments

* do use bootstrap data for now

* don't deal with bootstrap data for now

* use victory as a base

* import fake line data, add fake panels, make chart fixed

* add fetch support

* get slice data from json endpoint

* render chart with slicejson

* update chart and label demo

* remove fetch config

* remove dummy control panels

* should be a func

* make TimeSeriesLineChart

* add a comment

* inner height for height

* don't need fetch yet

* trailing comma breaks in package json

* pass in viz data from props

* add style sheet

* set height on explore container

* add legend

* make chart responsive to window resize

* can't use head_css in template bc overrides head_css in basic

* fix linting

* break labelItem into own SFC, make legend SFC

* add propTypes and fix linter
2016-10-05 19:41:16 -07:00
vera-liuandGitHub 66b498de25 Added controls for Table Viz (#1253)
* Added controls for Table Viz

* Change control panel container to stateless

* Changed specs

* Resolved conflicts
2016-10-05 14:53:51 -07:00
vera-liuandMaxime Beauchemin 659bf6d7e8 Moved time column and grains to models.py (#1255) 2016-10-05 13:02:35 -07:00
Riccardo MagliocchettiandMaxime Beauchemin a8a16900e7 docs: add libsasl as system requirement on linux (#1257)
* docs: add libsasl as system requirement on linux

* docs: add openldap as system dependencies on linux too

Fix #1256
2016-10-05 13:00:38 -07:00
Riccardo MagliocchettiandMaxime Beauchemin e50b59e553 docs: document that gunicorn does not work on windows (#1258)
And suggest to use a supported platform instead.

Fix #1236
2016-10-05 12:14:09 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 231804e2b4 CHANGELOG: Add proper credit to tan31989 for #744 (#1259)
As he's the author of the patch
2016-10-05 12:13:38 -07:00
vera-liuandGitHub 421a86ade5 Some polish on query search (#1222)
* Some polish
- Changed query search icon
- CopyToClipboard in action bar

* Added dbId as linked-button, made modifications based on comments

* Fix duplicated import (linting)
2016-10-05 11:43:05 -07:00
Maxime Beauchemin 140a055e4e [docs] add line in installation instructions 2016-10-05 08:56:55 -07:00
Maxime Beauchemin 5bf86d91ec [docs] suggest to upgrade pip and setuptools 2016-10-04 21:59:40 -07:00
Maxime Beauchemin 715cdd98fb Changelog for 0.11.0 2016-10-04 21:39:33 -07:00
Maxime Beauchemin 7a01d9dbcb v0.11.0 2016-10-04 21:27:19 -07:00
BogdanandGitHub 58dfa436ee Do not shadow _ function. (#1254) 2016-10-04 18:30:15 -07:00
vera-liuandGitHub 8ab5e5015a Added access check + Druid in endpoint (#1224)
* Explore control panel - Chart control, TimeFilter, GroupBy, Filters (#1205)

* create structure for new forked explore view (#1099)

* create structure for new forked explore view

* update component name

* add bootstrap data pattern

* remove console.log

* Associate version to entry files (#1060)

* Associate version to entry files

* Modified path joins for configs

* Made changes based on comments

* Created store and reducers (#1108)

* Created store and reducers

* Added spec

* Modifications based on comments

* Explore control panel components: Chart control, Time filter, SQL,
GroupBy and Filters

* Modifications based on comments

* Added access check + Druid in endpoint

* pull grains to constants

* Switch explore.html to old version
2016-10-04 13:44:45 -07:00
vera-liuandMaxime Beauchemin a92190c3ae Fix npm linting error with version string (#1249) 2016-10-04 10:40:46 -07:00
Maxime Beauchemin 055fb6110f bump version to 0.10.0.dev0 2016-10-04 08:46:31 -07:00
Maxime BeaucheminandGitHub 19ab3e2fbd Adding a 'Misc Charts' dashboard as part of the examples (#1208)
This showcases some of the visualization types that were there only as
slices, not as part of any dashboards.
2016-10-04 08:18:17 -07:00
Alanna ScottandGitHub ae54ac9d58 [sql-lab] fix react warnings in dev (#1232)
* rename file to match class

* fix react warnings

* fix proptype typo

* add missing keys
2016-10-03 23:58:47 -07:00
Alanna ScottandGitHub e6e902e8df [explore-v2] setup, basic layout, control panels, v2 url (#1233)
* Explore control panel - Chart control, TimeFilter, GroupBy, Filters (#1205)

* create structure for new forked explore view (#1099)

* create structure for new forked explore view

* update component name

* add bootstrap data pattern

* remove console.log

* Associate version to entry files (#1060)

* Associate version to entry files

* Modified path joins for configs

* Made changes based on comments

* Created store and reducers (#1108)

* Created store and reducers

* Added spec

* Modifications based on comments

* Explore control panel components: Chart control, Time filter, SQL,
GroupBy and Filters

* Modifications based on comments

* accommodate old and new explore urls

* move bootstrap data up in scope

* fix code climate issues

* fix long lines

* fix syntax error
2016-10-03 22:47:39 -07:00
vera-liuandGitHub d8638dbcf3 revert devtool alert (#1238) 2016-10-03 16:21:33 -07:00
BogdanandGitHub 9795e4a532 [SQLLab] Fix updating the database state. (#1225) 2016-10-03 10:40:27 -07:00
BogdanandGitHub e11ef994bb [SQLLab] user server for the query limit check. (#1230) 2016-10-03 09:59:08 -07:00
Maxime BeaucheminandGitHub 472679bb38 [security] allow for requesting access when denied on a dashboard view (#1192)
* Request access on dashboard view

* Fixing the unit tests

* Refactored much in the tests
2016-10-02 18:03:19 -07:00
vera-liuandGitHub d066f8b726 Added alert to install redux devtool (#1228)
* Added alert to install redux devtool

* Change to warning
2016-09-30 15:02:52 -07:00
vera-liuandGitHub aa5bbe6149 Fixed error of inserializable json for druid test (#1213)
* Fixed error of inserializable json for druid test

* Fixed indentation
2016-09-29 09:12:43 -07:00
BogdanandGitHub 9c83b900ae Bring DB in sync with the models.py (#1172)
* Bring DB in sync with the models.py

* Make sure that migrations run on multiple dbs
2016-09-28 13:55:06 -07:00
Maxime Beauchemin f0289cef3a [minor] fixing the icons in the navbar
the top item on the navbar had no icon, and the content of the menu had
two items with the same icon
2016-09-28 10:44:55 -07:00
vera-liuandGitHub 96844c5c12 Share query (#1154)
* In the tab's dropdown menu under SQL editors, copy query link option is
added. A url with copied query will pop up a new editor tab.

* Made changes based on comments

* Move copy query button to right bottom of sql editor box

* Added in Alanna's code for copy url under menu item

* Fixed linting issues
2016-09-27 22:48:01 -07:00
Maxime Beauchemin 1a29163530 A few bugfixes 2016-09-27 10:20:20 -07:00
Maxime Beauchemin b67906cfe1 [hotfix] dashboard doesn't have filter_immune_slices pre-save 2016-09-26 17:11:03 -07:00
Maxime Beauchemin 153667505f [hotfix] slice page is broken 2016-09-26 16:51:11 -07:00
AveplatterandBogdan b6f4062874 Update countries.md (#1194) 2016-09-26 10:23:59 -07:00
prokhandMaxime Beauchemin 44be42c922 Remove duplicate code for property name of SqlaTable (#1190) 2016-09-25 08:41:44 -07:00
vera-liuandGitHub 5f6ef84c4e Vliu query search (#1187)
* Query search page under SQL Lab tab

* Modifications based on comments

* Hash

* Added spec and endpoint test with modifications
based on second round comments

* Changed permission menu in https://github.com/airbnb/caravel/pull/1095/files
2016-09-23 17:41:24 -07:00
vera-liuandGitHub 551c97112c Revert "Query Search Page" (#1186) 2016-09-23 16:28:21 -07:00
vera-liuandGitHub d5c5c0d6ac Query Search Page (#1122)
* Query search page under SQL Lab tab

* Modifications based on comments

* Hash

* Added spec and endpoint test with modifications
based on second round comments

* Changed permission menu in https://github.com/airbnb/caravel/pull/1095/files
2016-09-23 16:13:18 -07:00
Maxime Beauchemin 98902599ff [hotfix] issues around empty params 2016-09-23 15:07:33 -07:00
Maxime Beauchemin 7f3c205c46 [hotfix] reactable bump to 0.14.0 2016-09-23 14:28:13 -07:00
Maxime BeaucheminandGitHub 199342a2d3 Improving the docs around managing roles (#1183) 2016-09-23 13:22:56 -07:00
Maxime Beauchemin d397c0bbf8 [hotfix] FilterBox has issues with react-select version in prod 2016-09-23 13:20:39 -07:00
Maxime Beauchemin 6e5a93a6e1 [hotfix] result set always updates 2016-09-23 12:06:57 -07:00
BogdanandGitHub df89bec712 Infer types. Smart defaults for the visualize window. Basic implementation. (#1134)
* Implement smart suggestions for the visualize flow.

* Address JS comments.

* Implement caravel dataframe wrapper.
2016-09-23 11:14:38 -07:00
Maxime BeaucheminandGitHub fc921d63a1 Simplifying source_registry (#1180) 2016-09-22 21:19:03 -07:00
Maxime BeaucheminandGitHub aed473d0d2 [filtering] define combo of slice/fields unafected by filtering (#1179)
* [FilterBox] dashboard date range filtering

* [filtering] define combo of slice/fields unafected by filtering

* adding an entry to the docs

* Addressed comments
2016-09-22 20:12:48 -07:00
Maxime BeaucheminandGitHub 7115c5458d [FilterBox] dashboard date range filtering (#1165)
* [FilterBox] dashboard date range filtering

* Addressing comments
2016-09-22 14:30:39 -07:00
Maxime BeaucheminandGitHub 8cb0bea57c [sqllab] db migration - setting Database.allow_run_sync=True (#1174) 2016-09-22 14:09:00 -07:00
Dennis O'BrienandMaxime Beauchemin 1fa18922fa when adding a new database use Database.set_sqlalchemy_uri so that the password is stored encrypted. (#1177)
This fixes a regression I introduced with PR #1137
2016-09-22 14:08:42 -07:00
Maxime BeaucheminandBogdan 49cefc8b00 Improve the Test Connection error message (#1175) 2016-09-22 13:09:10 -07:00
BogdanandGitHub cbc70d3738 Implement permission request/approve flow. (#1095)
* Implement permission request/approve flow

* Address the comments.

* Refactor the code to support multiple datasources.

* Reformat the queries.
2016-09-22 09:53:14 -07:00
BogdanandMaxime Beauchemin b855e2f1a6 Add dashboard creator as owner of the dashboard (#1166)
* Add dashboard creator as owner of the dashboard

* Address comments.
2016-09-22 08:17:27 -07:00
Dennis O'BrienandMaxime Beauchemin bc7d0ffad2 Fix TEST CONNECTION on a newly added database. (#1168)
This addresses issue #1167
If the database name passed in the request is not found in the db, test using the sqlalchemy uri passed.
2016-09-22 08:17:05 -07:00
Alanna ScottandGitHub 2f2ed229fb [redux] move some redux utils to shared file (#1164)
* move some redux utils to shared file so they can be used in the new export view too

* enhancer is a func now
2016-09-21 21:54:03 -07:00
Maxime BeaucheminandGitHub b5875764ed [security] allowing to set static headers as configuration (#1126)
* [security] setting X-Frame-Options=SAMEORIGIN to prevent clickjacking

* Changing to a more flexible approach
2016-09-21 14:41:42 -07:00
Maxime BeaucheminandGitHub f1e80a8e1b Adding indexes to table metadata (#1160) 2016-09-21 14:40:33 -07:00
ShengyaoQianandMaxime Beauchemin 5a0e06e7a2 Generalize switch between different datasources (#1078)
* Generalize switch between different datasources.

* Fix previous migration since slice model changed

* Fix warm up cache and other small stuff

* Adding modules and datasources through config

* Replace tabs w/ spaces

* Fix other style issues

* Change add method for SliceModelView to pick the first non-empty ds

* Remove tests on slice add redirect

* Change way of db migration

* Fix styling

* Fix create slice

* Small fixes

* Fix code climate check

* Adding notes on how to create new datasource in CONTRIBUTING.md

* Fix last merge

* A commit just to trigger travis build again

* Add migration to merge two heads

* Fix codeclimate

* Simplify source_registry

* Fix codeclimate

* Remove all getter methods
2016-09-21 09:52:05 -07:00
Maxime BeaucheminandGitHub ed2feaf84b fix build with utf-8 connection string option to mysql (#1159) 2016-09-20 17:30:57 -07:00
Maxime Beauchemin a1338ed52e changing the travis build matrix for faster builds 2016-09-20 14:18:31 -07:00
Maxime Beauchemin d41463ba72 changing the tox build matrix ordering 2016-09-20 14:15:07 -07:00
Alanna ScottandGitHub 0e7af8d8a6 [explore] refactor slice action button group (#1074)
* pull explore actions button group into component

* use button component

* make sure we render all action buttons

* test that embed code is correct

* don't need before each

* generalize modal trigger for use with plain links or icons
2016-09-20 13:45:27 -07:00
Maxime BeaucheminandGitHub 32980a653c [big_number] fix subheader is missing (#1146) 2016-09-20 12:24:29 -07:00
Bob ZiuchkovskiandMaxime Beauchemin d15a212e64 Add support for Werkzeug ProxyFix middleware (#1150)
Add an ENABLE_PROXY_FIX config param.  When set to True, insert the Werkzeug ProxyFix
middleware.  This middleware extracts and applies the X-Forwarded-* headers that are
inserted by common proxies and load balancers.  Fixes #1139.
2016-09-20 12:24:15 -07:00
Maxime Beauchemin 1ce8acc154 Adding license to package.json 2016-09-19 23:48:16 -07:00
Maxime BeaucheminandGitHub e8088d5c9a More improvements to SQL Lab (#1104)
* Handling timeouts

* Fixing timer on non-utc server

* Allowing async with results

* [bugfix] database is not selected

* Making sure the session is up and running

* Cleaning up query results and query objects

* Picking a groupby and metric field on visualize flow

* Showing local time in query history

* Using pull-left pull-right instead of grid layout for table metdata

Long column name were looking weird and icons were wrapping oddly

* Linting

* Eliminating east buttons under the sql editor

* Sort database dropdown by name

* Linting

* Allowing non-SELECT statements to run

* Adding a db config

* Making sqla checkout check cross-db
2016-09-19 15:28:10 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 8081080709 log: be more robust against malformed input (#1127)
Refs #1113
2016-09-19 15:26:57 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 8c619e8383 models: fix slice creation (#1130)
Fix #1128
2016-09-19 15:23:15 -07:00
Maxime BeaucheminandGitHub 1c544c9845 Enable list with checkboxes only on Table->Columns view (#1138) 2016-09-19 15:22:37 -07:00
Dennis O'BrienandMaxime Beauchemin ca66ba4893 Fix initialization of Database sqlalchemy_uri and password (#1137)
* move initialization of Database sqlalchemy_uri and password from DatabaseView.pre_add to utils.get_or_create_main_db.
Unit tests for mysql and postgres include username and password in the SQLALCHEMY_DATABASE_URI.

* modified test_testconn to work with sqlalchemy uri with a username and password.
2016-09-19 15:14:00 -07:00
Riccardo MagliocchettiandMaxime Beauchemin afa1f0916b Make sql test connection work with saved Database instance (#694)
Fix #596
2016-09-17 12:32:41 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 69d37d8b2a Fix double escaping of dttm expressions (#744) (#1103)
If ddtm_expr is an expression with special characters then timestamp_grain escapes
the special characters already escaped.

Solution discussed with sqlalchemy upstream:
https://bitbucket.org/zzzeek/sqlalchemy/issues/3737/literal_column-given-a-specific-sql

Fix #617
2016-09-17 12:30:50 -07:00
Maxime BeaucheminandGitHub b62d7e3e8e [security] prevent XSS on FAB list views (#1125)
* [security] prevent XSS on FAB list views

* addressing comments
2016-09-16 16:25:42 -07:00
Maxime BeaucheminandGitHub e8f1baba43 [explore] giving more room to Slice title (#1118)
* [explore] giving more room to Slice title

* h2->h3 for slice title
2016-09-16 15:41:34 -07:00
vera-liuandGitHub ffe6fb849f Apply stretchMargin only to distribution bar (#1124)
* When the label size is too short, the constant for calculating
margin_size does not apply. Also nvd3 auto-adjust font-size of axis
labels.
Temporary solution here: Setting a fixed font-size on nvd3 axis labels
and a minimum threshold for label size.

* Only stretch margin for dist_bar
2016-09-16 15:39:50 -07:00
Maxime Beauchemin 3602d940eb [hotfix] lint 2016-09-16 09:47:21 -07:00
Maxime BeaucheminandGitHub 9389f89889 [welcome] removing calendar heatmap from welcome page (#1119) 2016-09-16 08:32:59 -07:00
Maxime BeaucheminandGitHub edcc2a11c6 Fixing druid culster perms to mirror sqla databases (#1123) 2016-09-16 08:32:37 -07:00
Maxime Beauchemin 2adc8a0274 [explore] clarifying force-refresh message 2016-09-16 08:20:06 -07:00
vera-liuandGitHub 2432c3155a Associate version to entry files (#1060)
* Associate version to entry files

* Modified path joins for configs

* Made changes based on comments
2016-09-15 17:20:18 -07:00
vera-liuandGitHub 2132f6715e When the label size is too short, the constant for calculating (#1120)
margin_size does not apply. Also nvd3 auto-adjust font-size of axis
labels.
Temporary solution here: Setting a fixed font-size on nvd3 axis labels
and a minimum threshold for label size.
2016-09-15 16:48:35 -07:00
Maxime Beauchemin e895807158 [bugfix] namespacing the mapbox css 2016-09-14 21:24:06 -07:00
Maxime BeaucheminandGitHub c87f34285a Animated GIFs on README (#1109) 2016-09-14 16:39:40 -07:00
Maxime BeaucheminandGitHub 17a317554c [bugfix] filter_immune_slices doesn't work (#1110) 2016-09-14 14:19:37 -07:00
BogdanandGitHub a871ee7858 Clean up the druid sync api. (#1101) 2016-09-13 17:30:36 -07:00
Ryan YeandMaxime Beauchemin 2e6b4b121f Time grain support for unix-timestamp columns (#1093)
* Add time grain support for time columnd in unix timestamp

* Fix datetime parsing for unix epoch

Since we've already converted unix epoch to datetime type,
we shouldn't specify 'unit' parameter in pandas.to_datetime

* Fix SQLite timestamp to datetime conversion
2016-09-13 11:58:47 -07:00
Maxime BeaucheminandGitHub df533d30fc [sql lab] specify schema name when generating vanila query (#1096)
* [sql lab] specify schema name when generating vanila query

* Fixing some react warnings
2016-09-12 23:09:18 -07:00
vera-liuandGitHub 1f761c61dd Single quote filter values with comma (#1084)
* Single quote filter values with comma

* refactor for codeclimate limite

* Added unit tests and tooltip
2016-09-12 13:41:05 -07:00
Maxime Beauchemin 9bf5620887 [sqllab] hide SqlEditor textarea to prevent flicker 2016-09-12 09:23:14 -07:00
Maxime BeaucheminandGitHub 1971bf653c Numerous improvements to SQL Lab (#1088)
* Improving the Visualize flow

* Fixed the timer

* CTAS

* Expiclit engine handling

* make tab full height, stretch for longer content (#1081)

* Better error handling for queries

* Hooked and fixed CSV export

* Linting

* Tying in the dttm in the viz flow

* Indicator showing when going offline

* Addressing comments, fixing the build

* Fixing unit tests
2016-09-11 07:39:07 -07:00
BogdanandGitHub c20ee0c129 Filter Druid Datasources by user permissions. (#1090) 2016-09-09 17:12:09 -07:00
Maxime BeaucheminandGitHub 6aadc6ec13 Simplifying the flow to add a table (#1068)
When specifying a table reference that can not be found, the system used
to still create the object, which would result in confusion and bad
error messages down the line. Now it will fail and not create the
object.

I also removed fields that are not necessary to worry about when
initially creating the table.
2016-09-09 16:39:11 -07:00
Alanna ScottandGitHub 8eb4cbf66e only show the reset state button if location param (#1075) 2016-09-08 13:54:00 -07:00
Alanna ScottandGitHub 0e0eaa0ccd [sql-lab] ui polish (#1079)
* we don't need tooltips on accordion menu, known ui pattern

* use consistent type sizes, bump body type down to 14px

* make editor same height as 3 selects

* table meta data accordion menu

- prevent default on accordion clicks
- always show table actions, they are more discoverable like that
- polish spacing/layout

* remove hover effect on table actions
2016-09-08 12:31:45 -07:00
BogdanandGitHub d454fb402b Add refresh druid datasources endpoint. (#1065) 2016-09-07 17:27:35 -07:00
vera-liuandGitHub 9ae231aeb8 adjust bottom margin according to label sizes on x-axis (#1029)
* adjust bottom margin according to label sizes on x-axis
Note: same as the method in heatmap.js

* add default bottom_margin to dropdown

* Change default to auto
2016-09-07 14:07:02 -07:00
BogdanandGitHub e783219a76 Add cache warmup endpoint (#1063)
* Refactor permissions in the views.py.

* Add get_viz to the slice.

* Add warm up cache endpoint.

* Resolve comments.
2016-09-06 13:58:09 -07:00
BogdanandGitHub 49e4f70f78 Disable complexity check. (#1064) 2016-09-06 12:11:56 -07:00
Maxime BeaucheminandGitHub 62c71110df Adding a ShrinkSql component (#1058) 2016-09-06 11:20:58 -07:00
BogdanandGitHub 544b3f350f Add codeclimate cli instructions. (#1043)
* Add codeclimate cli instructions.

Add the instructions for the users that want to mess around with the codeclimate cli.
It is useful to test locally the config changes.

Reviewers:
* @mistercrunch 
* @ascott 
* @vera-liu

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2016-09-02 18:43:28 -07:00
vera-liuandGitHub 9914901099 Change the font on axis (#1028)
A minor css change to make histogram viz look consistent
2016-09-02 10:01:13 -07:00
Maxime Beauchemin badac7379e [touchup] using input-sm on text fields in explore view 2016-09-01 14:59:28 -07:00
Maxime Beauchemin 7dd01cff6f [bugfix] btn timer contianer was left behind 2016-09-01 14:44:20 -07:00
Maxime BeaucheminandGitHub 4b77710016 [SQL Lab] Adding DB options for SQL LAb (#1054)
* [SQL Lab] Adding DB options for SQL LAb

each db can be exposed or not in SQL Lab
CTAS is an option
target_schema placeholder (not hooked yet, but would force the CTAS to
target a specific schema)

* Addressing comments
2016-09-01 14:21:46 -07:00
Maxime Beauchemin 1667d15f31 Reactivating coveralls.io 2016-08-31 23:55:20 -07:00
Chris WilliamsandBogdan bae21194c1 Chris/remove redirect from slice id endpoint (#1044)
* call explore() directly from '/caravel/slice/id/' endpoint instead of redirecting to it.

* pass slice_id instead of slice_params in 'caravel/slice/id/' endpoint to avoid logging errors. add fix for MultiDict bug

* address max's comments

* remove the /slice/id/ endpoint in preference of /datasource_type/datasource_id/slice_id/

* pep8
2016-08-31 16:45:03 -07:00
BogdanandGitHub 4f125eedb5 Add codeclimate labels. (#1050)
@mistercrunch, do you know how to change the text on the labels?
2016-08-31 13:30:36 -07:00
BogdanandGitHub f300ee1010 Small codeclimate fixes. (#1033) 2016-08-31 13:28:42 -07:00
BogdanandGitHub 85d03f5e18 Set up istanbul with codeclimate and travis. (#1046)
* Set up istanbul with codeclimate and travis.

* Put the codeclimate tocken inside .travis.yml
2016-08-31 09:27:07 -07:00
Maxime Beauchemin 3f889492f9 Fixing the build [that I broke] 2016-08-30 23:27:56 -07:00
maxime.beauchemin@airbnb.comandMaxime Beauchemin 508feb2bad [hotfix] getting presto on track 2016-08-31 00:11:00 +00:00
Maxime BeaucheminandGitHub 9f8eef498c [theme] a little bit less blue (#1024)
* [theme] a little bit less blue

* Addressing comments
2016-08-30 15:02:09 -07:00
Maxime BeaucheminandGitHub 561828c2f8 [SQL Lab] moving the db/schema/table select to the left (#1038) 2016-08-30 11:08:41 -07:00
Maxime Beauchemin fc1e63761c Adding celery_tests.py 2016-08-29 22:11:57 -07:00
Maxime BeaucheminandGitHub 38b8db8051 SQL Lab - A multi-tab SQL editor (#514)
* Carapal react mockup

This is really just a mock up written in React to try different
components. It could become scaffolding to build a prototype, or not.

* Merging in Alanna's theme tweaks for SQL lab

* Tweak the display of the alert message in navbar

* Sketching the middleware refresh for Queries

* Adjustments

* Implement timer sync.

* CTAS

* Refactor the queries to be stored as a dict. (#994)

* Download csv endpoint. (#992)

* CSV download engdpoint.

* Use lower case booleans.

* Replcate loop with the object lookup by key.

* First changes for the sync

* Address comments

* Fix query deletions. Update only the queries from the store.

* Sync queries using tmp_id.

* simplify

* Fix the tests in the carapal. (#1023)

* Sync queries using tmp_id.

* Fix the unit tests

* Bux fixes. Pass 2.

* Tweakin' & linting

* Adding alpha label to the SQL LAb navbar entry

* Fixing the python unit tests
2016-08-29 21:55:31 -07:00
Maxime BeaucheminandGitHub f17cfcbfa2 [filter box] making filter order matches the dropdown (#1007)
fixes https://github.com/airbnb/caravel/issues/1005
2016-08-26 15:22:43 -07:00
Maxime BeaucheminandGitHub 7eceb140be [bugfix] slice description makes charts overflow (#993) (#1010) 2016-08-26 15:21:16 -07:00
Maxime BeaucheminandGitHub b93f9ec598 [line chart] adding option for circle markers (#1006) 2016-08-26 11:45:46 -07:00
Alanna ScottandGitHub 36a6714e9e slice/explore header (#996)
* move slice header to partial, show datasource in slice title area if no slice is saved

* change partial name, and use same styling as slice title

* use jinja style guide spacing rule

* use [datasource] - untitled
2016-08-25 11:22:11 -07:00
Shashank ShekharandMaxime Beauchemin 30071eef09 Reduced number of ticks provided as hint to d3.ticks (#1012)
The number of the ticks suggested scales with 3 times as much
as the number of bins. This is unwanted since the number
of ticks is a hint to d3 as per (https://github.com/d3/d3-3.x-api-reference/blob/master/Quantitative-Scales.md#identity_ticks) The high number of suggesting ticks leads to a congested y-axis.
2016-08-25 08:18:22 -07:00
Alanna ScottandGitHub e85978a7ed add if enableAddSlice is truthy (#1015) 2016-08-25 00:03:46 -07:00
Alanna ScottandGitHub d1f43e3e28 [ui] a few unmerged rules (#1014)
* make btn default grey text on lighter bg

* get nav bar links working

* use same bg as airbnb body
2016-08-25 00:02:23 -07:00
Alanna ScottandGitHub de39923d06 [ui] design review changes - default/primary btn colors (#1008)
* change primary colors and inverse nav

* use primary small bans

* only use primary for query btn
2016-08-24 22:28:22 -07:00
Maxime BeaucheminandGitHub f800ff16c1 Making default labels visible (#999) 2016-08-23 14:03:10 -07:00
Alanna ScottandGitHub ef118dee6a move staging alert out of nav (#995) 2016-08-23 10:15:00 -07:00
Maxime BeaucheminandGitHub 2bc1674237 [bugfix] slice description makes charts overflow (#993) 2016-08-22 20:27:03 -07:00
Maxime Beauchemin 9445549aff [tweak] allowing markup widget to overflow 2016-08-22 18:06:57 -07:00
Maxime Beauchemin 95eb928beb [bugfix] markup image is missing in examples 2016-08-22 18:03:08 -07:00
Maxime BeaucheminandGitHub a8fd23dfa4 Linting JSX files (#941)
`.jsx` linting is now in-scope for the `npm run lint` command, and
I linted the base files and some of the viz, there's still quite a bit
of work there, but that's a first pass on it.
2016-08-22 13:21:30 -07:00
Maxime BeaucheminandGitHub 7f2805a3c5 [bugfix] fixing && linting the histogram viz (#987) 2016-08-19 18:03:27 -07:00
Maxime BeaucheminandGitHub a8715294b0 [bugfix] dashboard list doesn't populate in explore->saveas (#979) 2016-08-19 16:50:05 -07:00
Maxime BeaucheminandGitHub c7467f544c Documenting making your own build (#990) 2016-08-19 15:27:35 -07:00
Alanna ScottandGitHub 30ef8eba37 [ui] hack bootswatch/cosmo theme to get better tabs for sql-lab (and other things) (#975)
* start hacking cosmo theme and fixing small ui bugs on pages.

* straighten up welcome page

* fix tab styling

* remove paper theme files

* add tables to docs

* make alerts lighter
2016-08-18 23:49:31 -07:00
Maxime BeaucheminandGitHub 23a5463208 Hack around the "last migration doesn't stamp" Alembic bug (#967)
* Hack around the "last migration doesn't stamp" Alembic bug

This makes MySQL, Sqlite and Postgres work with a special hard coded
rule. I'm hoping Alembic fixes the root cause eventually.

* Running db upgrade twice in tests
2016-08-17 17:10:07 -07:00
Maxime BeaucheminandGitHub 84213ab8cd [line] growth vs factor option for 'Period Ratio' (#970)
* [line] growth vs factor option for 'Period Ratio'

* i18n
2016-08-17 12:26:10 -07:00
Alanna ScottandMaxime Beauchemin 379cf6cbd9 [ui] tweaks and improvements (#965)
* update panel headings, titles

* remove panel heading collapser

* style slice meta controls

* fix favstar on dashboard

* add space between heat map and list
2016-08-17 08:05:47 -07:00
Riccardo MagliocchettiandMaxime Beauchemin a029eaa451 docs: add a faq about mapbox api key (#968)
Also add it to sample config

Fix #952
2016-08-17 08:04:39 -07:00
Maxime Beauchemin ac512ef731 [hotfix] SQL endpoint JQUERY error
Fixes #935
2016-08-16 22:29:11 -07:00
vera-liuandMaxime Beauchemin 80974958bd vera_liu-deleted_dashboard_title_column_in_welcome_page (#951) 2016-08-16 21:52:57 -07:00
Riccardo MagliocchettiandMaxime Beauchemin cc058e5c9e viz: cache datetime.now() in query_obj (#955)
It shouldn't be a big deal, and it's pretty cheap on linux, but
still :)
2016-08-16 21:40:27 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 061d4f1ac7 Refine gamma experience (#883)
* gamma: filter the sqla tables the user has access to

Refs #359

* gamma: filter slices available for dashboards in DashboardModelView

Refs #359

* gamma: limit owners to dashboard to self

As we don't want to leak other users to unpriviliged users

Refs #359
2016-08-16 21:37:55 -07:00
Adam JonesandMaxime Beauchemin 88f4260777 Change default location for db and logs to ~/.caravel Fix #915 (#947) 2016-08-16 21:35:31 -07:00
Adam JonesandMaxime Beauchemin 66c2b84cb4 Add time grains for mssql. (#956) 2016-08-16 21:23:03 -07:00
Shashank ShekharandMaxime Beauchemin 348c09624f add amino to inthewild (#964) 2016-08-16 21:16:59 -07:00
Luca AlbertalliandMaxime Beauchemin 3e551e40a7 Update INTHEWILD.md (#960) 2016-08-16 11:46:00 -07:00
Maxime BeaucheminandGitHub c474581138 Fixing the rendering of the separator widget (#936) 2016-08-16 09:47:47 -07:00
Maxime Beauchemin 5646aa03d2 fixing the build 2016-08-15 23:47:33 -07:00
Maxime Beauchemin 6b5d6b4156 [typo] in setup.py 2016-08-15 23:38:05 -07:00
Maxime Beauchemin 4e1af9a2ca Adding codeclimate-test-reporter to dev-reqs.txt 2016-08-15 23:30:51 -07:00
Maxime Beauchemin 7d1bec11f9 Setting up python to allow 90 2016-08-14 17:24:59 -07:00
Maxime Beauchemin c60476eadd Attempting to setup coverage 2016-08-14 17:20:35 -07:00
Maxime Beauchemin d79220fb71 .codeclimate.yml on the right spot 2016-08-14 17:14:34 -07:00
Maxime Beauchemin a8131dda7a Attempting coverage integration with code climate 2016-08-14 17:08:11 -07:00
Maxime Beauchemin 10011d572a Adding Code Climate conf file 2016-08-14 16:57:46 -07:00
Krish MunotandMaxime Beauchemin d7d10d2847 rectify GitHub's name (#942) 2016-08-14 15:48:46 -07:00
Maxime Beauchemin aa01283774 [hotfix] adding react-select to package.json 2016-08-13 23:28:52 -07:00
Maxime BeaucheminandGitHub 1b9458dcf0 Adding config element for alert message in navbar (#938) 2016-08-12 23:40:24 -07:00
Maxime BeaucheminandGitHub e243a14c64 Refactor around how visualizations/*.js are required (#913)
* Refactor around how visualizations/*.js are required

* Reactifying FilterBox further

* Fixing the auto-refresh on filtering events

* Fixing preselected filters
2016-08-11 21:39:10 -07:00
Gustavo BrianandMaxime Beauchemin 198226a39f Fix date serialization (#873)
* [panoramix] -> [dashed]

* merge from caravel/master

* Updated from airbnb

* Cleaning

* Rebase with upstream/master

* merge from caravel/master

* Updated from airbnb

* Cleaning

* Manual rebase

* Last pending change to rebase

* Convert date to datetime before serialization.
Approach choosen: transform data before serialize and keep just one way to serialize

* Unit test created

* stupid error :(

* remove uneeded code and rename test

* Avoid double type checking
Test updated
note: isinstance(<datetime>, <date>) == True, check order changed

* Increase coverage

* Fix assertRaises
2016-08-10 23:13:59 -07:00
Chris WilliamsandMaxime Beauchemin 2bfb9cc7dd pass the standalone request arg in the /caravel/slices/<slice_id>/ endpoint redirect (#876)
* pass the  request arg in the /caravel/slices/<slice_id>/ endpoint.

remove unused import.

* test that a single slice redirects rather than testing them all. update standalone redirect logic for Javascript 'false' instead of Python False
2016-08-10 23:11:53 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 71bdabe1a1 dashboard: don't enable buttons that would fail (#881)
With gamma users saving the dashboard model would fail if they
are not owner of the dashboard.
So if that's not the case just disable the "Add a new slice to
the dashboard" and "Save the current positioning and CSS".

Refs #359
2016-08-10 23:10:59 -07:00
Maxime BeaucheminandGitHub 9b3b1f69df Fixes explore view when no slice is defined (#924) 2016-08-10 22:59:35 -07:00
Maxime BeaucheminandGitHub 3f21a898c9 Fixing some aspects of the theme (#923) 2016-08-10 22:40:59 -07:00
Maxime BeaucheminandGitHub bcbe08bd5c Fixing some aspects of the theme (#907) 2016-08-10 21:14:24 -07:00
Maxime Beauchemin 4247cabb17 [david-dm] Adding badge for tracking js deps versions 2016-08-10 20:32:23 -07:00
Maxime BeaucheminandGitHub 9a2c7740f0 [bugfix] nvd3's API changed and broke the range filter (#903)
* [bugfix] nvd3's API changed and broke the range filter

* Removing if that is not needed
2016-08-10 17:47:05 -07:00
Maxime BeaucheminandGitHub efdfa81f21 [bugfix] controls info bubble don't show up (#904) 2016-08-10 15:04:50 -07:00
Shashank ShekharandMaxime Beauchemin 15ee6d82e3 Histogram (#888)
* Add Histogram as a visualization

The css and js file use the histogram code from https://bl.ocks.org/mbostock/3048450.
THe viz.py extends from BaseViz to create chart data only for one histogram

* using d3.layout.histogram

* CSS updated

The new css has been used from the d3 chart http://bl.ocks.org/mbostock/1933560

* bars are visible

* added semicolons

* histogram from http://bl.ocks.org/mbostock/1933560

It takes as input no of bins. The histogram cycles through
a set of colors for different lengths of the bar. It places a
y axis coordinate on top or on the upper end of the bar
whichever is suitable.

* update style changes
2016-08-10 15:04:19 -07:00
Maxime BeaucheminandGitHub d15c557cd6 [bugfix] missing spinner in explore view (#914) 2016-08-10 15:02:13 -07:00
Maxime BeaucheminandGitHub 08d682501e [webpack] set up proper dev/prod environment (#916) 2016-08-10 15:02:01 -07:00
Riccardo MagliocchettiandMaxime Beauchemin baf22c3c60 docs: make it clear that some config keys really need to be changed (#912) 2016-08-10 08:15:19 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 5a937f1d0b docs: simplify cryptography installation on Windows (#909)
As suggested here https://github.com/airbnb/caravel/issues/717#issuecomment-232741865
and confirmed there
https://cryptography.io/en/latest/installation/#on-windows
cryptography now ships a statically linked openssl.

Still am not sure we want to make installation on Windows easier :)
2016-08-10 08:14:42 -07:00
BogdanandGitHub d6bb8c6935 Add per database permissions for the SQL Lab. (#885) 2016-08-09 17:53:23 -07:00
Riccardo MagliocchettiandMaxime Beauchemin b48101ca51 docs: recommend python3 and virtualenv (#901)
* docs: make it clear that python3 is the recommended version

* docs: recommend installing inside a virtualenv

And add a virtualenv primer.
2016-08-09 15:56:36 -07:00
BogdanandGitHub 572c6ee85e Update linting instructions. (#896)
flake8 changes tests lints only the test dir.
2016-08-09 09:54:59 -07:00
Alanna ScottandGitHub b0a1f07818 ui update (#879)
* caravel ui update

* make headings bold on /explore

* bump back pagination color
2016-08-08 10:55:03 -07:00
Kang TuandMaxime Beauchemin cb23362a5b handle UUID type field (some database like postgres support UUID type field) (#889) 2016-08-07 22:04:36 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 7c810dbd20 Miscellaneous style fixes spotted by landscape (#874) 2016-08-04 15:30:33 -07:00
Maxime BeaucheminandGitHub 82a8e6316f [bugfix] refresh dashboard widget button doesn't work (#878) 2016-08-03 15:44:10 -07:00
Maxime BeaucheminandGitHub aaef338539 Altering theme for more subtle alerts / labels / buttons (#798)
* Altering theme for more subtle alerts / labels / buttons

* Taking comments into account

* changed button-primary to more sober grey instead of brand-primary
* remove carousel from theme demo page and other useless items

* Forcing links to be gray
2016-08-01 23:09:25 -07:00
Riccardo MagliocchettiandMaxime Beauchemin e7ce38b486 Smarter redirect on slice creation (#691)
After ea8a7ec1ba creating a slice
started redirecting to druid datasource from sqlalchemy tables.
That's quite painful for sqlalchemy tables users.
Instead of hardcoding a choice just query the db, if we don't
have any druid datasource fallback to sqlalchemy tables.
Bonus points we remove hacky javascript and make the message
translatable.

While at it fix druid client test to not hardcode datasource id.
2016-08-01 23:06:19 -07:00
Karl LINandMaxime Beauchemin 862042bb49 add redis cache hint to docs (#861) 2016-08-01 23:04:26 -07:00
George KeandMaxime Beauchemin cbca740f9f use css transforms for dashboard grid cells (#848) 2016-08-01 23:02:54 -07:00
Riccardo MagliocchettiandMaxime Beauchemin e36bc2477a Use flask_babel in CONTRIBUTING (#869)
Instead of deprecated flask.ext.babelpkg
2016-08-01 23:02:41 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 55afda3a7e viz: use sort_values(inplace=True) instead of sort (#870) 2016-08-01 23:02:16 -07:00
Maxime BeaucheminandGitHub ee9141a31a New endpoint that receives SQL and returns data as JSON (#842)
* New endpoint that receives SQL and returns data as JSON

* Addressing comments
2016-07-29 22:39:33 -07:00
Hari Prasath RandMaxime Beauchemin 299e31fdff Added order_by_cols to as_list. Fix to issue #821 (#823) 2016-07-28 11:51:21 -07:00
George KeandMaxime Beauchemin f9427b9bfb Fix mapbox radius calculations being off when changing latitude (#824) 2016-07-28 11:50:39 -07:00
plumbeoandMaxime Beauchemin 88726773f1 Add an option to allow users to choose to what IP address the web server must bind to. Default to 0.0.0.0 (all IP addresses). (#826) 2016-07-28 11:49:43 -07:00
x4baseandMaxime Beauchemin 29e3dd404d Let the user decide the label type of pie charts (#819) 2016-07-28 11:39:29 -07:00
Alanna ScottandGitHub 1101de5ae4 [js linting] use airbnb eslint settings (#796)
* add airbnb eslint settings and lint all the code

* fix linting erros
2016-07-27 16:57:05 -07:00
x4baseandMaxime Beauchemin f43e5f18d5 Support showing the values on top of the bars (#777) 2016-07-25 20:38:26 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 2aea1943d6 Add Maieutical Labs / cloudschooling.it to Caravel users (#816) 2016-07-25 20:33:19 -07:00
Maxime BeaucheminandGitHub 7dd5b6716e Fixing serializing the lazy string (#818) 2016-07-25 20:15:57 -07:00
George KeandMaxime Beauchemin 2425b8f614 [presto] Smaller granularity units; fallback support for H:m:s (#731)
* [presto] Smaller granularity units; fallback support for H:m:s

* break lines >90

* cast to DATETIME instead
2016-07-22 12:10:05 -07:00
Maxime Beauchemin d11dd83c94 [docs] faq entry about server timeouts 2016-07-22 19:05:59 +00:00
George KeandMaxime Beauchemin 6731a287b5 Filter add/remove fix (#779) 2016-07-22 09:47:04 -07:00
aljonesandMaxime Beauchemin cf785b4d03 fix datasources foreign key size (#791) 2016-07-22 09:46:41 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 8b694ddd7a Fix caching in python3 (#806)
* caravel: fix visualization cache for python3

python3 wants bytes and not strings:

2016-07-22 10:36:09,474:INFO:root:Caching for the next 28800 seconds
2016-07-22 10:36:09,475:WARNING:root:Could not cache key 1eeb45f32960f0df0ad99a125bdaf199
2016-07-22 10:36:09,475:ERROR:root:'str' does not support the buffer interface
Traceback (most recent call last):
  File "/home/rm/caraveltest/venv/lib/python3.4/site-packages/caravel/viz.py", line 306, in get_json
    zlib.compress(self.json_dumps(payload)),
TypeError: 'str' does not support the buffer interface

Tested with memcached and pylibmc client library.

* docs: add note about using a proper memcached client library
2016-07-22 09:45:51 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 187149caeb Update documentation url (#805)
Fix #789
2016-07-22 08:31:43 -07:00
yxjamesandMaxime Beauchemin 19f5371787 In subquery use alias to do 'order by' (#795)
* in subqry add orderby metric to select

* add comment
2016-07-21 17:53:25 -07:00
Maxime BeaucheminandGitHub 9cdd289081 Set BoxPlotViz to is_timeseries=False (#802)
Fixes #786
2016-07-21 17:52:29 -07:00
Maxime BeaucheminandGitHub e813726afb Giving hingts that we support SparkSQL (#803) 2016-07-21 17:51:30 -07:00
Alanna ScottandGitHub a704d4ddee remove z-index from slice div and .nvtooltip (#793) 2016-07-21 12:30:40 -07:00
Maxime BeaucheminandGitHub fa0497de5e [eslint] changing to always-multiline on comma-dangle (#794) 2016-07-20 21:32:20 -07:00
Maxime Beauchemin 7bba9f73d0 [bugfix] fix dual alert messages where the second one is empty 2016-07-20 13:46:10 -07:00
Alanna ScottandGitHub 83d5ad216a update contributing.md with js testing details (#781) 2016-07-19 16:14:04 -07:00
smilin-desperadoandMaxime Beauchemin 7306b9caaa Fix small typo in message strings (#778) 2016-07-19 17:30:06 -04:00
Alanna ScottandGitHub 2b237f483f update-webpack-config to match babelrc (#776) 2016-07-15 10:36:22 -07:00
Alanna ScottandGitHub 24e85f52b4 get npm test working (#762) 2016-07-14 19:50:47 -07:00
Alanna ScottandGitHub 1fed498e33 [webpack] revert change to output extension (#760)
* revert change to output extension

* make dashboard use .js
2016-07-14 18:19:52 -07:00
Maxime BeaucheminandGitHub f034f2701e Allowing to define a default format string per-metric (#750) 2016-07-13 23:45:05 -04:00
Maxime BeaucheminandGitHub 8312f1c2aa Adding an option to make separators in dashboard (#699) 2016-07-13 23:40:52 -04:00
Maxime BeaucheminandGitHub 3522bf9b09 Fixes #721 - [mktime out of range] (#756) 2016-07-13 23:39:26 -04:00
vimxiangandMaxime Beauchemin 8a69235220 fix development env req (#761)
when i install for development, get an error:
error: Flask-SQLAlchemy 2.1 is installed but Flask-SQLAlchemy==2.0 is required by set(['flask-appbuilder'])
2016-07-13 23:29:41 -04:00
Maxime Beauchemin b295436bff [bugfix] refresh button on dashboard widget dones't work 2016-07-13 15:07:16 -04:00
x4baseandMaxime Beauchemin 8cfe9e96b8 Preselect filters (#752)
* Preselect filters in filter boxes according to the get parameters

* Use the JSX version in dashboard.html

* Use default parameters in ES6 and fix the indent
2016-07-13 11:23:43 -04:00
alanmcruickshankandMaxime Beauchemin 65efe53bfc Adding in Second and Minute time grains for MySQL (#696)
* Added documentation of the health check endpoint

* Adding Minute and Second time grains for MySQL

* Fixed Migration script so that it doesn't break when new fields added to the models for Dashboards or Slices (using declarative base)

* Revert "Fixed Migration script so that it doesn't break when new fields added to the models for Dashboards or Slices (using declarative base)"

This reverts commit 0b6dd696d6.

* Code Cleanliness
2016-07-13 11:20:40 -04:00
x4baseandMaxime Beauchemin 09c95fb28a Fix the mapbox for Druid (#725) 2016-07-13 10:58:59 -04:00
Riccardo MagliocchettiandMaxime Beauchemin 212284cbd4 viz: make sunburst work again (#728)
By using a different method for renaming the metric columns
Thanks to @simobasso for the help!

Fix #673
2016-07-13 10:42:00 -04:00
Maxime BeaucheminandGitHub 082645d312 [bugfix] html points to dashboard.entry.js instead of jsx (#749) 2016-07-13 00:03:38 -04:00
Alanna ScottandGitHub 18b8e6fa58 make show columns explicit, don't show password column (#748) 2016-07-11 18:15:33 -07:00
Maxime Beauchemin 9d7c05a015 [hotfix] fix py3 compatibility broken by basestring 2016-07-11 17:36:12 -04:00
x4baseandMaxime Beauchemin 3c92ba9bd5 Fix bugs in the world map and deal with edge cases (#722)
* Fix bugs in the world map and deal with edge cases

* Ignore countries labeled XXX
2016-07-10 19:38:12 -07:00
George KeandMaxime Beauchemin 00970d6b99 Fix erroneous options for default slices (#730) 2016-07-10 19:37:02 -07:00
Van TienandMaxime Beauchemin 979782d1cf Fix path for windows platfrom (#742)
* At platform specific path for Windows

* At platform specific path for Windows
2016-07-10 19:20:21 -07:00
George KeandGitHub 04f3e3bc8f "Add Slices" modal on dashboard page (#678)
* Add slice modal

* use datatables, filter by slice creator

* tests & landscaping

* code review + react-bootstrap-table + modularity
2016-07-07 21:40:33 -07:00
Alanna ScottandGitHub afff78868f remove console.log (#729) 2016-07-07 19:04:36 -07:00
Alanna ScottandGitHub 8020464602 [explore] convert query and save btns to react (#690)
* start to convert query and save btns to react

* more explore.jsx to explore/
2016-07-07 18:39:43 -07:00
Maxime BeaucheminandGitHub 8135c240dc Revert "Binding key Q to the running the query in explore view" (#713) 2016-07-01 16:36:06 -07:00
Maxime BeaucheminandGitHub 19983147a3 Binding key Q to the running the query in explore view (#685) 2016-07-01 15:28:40 -07:00
x4baseandMaxime Beauchemin d5b22dd86e Filter empty strings or nulls, and add more operators (#704)
* Filter empty strings or nulls, and add more operators

* Encapsulate strings for translation
2016-07-01 14:45:04 -07:00
Maxime BeaucheminandGitHub 917bc984eb Make DruidDatasource.version_higher support funky version strings (#706) 2016-07-01 14:44:25 -07:00
x4baseandMaxime Beauchemin 1a952a4961 Dashboards can only be deleted by their owners (#701) 2016-07-01 14:33:07 -07:00
lucky2youandMaxime Beauchemin ee00aa6522 some Chinese simplified translation work (#710) 2016-07-01 14:31:22 -07:00
Maxime Beauchemin 2e0e6e3342 [quickfix] support isNaN aggregates in Table viz 2016-06-30 17:34:58 -07:00
Maxime Beauchemin d4641e4457 [docs] FAQ how do I create my own viz? 2016-06-30 17:33:51 -07:00
Maxime Beauchemin 8b95d17b7b [quickfix] embeded view missing some dependencies 2016-06-30 10:34:53 -07:00
Maxime Beauchemin f407bd45fd [quickfix] fix broken CRUD column header links 2016-06-29 22:20:25 -07:00
Maxime Beauchemin fa65888590 Screenshot makeover in README 2016-06-29 11:00:44 -07:00
Maxime Beauchemin dbb9356d7e Changelog updates for 0.10.0 2016-06-28 16:57:44 -07:00
yxjamesandMaxime Beauchemin 1ac2fccd2a fix small issue of dttm PR (#688) 2016-06-28 16:51:26 -07:00
Maxime Beauchemin 57bffe099f v0.10.0 2016-06-28 16:42:33 -07:00
Maxime Beauchemin a016d181d7 [hotfix] mistakes slipped in 2016-06-28 12:58:09 -07:00
Maxime Beauchemin 759c8d5377 [hotfix] fixing minor control issues
* View Query button is disabled
* Missing tooltip on View Query
2016-06-28 12:29:51 -07:00
Maxime BeaucheminandGitHub bd68378d9c Saving slices and adding them to dashboards directly from explore view (#680)
* Saving slices from explore view

* Addressing comments
2016-06-28 10:31:36 -07:00
yxjamesandMaxime Beauchemin 7a7f61a296 datetime format and database expression on column level (#652)
* time format minor features added

* add description for datetime format input

* db version bug walkaround

* removed unecessary comments and fixed minor bug

* fixed code style

* minor fix

* fixed missing time format column in DruidDatasource

* Update models.py

Minor style fix

* Revert "Update models.py"

This reverts commit 6897c388e0.

* removed timestamp_format from druid and removed try catch in migration

* Using spaces, not tabs

* get the most updated migration and add the migration on the head of it

* remove vscode setting file

* use colunm based dttm_format

* modify dttm_converter

* modify datetime viz

* added comments and documents

* fixed some description and removed unnecessary import

* fix migration head

* minor style

* minor style

* deleted empty lines

* delete print statement

* add epoch converter

* error fixed

* fixed epoch parsing issue

* delete unnecessary lines

* fixed typo

* fix minor error

* fix styling issues

* fix styling error

* fixed typo

* support epoch_ms and did some refactoring

* fixed styling error

* fixed styling error

* add one more dataset to test dttm_format and db_expr

* add more slices

* styling

* specified String() lenght
2016-06-27 21:33:44 -07:00
Maxime Beauchemin 3e742c74bb [hotfix] many tooltips were not quoted properly 2016-06-27 20:44:32 -07:00
Maxime BeaucheminandGitHub 6a34b729e9 Adapting Babel to new FAB version, regenerating translations (#684) 2016-06-27 20:10:40 -07:00
Maxime Beauchemin 4191b75966 Adding padding to markup widget 2016-06-26 13:13:16 -07:00
Maxime BeaucheminandGitHub d5b8414fde Showing only dashboards on welcome page (#676) 2016-06-24 18:42:55 -07:00
George KeandGitHub 57ebb2bacf Map visualization (#650)
* simple mapbox viz

use react-map-gl

superclustering of long/lat points

Added hook for map style, huge performance boost from bounding box fix, added count text on clusters

variable gradient size based on metric count

Ability to aggregate over any point property

This needed a change in the supercluster npm module, a PR was placed here:
https://github.com/mapbox/supercluster/pull/12

Aggregator function option in explore, tweaked visual defaults

better radius size management

clustering radius, point metric/unit options

scale cluster labels that don't fit, non-numeric labels for points

Minor fixes, label field affects points, text changes

serve mapbox apikey for slice

global opacity, viewport saves (hacky), bug in point labels

fixing mapbox-gl dependency

mapbox_api_key in config

expose row_limit, fix minor bugs

Add renderWhileDragging flag, groupby. Only show numerical columns for point radius

Implicitly group by lng/lat columns and error when label doesn't match groupby

'Fix' radius in miles problem, still some jankiness

derived fields cannot be typed as of now -> reverting numerical number change

better grouping error checking, expose count(*) for labelling

Custom colour for clusters/points + smart text colouring

Fixed bad positioning and overflow in explore view + small bugs + added thumbnail

* landscaping & eslint & use izip

* landscapin'

* address js code review
2016-06-24 14:16:51 -07:00
Maxime BeaucheminandGitHub 914f23432f Make text in sunburst path more readable (#675) 2016-06-24 12:28:13 -07:00
Maxime BeaucheminandGitHub 967b2ffeb0 Only creating perms for restricted metrics (#655)
* Only creating perms for restricted metrics

* Adding post_update hooks for is_restricted
2016-06-24 08:47:43 -07:00
Maxime BeaucheminandGitHub 131372740e Adding orderby to Table 'not grouped by' and fixing metrics ordering (#669) 2016-06-23 22:43:52 -07:00
Maxime BeaucheminandGitHub 51024b5f8a Reintroducing showControls as an option (#672) 2016-06-23 22:43:40 -07:00
Maxime Beauchemin 141dc12e44 Adding quarter time grain for Presto 2016-06-23 16:59:10 -07:00
Maxime BeaucheminandGitHub e230d9db4a Don't force formatting when using "Period Ratio" (#668)
At the moment, when using the "Period Ratio" option, a percentage
formatting is forced on the Y Axis. This code pre-dates the `Y Axis
Format` option.

People may want to see a growth rate, in which case the current `.3p`
isn't what they want, or they may want only 2 digits of precision or
whatever else. This PR allows that.
2016-06-23 15:28:42 -07:00
Maxime BeaucheminandGitHub 4a8e62b439 Fixing the examples's dashboard positioning (#667) 2016-06-23 15:28:23 -07:00
Maxime BeaucheminandGitHub f949b88ebd A cleaner right side of the navbar with a Github link (#666) 2016-06-23 15:28:07 -07:00
x4baseandMaxime Beauchemin ab71ee4f93 Make the headers of tables and pivot tables fixed (#651) 2016-06-22 16:16:27 -07:00
Maxime BeaucheminandGitHub 8ebe074954 [bugfix] filter widgets to apply on applicable Slices (#658)
Also fixed a white on white issue on hover
2016-06-22 16:14:07 -07:00
Maxime Beauchemin f25e37579d [quickfix] showControls on area chart 2016-06-22 14:21:09 -07:00
Maxime Beauchemin 3ef79bbaf3 [quickfix] removing controls in Area chart to leave more room for the legend 2016-06-22 14:00:35 -07:00
J Phani MaheshandMaxime Beauchemin 73601e4acb docs: correct name of local config module in comments (#653) 2016-06-22 07:55:09 -07:00
Maxime Beauchemin a9fd2271dd [hotfix] caching and list ordering related bugs 2016-06-21 23:44:22 +00:00
Maxime Beauchemin 7c2d485de0 [quickfix] removing year detail in smart_date 2016-06-21 11:20:11 -07:00
kkalyanandMaxime Beauchemin 30da408ace Druid Intervals Issues prevents metadata pull (#526)
* Druid Intervals Issues

* fetching druid version

* fixes

* space

* version fix

* landscape issues
2016-06-21 10:03:56 -07:00
x4baseandMaxime Beauchemin 485234bc78 Add having filters (#553)
Support the dimSelector having filters
2016-06-21 09:43:10 -07:00
x4baseandMaxime Beauchemin 13095eb550 Show right messages as soon as possible (#632)
* Flashed messaged should be flushed in every page

* Show error messages in AJAX style

* Introduce the decorator "api"

* Move toggleCheckbox() to the right place and trigger it in jQuery style
2016-06-21 09:42:54 -07:00
x4baseandMaxime Beauchemin 40e1787948 Improve the error message in the slices (#555)
* Improve the error message in the slices

Let slice.error() accept msg and xhr

* Check error first in nvd3_vis.js
2016-06-21 09:42:44 -07:00
Maxime BeaucheminandGitHub 7e8053abef Adding list of table names to show Dashboard view (#648) 2016-06-21 09:41:48 -07:00
Lech JankovskiandMaxime Beauchemin ff44e46d7b Add impyla to recommended packages for Impala (#649) 2016-06-21 09:41:24 -07:00
Maxime BeaucheminandGitHub d71a67cdad Bumping FAB and cryptography to current version (#647) 2016-06-20 15:31:15 -07:00
George Ke 54e4be1d13 [hotfix] lint error should fail travis build 2016-06-20 15:17:04 -07:00
George Ke fb0750710e [hotfix] missing semicolon breaking build 2016-06-20 14:14:20 -07:00
alanmcruickshankandMaxime Beauchemin 5618df78f8 Added documentation of the health check endpoint (#644) 2016-06-20 09:24:49 -07:00
Chris WilliamsandMaxime Beauchemin 668ede1133 expose /slice/<slice_id>/ endpoint to redirect to a slice's url (#633)
* expose /slice/<slice_id>/ endpoint to redirect to a slice's url

* remove residual print statement

* add unit test for caravel/slices/id endpoint
2016-06-20 09:18:03 -07:00
Maxime BeaucheminandGitHub deb197a1d8 Adding contribution to total option to Bar chart (#641) 2016-06-20 09:16:51 -07:00
Maxime BeaucheminandGitHub 55c549d86f Adding option for reduceXTicks (#640) 2016-06-17 12:31:20 -07:00
Maxime Beauchemin 78eb1e6a54 [hotfix] fixing bug around looking up security access 2016-06-17 11:34:54 -07:00
yxjamesandMaxime Beauchemin 4c8523efc0 Prevent potential db upgrading problem (#628)
* fix general db upgrade problem

* add comments
2016-06-17 08:14:26 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 4400c70514 Make time grains translatable (#622)
* Make time grains translatable

Fix #616

* Refresh translations
2016-06-17 08:12:15 -07:00
Maxime BeaucheminandGitHub 3105c9f9ae Improvments to NVD3 charts (axis labels & min bar width) (#629) 2016-06-17 08:11:53 -07:00
Maxime Beauchemin 04388a7b9b [docs] telling people to use gunicorn server 2016-06-16 09:16:10 -07:00
x4baseandMaxime Beauchemin db30f20341 Only initiate permissions of valid metrics (#630) 2016-06-16 08:55:11 -07:00
x4baseandMaxime Beauchemin 65d9feb0a9 Check ownership before a slice is deleted (#624) 2016-06-15 14:27:36 -07:00
Rocky QiandMaxime Beauchemin 77c5c9400a Update sql.js to fix a invalid error msg (#621)
when using sql.html page to run sql directly, for any SELECT * sql, when click run! button for the second time,
the page will show error msg like: DataTables warning: table id={id} - Cannot reinitialise DataTable.
this can be fix by:https://datatables.net/manual/tech-notes/3#retrieve
2016-06-15 14:27:12 -07:00
Peiji ChenandMaxime Beauchemin 5de8740a38 minor correction on the right npm path (#618)
* minor correction to the right npm path

* minor correction to the right npm path
2016-06-15 14:24:25 -07:00
x4baseandMaxime Beauchemin ea8a7ec1ba Redirect to druid datasource page when the user wants to add slice. Also, provide a link to the table page (#625) 2016-06-15 14:23:25 -07:00
alanmcruickshankandMaxime Beauchemin b38590a0bb Added Hour time grain for MySQL (#615) 2016-06-15 14:22:27 -07:00
x4baseandMaxime Beauchemin ee2d3330aa Prevent the cannot-overwrite error message from being removed before it can be seen (#626) 2016-06-15 14:19:50 -07:00
Maxime Beauchemin aa2b8b42d0 Updating CHANGELOG 2016-06-15 10:13:48 -07:00
Maxime Beauchemin 91e272546a v0.9.1 2016-06-15 09:46:29 -07:00
Maxime BeaucheminandGitHub d90a2c861a Pinning all dependencies to specific versions (#627) 2016-06-15 09:29:37 -07:00
Maxime Beauchemin a117498991 Adding some CRUD field descriptions to clarify things 2016-06-15 08:50:50 -07:00
Maxime Beauchemin e29d71d0ff [hotfix] passing payload to Slice.done everywhere 2016-06-13 22:58:04 -07:00
Maxime Beauchemin bacbd909d1 [hotfix] parallel coordinates grey background on hover 2016-06-13 22:44:57 -07:00
Maxime BeaucheminandGitHub 77d8ccba87 Compress before caching, store more in each memcache key (#614) 2016-06-13 21:59:03 -07:00
Junxian WuandMaxime Beauchemin 347c39b8e9 Better support for Druid cardinality estimation mertics (#613)
* added rocognition of thetasketch and HLL metrics

* make sure the name agreed with SQL convention
2016-06-13 20:49:51 -07:00
Maxime Beauchemin bc58c5d031 [hotfix] delete cache key when set fails 2016-06-13 18:01:55 -07:00
Maxime BeaucheminandGitHub 267c0191a8 Make sure cache.set never fails hard (#611) 2016-06-13 13:26:05 -07:00
Maxime BeaucheminandGitHub 9ed8c32f76 Cranking up FAB to latest (1.7.1) version (#609) 2016-06-13 09:25:22 -07:00
Maxime BeaucheminandGitHub 1a4c7afbef Fixing a potential FK error when doing bulk updates (#606)
I hit this upgrade issue in production where the FK for user wasn't
allowing null. Perhaps it is specific to our environment but I'd rather
fix this.
2016-06-12 21:39:06 -07:00
Maxime Beauchemin c58fd63efc [hotfix] caching indicator was missing on dashboard view 2016-06-12 21:38:32 -07:00
Maxime BeaucheminandGitHub fa13b77cfa Adding postgres to the build matrix (#604) 2016-06-12 11:01:16 -07:00
Maxime BeaucheminandGitHub c490138afe Fixing json issues (#602) 2016-06-11 20:39:25 -07:00
Maxime Beauchemin 327fceefb7 [hotfix] fixes issue around multidict 2016-06-11 08:02:56 -07:00
MarigoldandMaxime Beauchemin 1631137da1 fix missing multiple values for the same parameter name (#565) 2016-06-11 07:55:01 -07:00
Junxian WuandMaxime Beauchemin 4661b0210d Popover to generate iframe html tag when standalone button is clicked (#575)
* fixed

* basic implementation of the iframe embed popover

* remove unecessary comments

* remove public embed iframe

* remove debug print line and public access

* remove uncessary extra line and use better text explain

* maintain the style of airbnb/master

* fixed style

* re-run the test locally. Made sure it passed
2016-06-11 07:48:30 -07:00
Riccardo MagliocchettiandMaxime Beauchemin a8136bb9f5 Update translations files (#595) 2016-06-11 07:47:42 -07:00
x4baseandMaxime Beauchemin 4c6026fdda Add access control over metrics (#584)
* Add the new field "is_restricted" to SqlMetric and DruidMetric

* Add the access control on metrics

* Add the more descriptions on is_restricted

* Update docs/security.rst

* Update docs/security.rst
2016-06-10 15:49:33 -07:00
Maxime BeaucheminandGitHub 55baab413a [hotfix] fixing the build (#594) 2016-06-09 22:58:20 -07:00
Maxime Beauchemin 2f60801059 [hotfix] fixing the build 2016-06-09 21:12:44 -07:00
Maxime Beauchemin 2644dd1984 Adding a test for welcome page 2016-06-09 18:11:24 -07:00
Maxime BeaucheminandGitHub c35e0e831c [hotfix] csv and json link are off (#592)
* Fixing bugs

* [hotfix] csv and json link are off
2016-06-09 18:06:20 -07:00
Maxime BeaucheminandGitHub 60ed3e4050 TOX / Travis build matrix (#593)
* Building on many dbs

* Fixing some translation related error msg
2016-06-09 18:05:58 -07:00
Riccardo MagliocchettiandMaxime Beauchemin dd662eaca3 caravel: mark more strings for translations in viz (#586) 2016-06-09 16:46:27 -07:00
Riccardo MagliocchettiandMaxime Beauchemin e3da785321 caravel: reduce usage of choicify in forms (#591)
So that more string can be translated

Fix #583
2016-06-09 16:45:45 -07:00
Jeremi JoslinandMaxime Beauchemin f4c92da4e6 Make sure the APP_ICON config is used in the template (#590) 2016-06-09 16:45:03 -07:00
Riccardo MagliocchettiandMaxime Beauchemin eb208b921c config: there's no such thing as WEBSERVER_THREADS (#587)
The config option is CARAVEL_WORKERS. Bump example to 16 processes
to keep backward compatibility with the current default.
2016-06-09 16:44:13 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 8a579e2a2a Mark more strings for translations (#581)
* caravel: mark viz strings for translations

* caravel: mark templates string for translation

* caravel: make forms strings translatable

* Update translations
2016-06-08 17:38:43 -07:00
Riccardo MagliocchettiandMaxime Beauchemin cdb573e793 caravel: add missing test requirements in setup.py (#582) 2016-06-08 13:50:43 -07:00
Riccardo MagliocchettiandMaxime Beauchemin ad5507c5f4 views: translate labels and not names (#567)
So that we can install caravel on postgresql:
```
2016-06-03 17:58:05,386:ERROR:flask_appbuilder.base:
Add Permission on Menu Error: (psycopg2.ProgrammingError) can't adapt type '_LazyString'
[SQL: 'SELECT ab_view_menu.id AS ab_view_menu_id, ab_view_menu.name AS
ab_view_menu_name \nFROM ab_view_menu \nWHERE ab_view_menu.name = %(name_1)s \n
LIMIT %(param_1)s'] [parameters: {'param_1': 1, 'name_1': l'Sources'}]
```

Other that translating names should be a recipe for disaster if
you switch language.

Fix #558
2016-06-07 17:43:51 -07:00
George KeandMaxime Beauchemin 24a68f5c48 Two hotfixes (#574)
* fix for dashboards created without slices

* [hotfix] check_ownership param needed for adding slice to dashboard
2016-06-07 11:07:25 -07:00
Maxime Beauchemin 0d800fa302 Fixing bugs where params aren't reflected on nvd3* (#564) 2016-06-07 08:10:49 -07:00
Maxime Beauchemin dc33506bfa Removing deprecated refs to flask.ext.* (#566) 2016-06-05 21:37:03 -07:00
Maxime Beauchemin 89f9efd3a3 Fixing the dashboard's look after resizing the window (#556) 2016-06-03 11:53:37 -07:00
George KeandMaxime Beauchemin 52c2b2348a allow for multiple columns in NOT GROUP BY (#560) 2016-06-03 11:34:29 -07:00
Maxime Beauchemin b5fe9dbe33 Adding a security section to the docs (#561) 2016-06-03 11:33:11 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 5bc50210ad utils: generalize utility to find find_constraint_name (#557)
See https://github.com/airbnb/caravel/pull/531
2016-06-03 09:47:51 -07:00
Riccardo MagliocchettiandMaxime Beauchemin fe402465b1 caravel: catch only ImportError when loading config (#559)
As you may want to see the exception raised on at leasts SyntaxError
2016-06-03 09:46:03 -07:00
Maxime Beauchemin 3ee9a68c09 Only owners can update their objects (#507) 2016-06-02 19:17:34 -07:00
Maxime Beauchemin 29170512ab Adapting default CSS templates to the new grid layout 2016-06-02 16:40:55 -07:00
Maxime Beauchemin b5614a433e Fixing 2 bugs that happen when fields are removed from table (#551) 2016-06-02 12:39:21 -07:00
Giacomo TagliabueandMaxime Beauchemin 5f005d67e3 Add CORS support (#478)
* Add optional CORS

* make CORS an extra dependency

* add documentation
2016-06-02 12:34:36 -07:00
George KeandMaxime Beauchemin c78d3682ac Reactify dashboard grid (#523)
* Use react-grid-layout instead of gridster

* visualizations show and resize

* display slice name and description; links work

* positioning of widgets to match gridster, rowHeight matches

* Change margins, rowHeight, unpositioned viz, and expandedSlices to match gridster

* Saving dashboard, deleting slices, formatting on slices (chart control and resize handle), expanded slices fixed.

* responsiveness + use es6 classes

* Minor ui fixes + linting

* CSS transforms on slices messes up nvd3 tooltip positioning.
Turn off CSS transforms for the time being, with a cost of painting speed.

Issue is currently being looked at on the nvd3 repo
PR: https://github.com/novus/nvd3/pull/1674

* Remove breakpoint listener, fires when it shouldn't (i.e. too often)

* resize is no longer buggy, minor cleanup

* gridster class, const, landscape error

* one source of data for data to front end from python
2016-06-02 12:31:05 -07:00
Luca AlbertalliandMaxime Beauchemin fe6628b0a4 Fix #529 2 - "This Session's transaction has been rolled back" (#531)
* Created migration to fix the bug

* Working also on MySQL

* Added support for Vertica Grains (#515)

* Fix #529 1 "This Session's transaction has been rolled back" (#530)

* Fixing the specific issue

* Added an additional fix for a similar error in #529

Background:
- When an object is modified by SQLAlchemy, it is invalidated so need to be fetched again from the DB
- If there's an exception during a transaction, SQLAlchemy performs a rollback and mark the connection as dirty.

Bug:
- When handling exceptions, the exception handler tries to access the name of the cluster in the main object. Since the name has been invalidated due to a write, SQLAlchemy tries to fetch it on a 'dirty' connection and spits out an error. Solution:
- Fetch the information for handling the exception before starting the process.

* Modified the migration function to to automatically detect the the foreign keys based on the signature.
It supports also sqlite using batch migrations

* i18n: Fix typo in Druid cluster broker port label (#512)

* Update models.py (#541)

removing duplicated `user_id` def
2016-06-02 12:27:59 -07:00
George KeandMaxime Beauchemin cb384d051b Fix for Not Grouped By on Table View (#544)
* fix for default metric in table visualization

* better location for form override; covers all parameters

* remove dead code, use items instead of iteritems for python 3
2016-06-01 22:59:06 -07:00
George KeandMaxime Beauchemin 849063c797 fix world_map appending to old world map when updating (#549) 2016-06-01 22:47:22 -07:00
Luca AlbertalliandMaxime Beauchemin 087c47a37e Fix #529 1 "This Session's transaction has been rolled back" (#530)
* Fixing the specific issue

* Added an additional fix for a similar error in #529

Background:
- When an object is modified by SQLAlchemy, it is invalidated so need to be fetched again from the DB
- If there's an exception during a transaction, SQLAlchemy performs a rollback and mark the connection as dirty.

Bug:
- When handling exceptions, the exception handler tries to access the name of the cluster in the main object. Since the name has been invalidated due to a write, SQLAlchemy tries to fetch it on a 'dirty' connection and spits out an error. Solution:
- Fetch the information for handling the exception before starting the process.
2016-05-31 21:16:32 -07:00
Riccardo MagliocchettiandMaxime Beauchemin b193539fa4 i18n: Fix typo in Druid cluster broker port label (#512) 2016-05-31 21:10:28 -07:00
Luca AlbertalliandMaxime Beauchemin ae7fb012a9 Added support for Vertica Grains (#515) 2016-05-31 21:09:04 -07:00
Jiayu LiuandMaxime Beauchemin 409233d4fc Update models.py (#541)
removing duplicated `user_id` def
2016-05-31 21:07:14 -07:00
Maxime Beauchemin 7d27692828 [hotfix] forcing newer pydruid version 2016-05-24 12:35:55 -07:00
Maxime Beauchemin dee4c34411 [hotfix] adapting to pydruid 0.2.3 2016-05-24 18:35:10 +00:00
Maxime Beauchemin eb3bfb5c56 Cranking FAB to 1.6.2 (#505) 2016-05-23 13:08:50 -07:00
Maxime Beauchemin 57990bfd83 Implementing druid's regex filters (#501)
* Implementing druid's regex filters

* Debugging

* Debuggin'
2016-05-23 13:06:35 -07:00
Xuefeng ZhuandMaxime Beauchemin 29f5ace436 complete Chinese translation (#503) 2016-05-23 11:46:46 -07:00
Maxime Beauchemin 0fcab30652 More translation instrumentation and some french to test (#502) 2016-05-23 11:46:33 -07:00
Maxime Beauchemin c53874c8ab [hotfix] treemap was broken 2016-05-20 14:05:08 -07:00
Maxime Beauchemin e77d50bc61 Adding a doc page for Druid 2016-05-20 12:11:38 -07:00
Maxime Beauchemin f0c6a98027 Gunicorn tweaks, unlimited limit-request-line & limit-request-field_size (#500)
This is mostly to enable long text in the Markdown widget
Related:
https://github.com/benoitc/gunicorn/issues/376
2016-05-20 11:35:41 -07:00
Maxime Beauchemin 58d78beeaa [bugfix] 'Y Axis Zero' would force 1 in Y axis (#497) 2016-05-20 11:10:46 -07:00
Riccardo MagliocchettiandMaxime Beauchemin e1a3854f2a utils: add special serializer for numpy.int64 (#492)
It looks like COUNT(*) returns a numpy.int64 value that the
default JSONEncoder does not handle.

While at if we get a type we are not handling make it easier to
debug the issue by throwing a TypeError exception with useful
data.

Fix #486
2016-05-20 11:10:29 -07:00
Florent BENOITandMaxime Beauchemin 7630d73002 fix typo (#484) 2016-05-20 11:05:28 -07:00
Riccardo MagliocchettiandMaxime Beauchemin 3cfc58e3a2 Add italian translation (#491) 2016-05-20 11:05:08 -07:00
Josh WaltersandMaxime Beauchemin 3ee102b79f Made '__' prefix into suffix. (#496) 2016-05-20 11:03:49 -07:00
Maxime Beauchemin f5180d8724 [hotfix] fix name change on test dashboard triggers error 2016-05-19 08:51:13 -07:00
Maxime Beauchemin 4738b01125 [hotfix] setting default value for druid_time_origin 2016-05-16 23:08:46 -07:00
Maxime Beauchemin d1f0276408 Introducing Horizon charts (#472)
* Introducing Horizon charts

* JS Lintin
2016-05-16 22:49:12 -07:00
Maxime Beauchemin 1766f6edd6 [hotfix] making druid_time_origin stick 2016-05-16 22:48:32 -07:00
Andrii SydorchukandMaxime Beauchemin 8a406b18f5 Add PUBLIC_ROLE_LIKE_GAMMA config flag (#473) 2016-05-16 21:24:43 -07:00
Maxime Beauchemin 2620aeca02 Fixing the heatmap calendar color ranges in the Welcome page (#474) 2016-05-16 21:22:38 -07:00
George KeandMaxime Beauchemin 5c0e30ed70 Added Calendar Heatmap (#475)
* Added sqlite Grains

* Calendar heatmap visualization

* Linting

* Explicit metric setting was breaking tests

* Python linting

* Code cleanup + review

* [fixing the build] a new version of eslint is more picky

* Linting

* Added sqlite Grains

* Calendar heatmap visualization

* Linting

* Linting

* Explicit metric setting was breaking tests

* Python linting

* Code cleanup + review
2016-05-16 17:59:38 -07:00
Maxime Beauchemin 607e1f941b Fixing the build 2 out of 2 2016-05-16 17:41:02 -07:00
Maxime Beauchemin d30567959b [fixing the build] a new version of eslint is more picky 2016-05-16 16:33:08 -07:00
Maxime Beauchemin 83e0e58888 [hotfix] Druid explore/table dropdown doesn't change anything 2016-05-16 16:10:22 -07:00
x4baseandMaxime Beauchemin 5a870fe1c2 Mysql key length (#459)
* Use varchar(255) in MySQL

* Adjust the key lengths in old migration scripts
2016-05-12 10:27:38 -07:00
Maxime Beauchemin d846cb3d73 Updating changelog 2016-05-12 08:51:59 -07:00
Maxime Beauchemin a0099ad6d6 v0.9.0 2016-05-12 08:24:01 -07:00
Maxime Beauchemin f28c2b2557 Cosmetric tweaks in the CRUD list view (#458) 2016-05-11 21:05:32 -07:00
Maxime Beauchemin 52bbb38188 Don't limit parallel coordinates table size (#455)
Before we limited the table size to 10 rows, now there's no limit and it
will overflow properly with a scrollbar.
2016-05-11 17:48:04 -07:00
Maxime Beauchemin aa6e6bdf7a Allowing for templated urls in iFrame (#460)
* Allowing for templated urls in iFrame

This can allow for passing {{ width }} and {{ height }} as dynamic
attributes in the iFrame's URL.

The new method Slice.render_template method could do more eventually
exposing more variables to be used in dynamic strings.

* Passing function references

* js linting
2016-05-11 17:00:46 -07:00
Maxime Beauchemin 6c333d5010 Fixing the missing searchbox bug (#431)
* Fixing the missing searchbox bug

* Linting JS

* Layout tweaks
2016-05-10 11:49:32 -07:00
Maxime Beauchemin 673cce9e56 Attempting to fix #412 (#430)
* Attempting to fix #412

* More flushes
2016-05-10 11:19:30 -07:00
Maxime Beauchemin d79089c587 Improving the parallel coordinate viz (#452)
* Improving the parallel coordinate viz

* Clear container on refresh
* Order of columns is kept
* Option to show/hide the series column in viz
* Color metric not shown by default

* JS linting
2016-05-10 09:39:33 -07:00
Maxime Beauchemin c4e3020369 Conververting datetime based on database dialects (#446) 2016-05-10 09:29:29 -07:00
Maxime Beauchemin 77e9e6a5d7 Fixing issue #444 color function chokes on non-string param (#447) 2016-05-10 09:22:59 -07:00
Siddharth GuptaandMaxime Beauchemin a75d6bc52c add timestamp toggle in chart options (Table Viz) (#439)
* add timestamp toggle in chart options (Table Viz)

* refactor timestamp choices

* fix build error
2016-05-10 09:22:32 -07:00
x4baseandMaxime Beauchemin c5fcbc0709 Support hyperUniqueCardinality type in post aggregation (#451) 2016-05-10 09:21:09 -07:00
Siddharth GuptaandMaxime Beauchemin 2f64c42062 blacklist druid datasources to be refreshed because it takes forever to load all druid datasources metadata which is not even required (given the use cases user should be able to blacklist data sources which are not required to be refreshed). (#441) 2016-05-06 12:03:42 -07:00
Maxime Beauchemin d304ee005a Bugfix in line chart where the series name is an empty string (#434) 2016-05-05 12:19:51 -07:00
JunshuoandMaxime Beauchemin 82fa501dea Update Chinese translation (#438)
Change some Chinese translations to make them sound less robotic
2016-05-05 12:19:21 -07:00
x4baseandMaxime Beauchemin bc7170769b Recursively get the dependency fields of post aggregators (#437) 2016-05-05 08:52:48 -07:00
andrewhnandMaxime Beauchemin 6941f1de64 add unicode data to tests (#432)
* add unicode data to tests

* make tests pass on 2.7

* clean up data loading

- remove duplicate keys in slice_data
- reduce line length

* change manager option flag to -t, --load-test-data

* test --> load_test_data
2016-05-05 08:46:16 -07:00
Maxime Beauchemin a3f549bb9e Some chinese translations as a Proof of Concept (#435) 2016-05-04 21:36:10 -07:00
Andrii SydorchukandMaxime Beauchemin 0bedaed367 Make sure anonymous user with proper permissions can access data (#415)
* Make sure anonymous user with proper permissions can access data

* Review fixes: naming changes

* Review fixes: add more granular tests for public user dashboard access

* Review fixes: test that public user has access only to permitted data sets
2016-05-03 22:31:37 -07:00
x4baseandMaxime Beauchemin 1d0863abfe Rename the dummy variable _ to avoid conflict with lazy_gettext (#427)
Otherwise "local variable '_' referenced before assignment" will be raised
2016-05-03 22:28:30 -07:00
Maxime Beauchemin a3a9ec926f [hotfix] piechart goes black on refresh (#424) 2016-05-03 12:49:52 -07:00
Giacomo TagliabueandMaxime Beauchemin a8d0ae1361 Fix name of test script in contributing guide (#428) 2016-05-03 12:45:38 -07:00
Giacomo TagliabueandMaxime Beauchemin 9a08c45e59 add additional postgres and redshift time grains (#429) 2016-05-03 12:44:42 -07:00
Maxime Beauchemin 88c9516e20 Getting started on translations (#423) 2016-05-02 10:50:23 -07:00
Maxime Beauchemin ec7dbed800 Blank theme (#419)
* A white theme

* Updating TODO

* Fixing tests
2016-05-02 10:04:29 -07:00
Maxime Beauchemin 26d273643b Allowing for druid post aggregations (#418)
* Druid post aggregations

* Fixing tests
2016-05-02 10:00:39 -07:00
Maxime Beauchemin 0ca3f5ec80 Improving SQLA query generation (#421)
* Improving SQLA query generation

* Fixing debug
2016-05-02 10:00:28 -07:00
Siddharth GuptaandMaxime Beauchemin d7ea47387f enable timerotateloghandler (configurable) (#311)
* attempt to enchance logging

* clean up logging

* clean up logging

* reset to logger

* clean up imports

* add comments in config.py

* remove redundant declaration of logging.config. Already exists in caravel/__init__.py

* replace RotatingFileHandler with TimedRotatingFileHandler

* revert back running web server in debug mode

* fix debug in bin/caravel

* resolve build errors - formatting

* need to test

* enable time rotateloghandler

* revert back print statements - add feature for rotatetimelog which is needed and make it configurable

* revert back to default in master

* fix build issues

* remove extra print statement

* change log location to default

* configure console log level and format
2016-05-01 07:59:08 -07:00
x4baseandMaxime Beauchemin 7b5b602e96 Use batch_alter_table to drop column in the migration script (#406) 2016-04-30 08:30:40 -07:00
Chris Williams b78ec54650 Merge pull request #414 from airbnb/chris/fix-sunburst-level-trunc
[bugfix] allow repeated values across levels when building sunburst hierarchy
2016-04-29 10:59:29 -07:00
Maxime Beauchemin 77e4d4b2d4 Fixgin README link 2016-04-28 17:58:09 -07:00
Maxime Beauchemin 2198fd4e3d Adding badge for python versions 2016-04-28 17:55:01 -07:00
Maxime Beauchemin bd47a29076 CHANGELOG update 2016-04-27 19:43:03 -07:00
Maxime Beauchemin 337c9d59ae v0.8.9 2016-04-27 19:38:36 -07:00
Maxime Beauchemin 54860a874c Adding reference to another docker image in READMEM 2016-04-27 18:12:24 -07:00
Maxime Beauchemin 89d1a77281 [hotfix] filter_immune_slices fix 2016-04-27 13:41:06 -07:00
Maxime Beauchemin b634d03ac3 Show only Slices and Dashboards users have access to (#404)
* Introducing more security features

* Many to many owners for slices and dashboards
* Slices are filtered to only slices that the user has access to

* Adding unit tests
2016-04-26 16:44:51 -07:00
Maxime Beauchemin ab64a26b5b fix img loading overlay in explore view (#403) 2016-04-26 16:14:40 -07:00
andrewhnandMaxime Beauchemin a2f2ad84da add navigation, zoom to treemap (#396)
* add navigation, zoom to treemap

* don't use stale form data
2016-04-26 11:51:01 -07:00
Maxime Beauchemin c0fb9eeca4 [bugfix] big_number doesn't fadeout on hover 2016-04-26 09:29:40 -07:00
Maxime Beauchemin 42ac46c1e1 [bugfix] fix context confusion in Slice 2016-04-26 09:29:19 -07:00
Maxime Beauchemin 7b1075990c [hotfix] periodic refresh dashboard feature had broken caching 2016-04-25 15:28:14 -07:00
Maxime Beauchemin 37be01bc12 [hotfix] adding cache_key in payload 2016-04-25 12:41:30 -07:00
Maxime Beauchemin 7d90f26554 Fixing #388 (#391) 2016-04-21 21:10:09 -07:00
Maxime Beauchemin f1e10d8d25 One more Druid test (#387) 2016-04-21 08:17:15 -07:00
x4baseandMaxime Beauchemin b01d378475 Fix the label of the periodic-refresh button (#386) 2016-04-21 08:16:52 -07:00
Maxime Beauchemin a5f33fecd8 Adding login call for Druid test 2016-04-20 20:13:41 -07:00
Maxime Beauchemin f4177bfa94 More examples / tests (#385)
* More examples / tests

* Fixing the dashboards positioning
2016-04-20 17:36:37 -07:00
x4baseandMaxime Beauchemin d8a2b621d8 Periodically update the slices in the dashboard (#374)
* Periodically update the slices in the dashboard

* Make the refresh interval changeable

* Add the button and the modal for the user to change the refresh interval

* Don't use callback for refreshing

* Randomize to prevent all widgets refreshing at the same time

* Show the loading icon as an overlay when the slices refresh
2016-04-20 17:35:07 -07:00
Maxime Beauchemin 9a33557112 Removing forgotten print statement 2016-04-20 15:28:02 -07:00
Kim PhamandMaxime Beauchemin efc6bf4eb8 Redirect application log to stderr, which is picked up by gunicorn. (#335) 2016-04-20 15:09:15 -07:00
Maxime Beauchemin 17e711fda2 Druid unit tests using Mock (#384)
* Initial Druid mock unit tests

* More unit tests

* Test for Druid query

* Adding a groupby test
2016-04-20 15:08:10 -07:00
Maxime Beauchemin 01a8c96820 Specifying python versions supported in setup.py (#382)
* Specifying python versions supported in setup.py

* Fixing py3
2016-04-20 12:27:17 -07:00
Chris WilliamsandMaxime Beauchemin d96b634ded split sunburst breadcrumb names on '_' to apply ' '-dependent wrapping more freqently (#376) 2016-04-19 14:42:36 -07:00
Siddharth GuptaandMaxime Beauchemin afcdcf06a1 Fixing overwrite and save slice permissions for a give role (#298)
* Fixing overwrite and save slice permissions for a give role

* fix function name - build failed

* fix function name and test user permissions

* disable the button in the UI

* fix build error - characters too long in 1 line

* try to disable button on the UI

* disable cursor in caravel css. You wont be able to click anymore if no access

* fix build issues

* fix build errors! god bless me

* disable main features in dashboard and slice

* fix build issues
2016-04-18 13:56:00 -07:00
Maxime Beauchemin 5597eb4cc4 Fix db upgrade script b4456560d4f3 (#370)
* Recreating db upgrade error first

* Wrapping alter table calls in try statements
2016-04-18 12:49:13 -07:00
Siddharth GuptaandMaxime Beauchemin 3f0171b77b Configure Visualizations (#365)
* make viz types configurable

* make visualizations configurable

* deault every viz is true

* add blacklist viz_type

* fix build
2016-04-18 09:00:03 -07:00
Maxime Beauchemin badcd8bfa1 Storing version number in only one place (#362) 2016-04-17 08:20:11 -07:00
Maxime Beauchemin 04f1b176c4 Fixes issue #364 2016-04-17 08:17:08 -07:00
Maxime Beauchemin 899fe19afb [WiP] Attempting to support Druid's granularity origin as a hidden url param (#194)
* Supporting Druid'd time origin feature

* Adding origin to form, making it free form
2016-04-15 17:00:44 -07:00
Maxime Beauchemin f3168518e2 New url default for iframe viz 2016-04-15 16:50:16 -07:00
Maxime Beauchemin 04d769ff24 Some more error handling when rendering the explore view (#361) 2016-04-15 15:00:49 -07:00
Maxime Beauchemin 01c2c7baf8 Fixing unique constraint in SqlaTable model (#360) 2016-04-15 14:53:06 -07:00
Maxime Beauchemin 2d420eee25 v0.8.8 2016-04-14 21:25:47 -07:00
Maxime Beauchemin 1a6757f10a Better type detection for inference of column matrix (#353) 2016-04-14 21:24:04 -07:00
Maxime Beauchemin 63e5e932cb Hide password from database 'show' view (#355) 2016-04-14 21:23:49 -07:00
Maxime Beauchemin e6e8ec9620 [bugfix] missing redirect when datasource is missing (#352) 2016-04-14 20:25:40 -07:00
Maxime Beauchemin 4b48e9f1e9 Updating CHANGELOG 2016-04-13 23:07:25 -07:00
Maxime Beauchemin ffdae19312 v0.8.7 2016-04-13 22:45:50 -07:00
Maxime Beauchemin e5fabf39df Adjusting positioning in the examples 2016-04-13 22:39:23 -07:00
LudovicandMaxime Beauchemin eb5a41728e Change the size of the column datasource_name in datasource creation … (#345)
* Change the size of the column datasource_name in datasource creation table to fix a Sql server specific issue.

* Change the model according to the change of the database script done in the PR 345
2016-04-13 22:32:48 -07:00
Maxime Beauchemin 91a3594be3 Fixing the thumbs and the galery (#346) 2016-04-13 22:32:03 -07:00
andrewhnandMaxime Beauchemin 52ebdc5017 add treemap (#344) 2016-04-13 20:27:00 -07:00
Maxime Beauchemin 5cadd6794c Allowing to specify schema for tables (#330)
* Allowing to specify schema for tables

* Installed postgres and tested/fixed
2016-04-13 17:28:12 -07:00
Maxime Beauchemin 0a94b36d3d Adding version subcommand to CLI (#329) 2016-04-13 17:27:20 -07:00
Maxime Beauchemin 21b3a5f199 [big_number*] fixing a few bugs (#342) 2016-04-13 17:27:00 -07:00
Maxime Beauchemin a76ccf462d [welcome page] shows the most recently updated items first (#343) 2016-04-13 17:26:44 -07:00
Denis ZgonjaninandMaxime Beauchemin 8fe5790ec3 Don't die on malformed json in the extras field. Give feedback to user (#338) 2016-04-13 16:41:55 -07:00
Chris WilliamsandMaxime Beauchemin 1e08b3e8c5 add tooltips to sankey (#341)
* add tooltips to sankey

* update tooltip language ('count' --> 'value', 'Link Weight' --> 'Path Value').
2016-04-13 15:12:11 -07:00
Maxime Beauchemin 77828b630a [bugfix] druid granularity form field should be select2_freeform 2016-04-13 13:58:28 -07:00
Maxime Beauchemin 3c72751c26 [bugfix] druid granularity form field should be select2Sortable 2016-04-13 13:16:19 -07:00
Maxime Beauchemin af417b6b58 Adding expression column description in the CRUD 2016-04-12 10:41:23 -07:00
Maxime Beauchemin 3d1fc99353 Adding not in docs about connecting to dbs over SSL 2016-04-11 21:41:32 -07:00
Maxime Beauchemin 1dd416570a Json dumps iso date for Table view (#328) 2016-04-11 21:22:54 -07:00
Maxime Beauchemin 54fb76e680 Getting the SQL view back in a working state (#327) 2016-04-11 21:20:42 -07:00
Maxime Beauchemin 74975a1606 Getting error messages to show up on the interactive debugger 2016-04-11 21:17:57 -07:00
Denis ZgonjaninandMaxime Beauchemin 6d0b5767b3 Include connection parameters in call to Test Connection for a new database (#326) 2016-04-11 15:39:50 -07:00
Maxime Beauchemin 9ac979a336 Tweaks for the doc's gallery 2016-04-11 12:22:20 -07:00
Maxime Beauchemin f32ebeeb98 Fixing the way tables overflow in dashboard view (#310) 2016-04-11 12:11:47 -07:00
Maxime Beauchemin 807d686312 Showing thumbsnails when switching viz (#313)
* Showing thumbsnails when switching viz

* Adding missing images

* linting
2016-04-11 12:11:34 -07:00
Maxime Beauchemin 5b822492c8 Linting to 99% (#317) 2016-04-10 22:49:08 -07:00
Maxime Beauchemin c6da8117b7 Adding missing dep to dev-reqs.txt 2016-04-10 16:59:28 -07:00
antbellandMaxime Beauchemin a9af6b1b96 Fix for undefined inner_time_filter on missing granularity in models.SqlaTable (#309) 2016-04-10 16:22:58 -07:00
andrewhnandMaxime Beauchemin fe045ad076 New viz: box plot (#312)
* add box plot

* changes for linters
2016-04-10 16:15:25 -07:00
Maxime Beauchemin dab31eb66d Bugfix, link pointing to json 2016-04-10 11:17:37 -07:00
Maxime Beauchemin da421bb9af Updating TODO 2016-04-09 20:17:43 -07:00
Maxime Beauchemin f8e5d30e2e Revert previous css commit 2016-04-09 14:37:44 -07:00
Maxime Beauchemin bfd1c8711b Forcing widget overflow to be visible 2016-04-09 14:20:01 -07:00
Maxime Beauchemin 542b66ef68 Giving credit where credit is due (#307) 2016-04-09 13:17:20 -07:00
Maxime Beauchemin 866e00d78c Detecting loops in Sankeys (#271)
* Detecting loops in Sankeys

* Fixing the algo
2016-04-09 00:17:31 -07:00
Maxime Beauchemin a3dcb0f309 closes #292 (#304) 2016-04-08 22:32:12 -07:00
Maxime Beauchemin 25831f0033 Making prod web server run by default 2016-04-08 22:09:01 -07:00
Alexander ManceviceandMaxime Beauchemin b47ca785c7 Preserve order of breakdowns in bar_dist (#302) 2016-04-08 21:27:32 -07:00
prihodaandMaxime Beauchemin ef992b6449 Fix week and month Time grain in MySQL (#297)
With mysql datetime and timestamp columns, currently the Time grain "week" and "month" options don't remove the time part. This results in groupings like this:

timestamp count
2015-04-05 07:00:00 1
2015-04-05 10:00:00 1
2015-04-05 11:00:00 2
2015-04-05 11:50:00 1
2015-04-05 12:00:00 5
2015-04-05 14:20:00 1
2015-04-05 14:30:00 1

and so on.

This is solved by wrapping the DATE_SUB with DATE().
2016-04-08 20:54:04 -07:00
Maxime Beauchemin fdcedd097f Adding edit link to datasource in explore view (#303) 2016-04-08 20:49:54 -07:00
Maxime Beauchemin 9a02c88afa Adding link to docs on navbar, re-indent 2016-04-08 18:13:24 -07:00
Igor P. LeroyandMaxime Beauchemin b2de935411 Add OS dependencies link in development env docs (#300) 2016-04-08 17:57:24 -07:00
Chris WilliamsandMaxime Beauchemin ef64884e53 [heatmap] fix bug to display this view properly in dashboards. fix bug to display their d3-tip tooltips in dashboards. don't show empty tooltips on heatmap. update logic for margins so they fit dynamically based on label size. (#301) 2016-04-08 17:54:59 -07:00
Maxime Beauchemin 0afa5d2cba Added FAQ and db dependencies to docs 2016-04-08 08:44:46 -07:00
Siddharth GuptaandMaxime Beauchemin eff0beb195 Optimizing import statements for better readability and to avoid unused, excessive and duplicating imports in the project. (#294) 2016-04-07 23:01:40 -07:00
Maxime Beauchemin ee42aa790a Updating CHANGELOG 2016-04-07 14:42:07 -07:00
Maxime Beauchemin 2972122f40 Adding link to Strata slides 2016-04-07 14:38:23 -07:00
Maxime Beauchemin c5dead4791 v0.8.6 2016-04-07 14:26:28 -07:00
Maxime Beauchemin d933a21216 Prettyfying an image in the docs 2016-04-07 14:26:28 -07:00
michellethomas 59169bfc96 Merge pull request #212 from airbnb/big_number_total
Adding a big number total viz type that is not a timeseries metric
2016-04-07 14:22:12 -07:00
Maxime Beauchemin bcca840f01 Adding from __future__ imports (#288)
* Adding from __future__ imports

* fixes

* Fixing doctests

* Removing unused ColorFactory (in js now)

* linting
2016-04-07 08:39:08 -07:00
mherrandMaxime Beauchemin 90a3b9f2c4 Update INTHEWILD.md
added #GfKDataLab as a Caravel-User
2016-04-06 23:56:19 -07:00
Maxime Beauchemin a37e431150 Adding _images to .gitignore 2016-04-06 23:32:35 -07:00
Maxime Beauchemin bf38c714a5 Adding missing images 2016-04-06 21:10:41 -07:00
Julian NadeauandMaxime Beauchemin 6b0b03e009 Fix localhost link in installation docs 2016-04-06 20:13:04 -07:00
Maxime Beauchemin 8556b098f9 Enable Time Grain Option for Redshift 2016-04-06 20:12:24 -07:00
Julian NadeauandMaxime Beauchemin d122b37f5d Add python-pip to the install docs 2016-04-06 18:11:24 -07:00
Maxime Beauchemin 1756c27930 Adding upgrade instructions to docs 2016-04-06 18:02:40 -07:00
Aaron CritchleyandMaxime Beauchemin 7867267608 SqlAlchemy -> SQLAlchemy in README.md
* SqlAlchemy -> SQLAlchemy in README.md

Source: http://www.sqlalchemy.org/

* SqlAlchemy -> SQLAlchemy in tutorial.rst
2016-04-06 17:54:41 -07:00
Maxime Beauchemin 92d588694b Improving the Installation docs 2016-04-06 08:46:32 -07:00
Maxime Beauchemin d10eaeccc9 Adding a Gallery to the docs 2016-04-06 08:46:21 -07:00
greens231andMaxime Beauchemin c2bb49fec5 Fix 4e6a06bad7a8_init.py migration script to work with Postgres
* Update 4e6a06bad7a8_init.py

* removed comments
2016-04-06 08:24:52 -07:00
Maxime Beauchemin 062f2b81cf Datasource dropdown in Explore view 2016-04-06 08:23:27 -07:00
andrewhnandMaxime Beauchemin 65e72d0d07 Csv download improvements
* name + extension for generated csv and json files

* write csv index where data is meaningful
2016-04-06 08:22:49 -07:00
Maxime Beauchemin 345727635e Adding y_axis_format to DistributionBarViz 2016-04-06 08:20:24 -07:00
Maxime Beauchemin c2baa53b06 bugfix datatables move to new package 2016-04-05 21:40:24 -07:00
Maxime Beauchemin 31758827ae + button on Slice list view redirects to Table view with alert 2016-04-05 13:33:02 -07:00
Maxime Beauchemin 81de51bf6f Minor tweaks 2016-04-04 21:39:33 -07:00
andrewhnandMaxime Beauchemin 0d1f27dbc1 add postgres grains 2016-04-04 20:56:10 -07:00
Maxime Beauchemin c7282882d5 Fixing the pagination display on welcome 2016-04-04 20:47:12 -07:00
Maxime Beauchemin f9d04e8a72 Fixed refresh_datasource redirect 2016-04-04 20:43:06 -07:00
Maxime Beauchemin bf2e804331 Removed trailing coma in Database.extra default 2016-04-04 17:42:31 -07:00
Maxime Beauchemin c349b0a1c1 Fixed link url in docs 2016-04-04 17:14:08 -07:00
Maxime Beauchemin 4d640b5a3d [fix] panel overflowing on welcome page 2016-04-04 16:56:10 -07:00
Maxime Beauchemin 380c3f0c75 Using boostrap panels for form fieldsets in explore view 2016-04-04 16:14:55 -07:00
andrewhnandMaxime Beauchemin e3e8202c98 clear element before redrawing sankey 2016-04-04 16:13:54 -07:00
Maxime Beauchemin 889844407f Adding extra options to deeper configure sqlalchemy 2016-04-04 16:13:08 -07:00
Maxime Beauchemin f1830c36cf A better welcome page 2016-04-04 16:12:28 -07:00
Chris WilliamsandMaxime Beauchemin 92f73b67ca Move window.alert() calls to bootstrap modals. Also log errors to console.
* Move window.alert() calls to bootstrap modals. Also log errors that occur to console.

* move misc modal to basic template so it's available on all pages.
2016-04-04 16:11:23 -07:00
skjeandMaxime Beauchemin 9c1af66ba4 Fix ignored SQL where clauses 2016-04-04 16:03:21 -07:00
Maxime Beauchemin 2b31ab498b [hotfix] fixing json endpoint 2016-04-04 15:20:10 -07:00
Maxime Beauchemin 034fd077e1 Doc formating fix 2016-04-04 10:36:51 -07:00
Maxime Beauchemin ca4443247e Prettyfying the Caravel on README 2016-04-03 20:08:36 -07:00
Maxime Beauchemin 6f96252e45 A logo on the navbar 2016-04-03 20:03:27 -07:00
Maxime Beauchemin 0b93fd373d [hotfix] hashing unicode in py3 2016-04-03 14:04:53 -07:00
Jiayu LiuandMaxime Beauchemin c3789d53b4 Removing duplicate get_table in fetch_metadata 2016-04-03 07:40:58 -07:00
Maxime Beauchemin aec3c0b358 Fixing bug when datasource has been deleted 2016-04-03 07:37:18 -07:00
Karel VervaekeandMaxime Beauchemin ef45c20558 Hash cache keys to avoid too keys being too long. Resolves #240 2016-04-03 07:33:43 -07:00
Maxime Beauchemin 10ab678fc6 Finishing up the tutorial 2016-04-02 23:34:47 -07:00
Maxime Beauchemin 87fb40ae26 Bumping version of npm up 2016-04-02 23:24:36 -07:00
Maxime Beauchemin d245fb91b5 travis tweaks 2016-04-02 23:20:05 -07:00
Maxime Beauchemin c60032acce Pillow with a capital P 2016-04-02 23:17:27 -07:00
Maxime Beauchemin d2f51900f1 Adding a tutorial 2016-04-02 23:11:52 -07:00
Maxime Beauchemin 93405dc23a Clarify SQLALCHEMY_DATABASE_URI in the docs 2016-04-01 16:41:02 -07:00
Maxime Beauchemin dafdb51f35 Adding Caravel Docker link to README 2016-04-01 16:16:21 -07:00
Maxime Beauchemin 2d0fdf7e59 Adding a CHANGELOG.md 2016-04-01 13:55:04 -07:00
Maxime Beauchemin 718de6cd50 v0.8.5 2016-04-01 13:30:12 -07:00
Maxime Beauchemin 38062f160a Adding an INTHEWILD file 2016-04-01 13:23:51 -07:00
Maxime Beauchemin 9a5a27a101 Merge pull request #234 from airbnb/pinpandas
Pin pandas, remove numpy
2016-04-01 11:52:41 -07:00
Maxime Beauchemin 481d821721 Tweaking docs 2016-04-01 08:37:19 -07:00
Maxime Beauchemin 7b111b790e Adding an OS dependencies section to the install docs 2016-04-01 08:33:28 -07:00
Maxime Beauchemin ab92e7a94d Pin pandas, remove numpy 2016-04-01 08:04:44 -07:00
Maxime Beauchemin 22d2b7fe0f Merge pull request #229 from jmcomets/patch-1
Remove "requirements.txt" mention from README
2016-04-01 00:23:51 -07:00
Jean-Marie Comets 23319eed10 Remove "requirements.txt" mention from README
I noticed that there isn't the file `requirements.txt` was removed when moving to PyPi. Plus there's no such thing as an open-source project without an "update README" PR. ;)
2016-04-01 09:05:12 +02:00
Maxime Beauchemin 12cc064059 Merge pull request #225 from airbnb/chris/remove-random-power-units
remove power units from sankey diagram
2016-03-31 23:23:42 -07:00
Maxime Beauchemin ffa29b3909 Merge pull request #219 from airbnb/chris/sunburst-conditional-percent
Add 'Percent of previous' to sunburst vis. Appease npm warnings for data tables and d3.layout.cloud
2016-03-31 23:23:27 -07:00
Maxime Beauchemin ee4e3c1b98 Merge pull request #224 from cyrusstoller/typo_fix
Fixing minor typos in the readme
2016-03-31 23:21:12 -07:00
Maxime Beauchemin ebc16bb3fa Merge pull request #214 from airbnb/kim/fix_druid_datasource_bug
Fix an installation bug.
2016-03-31 23:19:44 -07:00
Chris Williams 0e2c0ce858 remove power units from sankey diagram 2016-03-31 16:59:39 -07:00
Cyrus Stoller 807f4dd0e5 Fixing minor typos in the readme 2016-03-31 15:38:34 -04:00
Chris Williams b87d8a0fbf change 'of previous' to 'of parent' 2016-03-31 12:26:49 -07:00
Chris Williams 0b3e2e00cc Add 'Percent of previous' to sunburst vis. Appease npm warnings for data tables and d3-sankey. 2016-03-31 12:26:49 -07:00
Maxime Beauchemin 167fb64d0c Merge pull request #218 from airbnb/redirects
Redirecting URL from previous names to caravel
2016-03-31 12:24:16 -07:00
Maxime Beauchemin eeba80c487 Merge branch 'master' into redirects 2016-03-31 12:07:35 -07:00
Maxime Beauchemin a3f92f687d Merge pull request #223 from thebucknerlife/master
Fixed typo in README
2016-03-31 12:05:32 -07:00
Maxime Beauchemin a4b61e97db Merge pull request #222 from brchristian/patch-1
remove duplicate Druid.io section in README.md
2016-03-31 12:04:59 -07:00
Greg Buckner 9595dcff4d Fixed typo in README 2016-03-31 12:02:26 -07:00
brchristian 58ab4e2415 remove duplicate Druid.io section in README.md 2016-03-31 11:47:33 -07:00
Maxime Beauchemin 2b71b72065 Redirecting URL from previous names to caravel 2016-03-31 09:31:07 -07:00
Maxime Beauchemin bd9051a168 Fixing README link 2016-03-31 08:50:47 -07:00
Maxime Beauchemin 6f63b3033f Dedupping info in README by pointing to docs 2016-03-31 08:48:34 -07:00
Kim Pham f659caa06b Fix an installation bug. 2016-03-30 19:08:38 -07:00
Maxime Beauchemin 5b7fe2b643 Merge pull request #213 from airbnb/kim/fix_druid_datasource_bug
Fix a bug when loading DruidDatasource.
2016-03-30 17:02:16 -07:00
Kim Pham e5553ab45e Fix lint warning. 2016-03-30 16:38:02 -07:00
Kim Pham 4a77b70046 A better fix. 2016-03-30 16:28:08 -07:00
Kim Pham f67c6b5f46 Fix a bug when loading DruidDatasource. 2016-03-30 16:11:14 -07:00
Maxime Beauchemin fd407424ad A few replacements related to the rename
mostly just s/mistercrunch/airbnb/g
2016-03-30 14:29:07 -07:00
Maxime Beauchemin e1b871982e Adding docs link badge 2016-03-29 21:28:43 -07:00
Maxime Beauchemin b164244cd8 Renaming forgotten doc file 2016-03-29 21:24:01 -07:00
Maxime Beauchemin 00226cce7f Changing image size, second try 2016-03-29 21:18:17 -07:00
Maxime Beauchemin 3a3d5cd7fb Changing image size 2016-03-29 21:16:53 -07:00
Maxime Beauchemin c6b77206ea Adding build status badge and image to README 2016-03-29 21:14:44 -07:00
Maxime Beauchemin d885dd34f9 Getting coveralls to work 2016-03-29 12:24:00 -07:00
Maxime Beauchemin 54fe2348fc Dummy commit to trigger travis 2016-03-29 12:00:37 -07:00
Maxime Beauchemin 6e1413d2dd Adding dev-reqs.txt to build 2016-03-29 11:59:25 -07:00
Maxime Beauchemin 0296b839ec Changing repo token for coveralls 2016-03-29 11:28:06 -07:00
Maxime Beauchemin 1c44f34490 Merge pull request #204 from airbnb/fixes
Fixing the order and coverage report for the unit tests
2016-03-29 11:24:37 -07:00
Maxime Beauchemin 10f3991e1f Merge pull request #209 from airbnb/screenshots
Fresh screenshots
2016-03-29 11:12:10 -07:00
Maxime Beauchemin cda1bd59f9 Fresh screenshots 2016-03-29 11:11:13 -07:00
Maxime Beauchemin 8e27099866 Fixing the tests for py3 2016-03-29 10:02:15 -07:00
Maxime Beauchemin 60bce9ed59 Fixing the order and coverage report for the unit tests 2016-03-28 23:50:11 -07:00
Maxime Beauchemin 1b4e750b2a Merge pull request #206 from airbnb/caravel
Caravel
2016-03-28 23:45:38 -07:00
Maxime Beauchemin 619d35878f [dashed->caravel] Replace in files 2016-03-28 22:01:21 -07:00
Maxime Beauchemin d48796f00e Caravel - renaming files 2016-03-28 21:53:24 -07:00
Chris Williams 5561a4932a Merge pull request #205 from airbnb/chris/sunburst-fix
fix sunburst error. add `less` to package.json
2016-03-28 17:07:51 -07:00
Chris Williams 1aee5b7801 fix sunburst error. add less to package.json because less-loader complains if it's not there. 2016-03-28 15:20:08 -07:00
Maxime Beauchemin 74c72b3ce4 Merge pull request #203 from airbnb/fixes
Fixing mysql install
2016-03-27 23:03:19 -07:00
Maxime Beauchemin 09021aacad Adding LONG to list of numeric types, updating TODO 2016-03-27 22:51:45 -07:00
Maxime Beauchemin 26c725171b Fixing mysql install 2016-03-27 22:37:04 -07:00
Maxime Beauchemin 4a0ea5fff7 Merge pull request #202 from airbnb/better_tests
Using setup.py nosetests to run tests
2016-03-27 19:55:45 -07:00
Maxime Beauchemin 301dce2dd1 Using setup.py nosetests to run tests 2016-03-27 19:15:21 -07:00
Maxime Beauchemin 6dce6df6b2 JS Lint breaks the build 2016-03-27 15:36:32 -07:00
Maxime Beauchemin 2102e04fec Adding tests for ping and health enpoint 2016-03-27 14:23:49 -07:00
Maxime Beauchemin 2397645ed4 Fix intermitent bug with npm locks 2016-03-27 14:23:49 -07:00
Maxime Beauchemin 0a8a1eda94 Merge pull request #199 from airbnb/touchups
Fix a few minor bugs
2016-03-27 08:09:08 -07:00
Maxime Beauchemin 4d2492d8fd Merge pull request #200 from airbnb/sankey
Add a sankey example
2016-03-27 08:08:36 -07:00
Maxime Beauchemin 48210d5275 Add a sankey example 2016-03-27 00:27:48 -07:00
Maxime Beauchemin 5804991b19 Fix a few minor bugs 2016-03-27 00:18:26 -07:00
Maxime Beauchemin 5be7b03ba4 [hotfix] Fix tooltip overflow to be visible outside widget 2016-03-26 21:10:41 -07:00
Maxime Beauchemin a898c27403 Minor CSS for navbar brand to not decorate the link 2016-03-26 18:10:40 -07:00
Maxime Beauchemin 49747150ae [hotfix] merging 2 migration scripts 2016-03-26 15:15:21 -07:00
Maxime Beauchemin fdce2aac0d Merge pull request #192 from airbnb/kim/misc_hack
Fix Druid metadata refresh.
2016-03-25 22:16:54 -07:00
Maxime Beauchemin 1c19f7fc77 Merge pull request #198 from airbnb/welcome
A welcome page
2016-03-25 22:15:28 -07:00
Maxime Beauchemin 12e20ca440 Merge pull request #197 from NiharikaRay/master
Adding a DRUID_IS_ACTIVE flag and changing nav bar
2016-03-25 22:14:46 -07:00
Maxime Beauchemin 0ccc19ff9b Merge pull request #196 from airbnb/fix_audit
Fixing issues around fk nullable=False on audit fields
2016-03-25 22:13:45 -07:00
Maxime Beauchemin e7bed92519 [hotfix] can't back out of history after entering explore 2016-03-25 22:02:50 -07:00
Maxime Beauchemin 8c0870e6ea Linting to perfection 2016-03-25 21:55:28 -07:00
Maxime Beauchemin c9203554e7 a welcome page 2016-03-25 18:08:33 -07:00
Kim Pham 2378fdf9ce Disable polymorphism in DruidMetric as well 2016-03-25 16:45:35 -07:00
Kim Pham 23b6bca89e Fix style warning 2016-03-25 13:49:45 -07:00
Kim Pham 7a7eb33348 Disable Datasource sql polymorphism & Fix refresh Druid metadata. 2016-03-25 13:44:35 -07:00
Niharika Ray fee6b3fafa Adding a DRUID_IS_ACTIVE flag and changing nav bar 2016-03-25 11:26:59 -07:00
Maxime Beauchemin 0f637bdd2e Fixing issues around fk nullable=False on audit fields 2016-03-25 08:13:15 -07:00
Maxime Beauchemin 10a1eddaa7 Improving the docs build script 2016-03-24 08:08:05 -07:00
Maxime Beauchemin 21d1c0a1b5 0.8.4 2016-03-23 22:26:16 -07:00
Maxime Beauchemin 3118d1b302 Merge pull request #193 from airbnb/favstar
Adding favorites for Slices and Dashboards
2016-03-23 22:25:12 -07:00
Maxime Beauchemin 2362b5a157 Tunning tooltips 2016-03-23 22:23:29 -07:00
Maxime Beauchemin 7ede732892 Adding favorites for Slices and Dashboards 2016-03-23 22:15:23 -07:00
Maxime Beauchemin 5b10b19ed7 Fixing the docs 2016-03-23 21:41:37 -07:00
Maxime Beauchemin 14f298b385 dashboard bug fixes and better page titles 2016-03-23 21:27:45 -07:00
Maxime Beauchemin 89da51f8d7 Pointing landscape badge to the right branch 2016-03-23 16:16:20 -07:00
Maxime Beauchemin d5487c6b25 0.8.3 2016-03-23 14:11:37 -07:00
Maxime Beauchemin a244f3aafb Fixing build issues with preventive rm /Users/maxime_beauchemin/.npm/*.lock 2016-03-23 14:11:37 -07:00
Maxime Beauchemin 9d3bf7763c Fixing build issues with preventive rm /Users/maxime_beauchemin/.npm/*.lock 2016-03-23 11:14:29 -07:00
Maxime Beauchemin b0f10a90ce Merge pull request #188 from airbnb/caching
Introducing a caching layer!
2016-03-22 22:55:35 -07:00
Maxime Beauchemin 417749f880 Explore mode should only expose cache on first load 2016-03-22 22:09:02 -07:00
Maxime Beauchemin fded04a51d Hack to get the force refresh in the explore view 2016-03-22 18:11:10 -07:00
Maxime Beauchemin d8192eca0a Introducing a caching layer 2016-03-22 18:11:10 -07:00
Maxime Beauchemin 2d3edf3a2e js lint breaks the build 2016-03-22 08:16:23 -07:00
Maxime Beauchemin 0890d22899 Merge pull request #191 from airbnb/week-grain
Add week ending and week start to grain
2016-03-21 15:56:36 -07:00
Siddharth bad3128df9 Update grain label name 2016-03-21 15:41:49 -07:00
Siddharth 48c8a90247 Fix multi-line statement 2016-03-21 14:27:03 -07:00
Siddharth a9ba47fe12 Add week ending and week start to grain 2016-03-21 13:45:14 -07:00
Maxime Beauchemin f09f3d7c4b Merge pull request #190 from airbnb/vnum
Cranking up version numbers
2016-03-19 21:46:03 -07:00
Maxime Beauchemin e17d78e196 Cranking up version numbers 2016-03-19 21:33:39 -07:00
Maxime Beauchemin 9450c12552 note about the previous name in README 2016-03-19 16:09:08 -07:00
Maxime Beauchemin f01b41827e Adding reqs badge 2016-03-19 16:03:15 -07:00
Maxime Beauchemin b5f4d3b515 Adding reqs badge 2016-03-19 10:30:54 -07:00
Maxime Beauchemin 28e5a87cd0 pypi badges 2016-03-19 10:16:59 -07:00
Maxime Beauchemin 10c48f04cd [renaming] 2016-03-19 10:07:18 -07:00
Maxime Beauchemin f79aca1796 rename - 2nd phase 2016-03-18 08:52:50 -07:00
Maxime Beauchemin be6b2fe556 [panoramix] -> [dashed] 2016-03-17 23:44:58 -07:00
5293 changed files with 407173 additions and 7312 deletions
+30 -13
View File
@@ -1,33 +1,50 @@
*.pyc
yarn-error.log
_modules
superset/assets/coverage/*
changelog.sh
panoramix
caravel
superset
babel
.DS_Store
.coverage
_build
_static
_images
_modules
superset/bin/supersetc
env_py3
envpy3
.eggs
build
*.db
tmp
dashed_config.py
caravel_config.py
superset_config.py
local_config.py
env
dist
dashed.egg-info/
caravel.egg-info/
superset.egg-info/
env_py3
.eggs
dashed/
docs/
app.db
*.bak
.idea
*.sqllite
.vscode
.python-version
.tox
dump.rdb
# Node.js, webpack artifacts
*.entry.js
*.js.map
node_modules
npm-debug.log
npm-debug.log*
superset/assets/version_info.json
# IntelliJ
*.iml
venv
@eaDir/
# docker
/Dockerfile
/docker-build.sh
/docker-compose.yml
/docker-entrypoint.sh
/docker-init.sh
-25
View File
@@ -1,25 +0,0 @@
doc-warnings: yes
test-warnings: no
strictness: medium
max-line-length: 90
uses:
- flask
autodetect: yes
pylint:
disable:
- cyclic-import
- invalid-name
options:
docstring-min-length: 10
pep8:
full: true
ignore-paths:
- docs
- dashed/migrations/env.py
- dashed/ascii_art.py
ignore-patterns:
- ^example/doc_.*\.py$
- (^|/)docs(/|$)
python-targets:
- 2
- 3
-1
View File
@@ -1 +0,0 @@
{}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967966, "dep_lines": [1, 2, 3, 4, 5, 7, 14, 15, 1, 1, 1, 1], "dep_prios": [5, 5, 5, 5, 5, 5, 5, 5, 5, 20, 20, 30], "dependencies": ["_typeshed", "collections.abc", "pathlib", "typing", "typing_extensions", "PIL._imaging", "PIL.ImageFilter", "PIL.ImagePalette", "builtins", "pyexpat.model", "pyexpat.errors", "abc"], "hash": "56f1d198a7aed59daf1fcb2305a8fe8f95efbcc021ca1e71a2b5c2bd9dcfbbbf", "id": "PIL.Image", "ignore_all": true, "interface_hash": "98828b64419c192f66ffd11aa99a71da39f220eddb91c46ef8311c87969e0032", "mtime": 1633967946, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/PIL-stubs/Image.pyi", "plugin_data": null, "size": 9542, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1633967966, "dep_lines": [1, 2, 3, 5, 1, 1, 1, 1], "dep_prios": [5, 5, 5, 5, 5, 20, 20, 30], "dependencies": ["_typeshed", "typing", "typing_extensions", "PIL.Image", "builtins", "pyexpat.model", "pyexpat.errors", "abc"], "hash": "5e6d9e2c6e102a21146e6fc3020d8db353e65898d873555318345d332db55462", "id": "PIL.ImageFilter", "ignore_all": true, "interface_hash": "72d24ce59721f20769f9578be11c07bca196524fa8f7b18be281fa833ad14a6b", "mtime": 1633967946, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/PIL-stubs/ImageFilter.pyi", "plugin_data": null, "size": 3429, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1633967966, "dep_lines": [1, 3, 1, 1, 1, 1], "dep_prios": [5, 5, 5, 20, 20, 30], "dependencies": ["typing", "PIL.Image", "builtins", "pyexpat.model", "pyexpat.errors", "abc"], "hash": "beafade0410ab2bbbf2727feda2e33b95637f23846a004d7e82e471a52fd2c48", "id": "PIL.ImagePalette", "ignore_all": true, "interface_hash": "048ce0ac93007a0557f3f5c23b8a1b4fe95010e4f1f81b7148f281559029d967", "mtime": 1633967946, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/PIL-stubs/ImagePalette.pyi", "plugin_data": null, "size": 753, "suppressed": [], "version_id": "0.910"}
-1
View File
@@ -1 +0,0 @@
{".class": "MypyFile", "_fullname": "PIL", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "UnidentifiedImageError": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.OSError"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "PIL.UnidentifiedImageError", "name": "UnidentifiedImageError", "type_vars": []}, "flags": [], "fullname": "PIL.UnidentifiedImageError", "metaclass_type": null, "metadata": {}, "module_name": "PIL", "mro": ["PIL.UnidentifiedImageError", "builtins.OSError", "builtins.Exception", "builtins.BaseException", "builtins.object"], "names": {".class": "SymbolTable"}, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "PIL.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "PIL.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "PIL.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "PIL.__package__", "name": "__package__", "type": "builtins.str"}}, "__version__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "PIL.__version__", "name": "__version__", "type": "builtins.str"}}}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/PIL-stubs/__init__.pyi"}
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967965, "dep_lines": [1, 1, 1], "dep_prios": [5, 30, 30], "dependencies": ["builtins", "abc", "typing"], "hash": "ae803982d8908eddb162c37ee8cf1e5637f37691caaa1ef47367ebcbe4b2e863", "id": "PIL", "ignore_all": true, "interface_hash": "056c725bfb0b38e43ed69eb19423bad0b996486a79d8699712adeca64f997e8f", "mtime": 1633967946, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/PIL-stubs/__init__.pyi", "plugin_data": null, "size": 61, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967965, "dep_lines": [1, 2, 3, 1], "dep_prios": [5, 5, 5, 5], "dependencies": ["collections.abc", "typing", "typing_extensions", "builtins"], "hash": "935c404c455858f3444664123aa56bd2ae84474660966b1c6845bc3452180501", "id": "PIL._imaging", "ignore_all": true, "interface_hash": "f77690b18539bc067aeb271fe8b16de076ba59f6f1cf21fdbec20856f69bb75a", "mtime": 1633967946, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/PIL-stubs/_imaging.pyi", "plugin_data": null, "size": 418, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967965, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "01c32067f4efe43ef9e9d8fbfa16d14841acd3703984f9dbe5ea23d2f9979685", "id": "__future__", "ignore_all": true, "interface_hash": "ee329ce9f5f43f03d59b5bdf5966b5ac0ca67e2c617b9b314367be7a433543f6", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/__future__.pyi", "plugin_data": null, "size": 716, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967964, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "88442b9d543709953414864e0242dc79087a1c166694a453adcf0a0eb3a7e04f", "id": "_ast", "ignore_all": true, "interface_hash": "722efbfd62c14d801c105e9563494839cde277137a37113017fb136a679818a0", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_ast.pyi", "plugin_data": null, "size": 8975, "suppressed": [], "version_id": "0.910"}
@@ -1 +0,0 @@
{".class": "MypyFile", "_fullname": "_collections_abc", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "AsyncGenerator": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncGenerator", "kind": "Gdef"}, "AsyncIterable": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncIterable", "kind": "Gdef"}, "AsyncIterator": {".class": "SymbolTableNode", "cross_ref": "typing.AsyncIterator", "kind": "Gdef"}, "Awaitable": {".class": "SymbolTableNode", "cross_ref": "typing.Awaitable", "kind": "Gdef"}, "ByteString": {".class": "SymbolTableNode", "cross_ref": "typing.ByteString", "kind": "Gdef"}, "Callable": {".class": "SymbolTableNode", "cross_ref": "typing.Callable", "kind": "Gdef"}, "Collection": {".class": "SymbolTableNode", "cross_ref": "typing.Collection", "kind": "Gdef"}, "Container": {".class": "SymbolTableNode", "cross_ref": "typing.Container", "kind": "Gdef"}, "Coroutine": {".class": "SymbolTableNode", "cross_ref": "typing.Coroutine", "kind": "Gdef"}, "Generator": {".class": "SymbolTableNode", "cross_ref": "typing.Generator", "kind": "Gdef"}, "Hashable": {".class": "SymbolTableNode", "cross_ref": "typing.Hashable", "kind": "Gdef"}, "ItemsView": {".class": "SymbolTableNode", "cross_ref": "typing.ItemsView", "kind": "Gdef"}, "Iterable": {".class": "SymbolTableNode", "cross_ref": "typing.Iterable", "kind": "Gdef"}, "Iterator": {".class": "SymbolTableNode", "cross_ref": "typing.Iterator", "kind": "Gdef"}, "KeysView": {".class": "SymbolTableNode", "cross_ref": "typing.KeysView", "kind": "Gdef"}, "Mapping": {".class": "SymbolTableNode", "cross_ref": "typing.Mapping", "kind": "Gdef"}, "MappingView": {".class": "SymbolTableNode", "cross_ref": "typing.MappingView", "kind": "Gdef"}, "MutableMapping": {".class": "SymbolTableNode", "cross_ref": "typing.MutableMapping", "kind": "Gdef"}, "MutableSequence": {".class": "SymbolTableNode", "cross_ref": "typing.MutableSequence", "kind": "Gdef"}, "MutableSet": {".class": "SymbolTableNode", "cross_ref": "typing.MutableSet", "kind": "Gdef"}, "Reversible": {".class": "SymbolTableNode", "cross_ref": "typing.Reversible", "kind": "Gdef"}, "Sequence": {".class": "SymbolTableNode", "cross_ref": "typing.Sequence", "kind": "Gdef"}, "Set": {".class": "SymbolTableNode", "cross_ref": "typing.AbstractSet", "kind": "Gdef"}, "Sized": {".class": "SymbolTableNode", "cross_ref": "typing.Sized", "kind": "Gdef"}, "ValuesView": {".class": "SymbolTableNode", "cross_ref": "typing.ValuesView", "kind": "Gdef"}, "__all__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": [], "fullname": "_collections_abc.__all__", "name": "__all__", "type": {".class": "Instance", "args": ["builtins.str"], "type_ref": "builtins.list"}}}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_collections_abc.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_collections_abc.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_collections_abc.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "module_public": false, "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_collections_abc.__package__", "name": "__package__", "type": "builtins.str"}}}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_collections_abc.pyi"}
@@ -1 +0,0 @@
{"data_mtime": 1633967964, "dep_lines": [1, 1, 1], "dep_prios": [5, 5, 30], "dependencies": ["typing", "builtins", "abc"], "hash": "8dee869e02b4048264ead31123fa8e84365e01e064300632c143bc47ddd49282", "id": "_collections_abc", "ignore_all": true, "interface_hash": "c780d0417c192e1b457c72d306cb2825c1af44e5cf4758d2c94b08649d864fc5", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_collections_abc.pyi", "plugin_data": null, "size": 1210, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967965, "dep_lines": [1, 2, 3, 1], "dep_prios": [5, 5, 5, 5], "dependencies": ["_typeshed", "io", "typing", "builtins"], "hash": "e6b9b1a0341314527587f80d82519f01015af439c113359c0d7a4b23c8f1e4d8", "id": "_compression", "ignore_all": true, "interface_hash": "053a7cae0b2e2a2a3494120e0ad71ddbe9acecd1bb4f8cc8c8a3f1aeacec0845", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_compression.pyi", "plugin_data": null, "size": 915, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592672050, "dep_lines": [1, 3, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "9b25289c9e02ca5e3bf326c30e66ff67ddd2bf1fd03c68f01bffbb97aa6c9f24", "id": "_csv", "ignore_all": true, "interface_hash": "5cf1c6563506ca562ad76b9507c45b53fc5706f81a2136ee1baa6b1c9b9aab78", "mtime": 1592672031, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/code/superset/.tox/mypy/lib/python3.6/site-packages/mypy/typeshed/stdlib/2and3/_csv.pyi", "plugin_data": null, "size": 1575, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712555, "dep_lines": [3, 4, 6, 1], "dep_prios": [10, 5, 5, 5], "dependencies": ["types", "typing", "importlib.machinery", "builtins"], "hash": "93e5e07697adedb9db00641e22de733c12e69da0463f7368bfb6d26bdaa93215", "id": "_imp", "ignore_all": true, "interface_hash": "35224a2492d419ce76bd54c8ee8afd198dee744f0bd114c50a2080920d8a462c", "mtime": 1592280872, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/mypy/typeshed/stdlib/3/_imp.pyi", "plugin_data": null, "size": 737, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1628314933, "dep_lines": [10, 11, 1], "dep_prios": [5, 5, 5], "dependencies": ["abc", "typing", "builtins"], "hash": "d87d41ab0926cdebbb55d841aff643e181982df1427103ed7ebb3c55cf3e0742", "id": "_importlib_modulespec", "ignore_all": true, "interface_hash": "016c1cb41b9cc9986d92048f0ec9599bcb4409bcde8064f5fff4bae6acc0d702", "mtime": 1611200763, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repovbfsrd4c/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/3/_importlib_modulespec.pyi", "plugin_data": null, "size": 1586, "suppressed": [], "version_id": "0.790"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967965, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "3adff278c22c8d2c706053247acfd444fd8e959ab345e3d57986826e742bfaa2", "id": "_random", "ignore_all": true, "interface_hash": "954657b7aac54f374ef435828c400cf0f8e12c2c6f4dbb659299dff62fb431e3", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_random.pyi", "plugin_data": null, "size": 478, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967966, "dep_lines": [1, 2, 3, 4, 1, 1], "dep_prios": [10, 5, 5, 5, 5, 30], "dependencies": ["sys", "threading", "types", "typing", "builtins", "abc"], "hash": "6f0451574b6e1309de5677382d205e623099a7aadb515031cc5535ef14715737", "id": "_thread", "ignore_all": true, "interface_hash": "fef9630e64f19e44be7f94fc4ab744b509fd361926cc36efe761c3bba8307bcb", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_thread.pyi", "plugin_data": null, "size": 1451, "suppressed": [], "version_id": "0.910"}
-1
View File
@@ -1 +0,0 @@
{".class": "MypyFile", "_fullname": "_types", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "FileDescriptor": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeAlias", "alias_tvars": [], "column": 0, "fullname": "_types.FileDescriptor", "line": 9, "no_args": true, "normalized": false, "target": "builtins.int"}}, "FileDescriptorLike": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeAlias", "alias_tvars": [], "column": 0, "fullname": "_types.FileDescriptorLike", "line": 10, "no_args": false, "normalized": false, "target": {".class": "UnionType", "items": ["builtins.int", "_types.HasFileno"]}}}, "HasFileno": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "_types.HasFileno", "name": "HasFileno", "type_vars": []}, "flags": ["is_protocol"], "fullname": "_types.HasFileno", "metaclass_type": "abc.ABCMeta", "metadata": {}, "module_name": "_types", "mro": ["_types.HasFileno", "builtins.object"], "names": {".class": "SymbolTable", "fileno": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0], "arg_names": ["self"], "flags": [], "fullname": "_types.HasFileno.fileno", "name": "fileno", "type": {".class": "CallableType", "arg_kinds": [0], "arg_names": ["self"], "arg_types": ["_types.HasFileno"], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "fileno of HasFileno", "ret_type": "builtins.int", "variables": []}}}}, "tuple_type": null, "type_vars": [], "typeddict_type": null}}, "Protocol": {".class": "SymbolTableNode", "cross_ref": "typing.Protocol", "kind": "Gdef", "module_hidden": true, "module_public": false}, "Union": {".class": "SymbolTableNode", "cross_ref": "typing.Union", "kind": "Gdef", "module_hidden": true, "module_public": false}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_types.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_types.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_types.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "_types.__package__", "name": "__package__", "type": "builtins.str"}}, "type_check_only": {".class": "SymbolTableNode", "cross_ref": "typing.type_check_only", "kind": "Gdef", "module_hidden": true, "module_public": false}}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/mypy/typeshed/stdlib/2and3/_types.pyi"}
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712554, "dep_lines": [3, 1, 1], "dep_prios": [5, 5, 30], "dependencies": ["typing", "builtins", "abc"], "hash": "9d19836709fd36f9201f40f63697e258deed4489c5f38778cae22b38691c42b8", "id": "_types", "ignore_all": true, "interface_hash": "e8c45c72c83adb9ee65a163b501a54d208f3c922a105827a0236f6934d46b2af", "mtime": 1592280872, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/mypy/typeshed/stdlib/2and3/_types.pyi", "plugin_data": null, "size": 268, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1633967964, "dep_lines": [15, 16, 17, 18, 19, 63, 1, 1], "dep_prios": [10, 10, 10, 5, 5, 5, 5, 30], "dependencies": ["array", "mmap", "sys", "typing", "typing_extensions", "os", "builtins", "abc"], "hash": "4da560c173545b345490bb875bc330738350d53e1be1bbf94c124bc29c6a2410", "id": "_typeshed", "ignore_all": true, "interface_hash": "6abe2abdc1f24b180a51740d32917597dab77fb31c03aa656a1f751a595e2b51", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_typeshed/__init__.pyi", "plugin_data": null, "size": 4926, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967965, "dep_lines": [6, 7, 1, 1], "dep_prios": [5, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "9f4a7b7a0523858ec79e2f81c263997753a9396cbf1a4a4d0ca0d81c71dcaca1", "id": "_typeshed.wsgi", "ignore_all": true, "interface_hash": "3ed9130b0a2728d706b248225379654577efa65fbbdade295c6f69988624adfb", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_typeshed/wsgi.pyi", "plugin_data": null, "size": 1293, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967965, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "e61da788d878ef16fb1bba7a30ebd04a3f8d5671497ff862c323b868b374e416", "id": "_warnings", "ignore_all": true, "interface_hash": "eb79a90543e43e935cd00fff9ae38783f0f21bf0851ffefabb548e968bff8de7", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/_warnings.pyi", "plugin_data": null, "size": 2233, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712553, "dep_lines": [1, 2, 1, 1], "dep_prios": [10, 5, 5, 30], "dependencies": ["sys", "typing", "builtins", "abc"], "hash": "76c4ab6af205d1d4a112df710e375fa68e295596b7b89e538063ac5b75e323b1", "id": "_weakref", "ignore_all": true, "interface_hash": "4c299354a52ba07e47aeb557dbe8eb75a15d9252a6b10a4bf846a2aaac9eb59b", "mtime": 1592280872, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/mypy/typeshed/stdlib/2and3/_weakref.pyi", "plugin_data": null, "size": 1028, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712553, "dep_lines": [1, 1], "dep_prios": [5, 5], "dependencies": ["typing", "builtins"], "hash": "892c35cf3d58377315da8b2d071675108e9fa5233005b02f17a4f41f9bd2ab65", "id": "_weakrefset", "ignore_all": true, "interface_hash": "036409830b3c22c2b4dbfaee258188dd196783d0e03c35c8ae6dd65d6d99b7f0", "mtime": 1592280872, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/mypy/typeshed/stdlib/2and3/_weakrefset.pyi", "plugin_data": null, "size": 2239, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1633967964, "dep_lines": [1, 1], "dep_prios": [5, 5], "dependencies": ["typing", "builtins"], "hash": "9734c3b7d5b86ff8316f71d3a937d692ebd7c047a52203f6bc8132ceb0152fae", "id": "abc", "ignore_all": true, "interface_hash": "70476dd5d13f477b35f50579b1fddac73b3cc7775112a402d8626e62ec79c517", "mtime": 1633967947, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": true, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": true, "disallow_untyped_decorators": false, "disallow_untyped_defs": true, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.cache/pre-commit/repoejng1phv/py_env-python3.6/lib/python3.6/site-packages/mypy/typeshed/stdlib/abc.pyi", "plugin_data": null, "size": 596, "suppressed": [], "version_id": "0.910"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [3, 5, 6, 39, 41, 42, 44, 51, 62, 75, 76, 79, 80, 85, 223, 1, 1], "dep_prios": [5, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 30], "dependencies": ["typing", "aiohttp.hdrs", "aiohttp.client", "aiohttp.cookiejar", "aiohttp.formdata", "aiohttp.helpers", "aiohttp.http", "aiohttp.multipart", "aiohttp.payload", "aiohttp.payload_streamer", "aiohttp.resolver", "aiohttp.signals", "aiohttp.streams", "aiohttp.tracing", "aiohttp.worker", "builtins", "abc"], "hash": "865fa62b6ae5528690636af73eb6ad068c7d1921f5e70430d08ffd12ec5bb0ce", "id": "aiohttp", "ignore_all": true, "interface_hash": "87f0502fb391305f896be30d9df23f2fa9838f0ec7cdfa01ec0af3ab17c06a9c", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/__init__.py", "plugin_data": null, "size": 8201, "suppressed": [], "version_id": "0.770"}
@@ -1 +0,0 @@
{".class": "MypyFile", "_fullname": "aiohttp._helpers", "is_partial_stub_package": false, "is_stub": true, "names": {".class": "SymbolTable", "Any": {".class": "SymbolTableNode", "cross_ref": "typing.Any", "kind": "Gdef", "module_hidden": true, "module_public": false}, "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp._helpers.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp._helpers.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp._helpers.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp._helpers.__package__", "name": "__package__", "type": "builtins.str"}}, "reify": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "TypeInfo", "_promote": null, "abstract_attributes": [], "bases": ["builtins.object"], "declared_metaclass": null, "defn": {".class": "ClassDef", "fullname": "aiohttp._helpers.reify", "name": "reify", "type_vars": []}, "flags": [], "fullname": "aiohttp._helpers.reify", "metaclass_type": null, "metadata": {}, "module_name": "aiohttp._helpers", "mro": ["aiohttp._helpers.reify", "builtins.object"], "names": {".class": "SymbolTable", "__get__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "inst", "owner"], "flags": [], "fullname": "aiohttp._helpers.reify.__get__", "name": "__get__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "inst", "owner"], "arg_types": ["aiohttp._helpers.reify", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "__get__ of reify", "ret_type": {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, "variables": []}}}, "__init__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0], "arg_names": ["self", "wrapped"], "flags": [], "fullname": "aiohttp._helpers.reify.__init__", "name": "__init__", "type": {".class": "CallableType", "arg_kinds": [0, 0], "arg_names": ["self", "wrapped"], "arg_types": ["aiohttp._helpers.reify", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "__init__ of reify", "ret_type": {".class": "NoneType"}, "variables": []}}}, "__set__": {".class": "SymbolTableNode", "kind": "Mdef", "node": {".class": "FuncDef", "arg_kinds": [0, 0, 0], "arg_names": ["self", "inst", "value"], "flags": [], "fullname": "aiohttp._helpers.reify.__set__", "name": "__set__", "type": {".class": "CallableType", "arg_kinds": [0, 0, 0], "arg_names": ["self", "inst", "value"], "arg_types": ["aiohttp._helpers.reify", {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}, {".class": "AnyType", "missing_import_name": null, "source_any": null, "type_of_any": 2}], "bound_args": [], "def_extras": {"first_arg": "self"}, "fallback": "builtins.function", "implicit": false, "is_ellipsis_args": false, "name": "__set__ of reify", "ret_type": {".class": "NoneType"}, "variables": []}}}}, "tuple_type": null, "type_vars": [], "typeddict_type": null}}}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/_helpers.pyi"}
@@ -1 +0,0 @@
{"data_mtime": 1592712553, "dep_lines": [1, 1], "dep_prios": [5, 5], "dependencies": ["typing", "builtins"], "hash": "98945be58746f03c586cf7d575d1911a68bddeaa9a24cdf42f5a85a6048a42e0", "id": "aiohttp._helpers", "ignore_all": true, "interface_hash": "cf473976b5d8520d798f9593eed2820c8d75fdc44929fab462939e0eb5a8e5c8", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/_helpers.pyi", "plugin_data": null, "size": 204, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 4, 5, 6, 19, 20, 22, 23, 26, 27, 28, 29, 1, 1, 1], "dep_prios": [10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 25, 25, 25, 25, 5, 30, 30], "dependencies": ["asyncio", "logging", "abc", "collections.abc", "http.cookies", "typing", "multidict", "yarl", "aiohttp.helpers", "aiohttp.typedefs", "aiohttp.web_request", "aiohttp.web_response", "aiohttp.web_app", "aiohttp.web_exceptions", "builtins", "asyncio.events", "http"], "hash": "96c7f66f3fbd2ada8b86d23e7beb66829df29f388cca9632107bf03a7160ee54", "id": "aiohttp.abc", "ignore_all": true, "interface_hash": "bdcc6520bbcd9ecc72459abdcb8cd39e89264d9da8bb04bc9a2bcb43a6ce9058", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/abc.py", "plugin_data": null, "size": 5392, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712556, "dep_lines": [1, 2, 4, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 5, 5, 5, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "typing", "aiohttp.tcp_helpers", "builtins", "abc", "asyncio.events", "asyncio.futures", "asyncio.protocols", "asyncio.transports"], "hash": "935d5bb7d26b0642897040ea4ed112eaf220b9c7b485a67d8d585c303b7d2d8b", "id": "aiohttp.base_protocol", "ignore_all": true, "interface_hash": "8739050581192cfb24a53f41cb0e7a51922ea6dbdab8a86766755b40a8e0e8ef", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/base_protocol.py", "plugin_data": null, "size": 2663, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 28, 29, 30, 32, 32, 32, 32, 33, 34, 63, 68, 69, 73, 74, 86, 92, 93, 94, 136, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 10, 10, 10, 10, 10, 10, 5, 5, 10, 5, 5, 20, 10, 5, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "base64", "hashlib", "json", "os", "sys", "traceback", "warnings", "types", "typing", "attr", "multidict", "yarl", "aiohttp", "aiohttp.hdrs", "aiohttp.http", "aiohttp.payload", "aiohttp.abc", "aiohttp.client_exceptions", "aiohttp.client_reqrep", "aiohttp.client_ws", "aiohttp.connector", "aiohttp.cookiejar", "aiohttp.helpers", "aiohttp.http_websocket", "aiohttp.streams", "aiohttp.tracing", "aiohttp.typedefs", "ssl", "builtins", "_importlib_modulespec", "_warnings", "abc", "aiohttp.base_protocol", "aiohttp.client_proto", "aiohttp.http_writer", "async_timeout", "asyncio.events", "asyncio.futures", "asyncio.protocols", "asyncio.tasks", "asyncio.transports", "concurrent", "concurrent.futures", "concurrent.futures._base", "http", "http.cookies", "json.encoder"], "hash": "ffe836803d479bc5cb44999ee81c9a0518a42076e741dfe5eb970e83f5071d41", "id": "aiohttp.client", "ignore_all": true, "interface_hash": "d77f31a4de6209d8fb218379ae5667d6c8cf8e4502726c6fe6607dc7936a69de", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/client.py", "plugin_data": null, "size": 43979, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [3, 4, 5, 7, 10, 17, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 5, 5, 10, 25, 5, 30, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "warnings", "typing", "aiohttp.typedefs", "ssl", "aiohttp.client_reqrep", "builtins", "_importlib_modulespec", "_warnings", "abc", "aiohttp.helpers", "multidict", "yarl"], "hash": "e74102a5bfdfc89d064e8a7fcbec3253ce5a71a5f583700e4c5b4b3c5dcc5c9f", "id": "aiohttp.client_exceptions", "ignore_all": true, "interface_hash": "556988e2f7cae9619433bd21ee3b1652ca1b60f787e2e7df2208522abea86912", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/client_exceptions.py", "plugin_data": null, "size": 8494, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 5, 6, 12, 13, 14, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 5, 5, 5, 5, 5, 5, 5, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "contextlib", "typing", "aiohttp.base_protocol", "aiohttp.client_exceptions", "aiohttp.helpers", "aiohttp.http", "aiohttp.streams", "builtins", "abc", "aiohttp.http_parser", "asyncio.events", "asyncio.protocols", "asyncio.transports", "concurrent", "concurrent.futures", "concurrent.futures._base", "multidict"], "hash": "113cc3dbdd2608f5ff8143f58a81cedc135c3246c18f0dc7a3661bfd3c933de5", "id": "aiohttp.client_proto", "ignore_all": true, "interface_hash": "471e9ac8815eb5f9ed0580d20d2d872c27a3e895d6b2d03638dd78ca35c255d7", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/client_proto.py", "plugin_data": null, "size": 8037, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 25, 26, 27, 29, 29, 29, 29, 29, 29, 30, 31, 39, 51, 52, 53, 62, 78, 79, 80, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 71, 69], "dep_prios": [10, 10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 10, 5, 5, 20, 10, 5, 5, 10, 10, 5, 5, 5, 5, 5, 5, 5, 25, 25, 25, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 10, 10], "dependencies": ["asyncio", "codecs", "io", "re", "sys", "traceback", "warnings", "hashlib", "http.cookies", "types", "typing", "attr", "multidict", "yarl", "aiohttp", "aiohttp.hdrs", "aiohttp.helpers", "aiohttp.http", "aiohttp.multipart", "aiohttp.payload", "aiohttp.abc", "aiohttp.client_exceptions", "aiohttp.formdata", "aiohttp.log", "aiohttp.streams", "aiohttp.typedefs", "ssl", "aiohttp.client", "aiohttp.connector", "aiohttp.tracing", "builtins", "_importlib_modulespec", "_warnings", "abc", "aiohttp.base_protocol", "aiohttp.client_proto", "aiohttp.http_exceptions", "aiohttp.http_parser", "aiohttp.http_writer", "asyncio.events", "asyncio.futures", "asyncio.protocols", "asyncio.tasks", "asyncio.transports", "concurrent", "concurrent.futures", "concurrent.futures._base", "enum", "functools", "http", "json", "json.decoder", "logging"], "hash": "e39213b6a430db2bffc4a641045ae38ea8e31f6a40bcdb0ca6fcc9837fe05c37", "id": "aiohttp.client_reqrep", "ignore_all": true, "interface_hash": "a7da7031c43085836ed5ce441087a2eb25d88bb23bd7a13aec99460260e00a5d", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/client_reqrep.py", "plugin_data": null, "size": 36012, "suppressed": ["chardet", "cchardet"], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [3, 4, 6, 8, 9, 10, 11, 18, 19, 20, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 5, 10, 5, 5, 5, 5, 5, 5, 5, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "typing", "async_timeout", "aiohttp.client_exceptions", "aiohttp.client_reqrep", "aiohttp.helpers", "aiohttp.http", "aiohttp.http_websocket", "aiohttp.streams", "aiohttp.typedefs", "builtins", "abc", "aiohttp.connector", "asyncio.events", "asyncio.futures", "asyncio.tasks", "asyncio.transports", "concurrent", "concurrent.futures", "concurrent.futures._base", "enum", "json", "json.decoder", "json.encoder"], "hash": "010963fa9781034986cab6b5b77f2c5a57d5dbc304334480013457a754ec17d2", "id": "aiohttp.client_ws", "ignore_all": true, "interface_hash": "7fa54cb22b7a399de6311b7952c8fec2cc8b99b492e9f398a0ae213c12629923", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/client_ws.py", "plugin_data": null, "size": 10694, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 30, 32, 32, 32, 33, 34, 45, 46, 55, 56, 57, 60, 72, 74, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 5, 5, 5, 10, 20, 10, 5, 5, 5, 5, 5, 5, 5, 5, 10, 25, 25, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "functools", "random", "sys", "traceback", "warnings", "collections", "contextlib", "http.cookies", "itertools", "time", "types", "typing", "attr", "aiohttp", "aiohttp.hdrs", "aiohttp.helpers", "aiohttp.abc", "aiohttp.client_exceptions", "aiohttp.client_proto", "aiohttp.client_reqrep", "aiohttp.http", "aiohttp.locks", "aiohttp.resolver", "ssl", "aiohttp.client", "aiohttp.tracing", "builtins", "_importlib_modulespec", "_warnings", "abc", "aiohttp.base_protocol", "aiohttp.http_writer", "aiohttp.streams", "async_timeout", "asyncio.events", "asyncio.futures", "asyncio.protocols", "asyncio.tasks", "asyncio.transports", "http", "multidict", "socket", "yarl"], "hash": "5210410757f8ba32cbb6cdd31064d5128aab16c38e1d625e81dc8aa32fc48683", "id": "aiohttp.connector", "ignore_all": true, "interface_hash": "e9730e08d4fe33b5cdc53ae631a8ba1f1f5b595881513247aee6ede6cb2c56f6", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/connector.py", "plugin_data": null, "size": 42479, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 4, 5, 6, 7, 8, 9, 22, 24, 25, 26, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 30, 30, 30, 30], "dependencies": ["asyncio", "datetime", "os", "pathlib", "pickle", "re", "collections", "http.cookies", "typing", "yarl", "aiohttp.abc", "aiohttp.helpers", "aiohttp.typedefs", "builtins", "abc", "asyncio.events", "enum", "http"], "hash": "c965daed850d103d7bf837b4a3361fe71a1aa2bb7214be155113ea92e58851e7", "id": "aiohttp.cookiejar", "ignore_all": true, "interface_hash": "54ea5326aae658568a52c970082cee004f23f629a99f9ca9df2a22ba0bfbbe0c", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/cookiejar.py", "plugin_data": null, "size": 11881, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 5, 7, 7, 7, 7, 8, 1, 1, 1], "dep_prios": [10, 5, 5, 5, 20, 10, 10, 5, 5, 5, 30, 30], "dependencies": ["io", "typing", "urllib.parse", "multidict", "aiohttp", "aiohttp.hdrs", "aiohttp.multipart", "aiohttp.payload", "aiohttp.helpers", "builtins", "abc", "urllib"], "hash": "5590a8f649836f9d254147113037c01f777996747106afc05f7f207bcbc5234d", "id": "aiohttp.formdata", "ignore_all": true, "interface_hash": "58a49427723a42087beb34d822fd53012bb536d6536ada8df85c81ae19fb4938", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/formdata.py", "plugin_data": null, "size": 5807, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712553, "dep_lines": [1, 1, 1], "dep_prios": [5, 5, 30], "dependencies": ["typing", "builtins", "abc"], "hash": "5e6ace4edb773c7d1ebdc718952b05024816c6a1e2ce6f48caf471bea4add8c0", "id": "aiohttp.frozenlist", "ignore_all": true, "interface_hash": "710e156d643ccf3453a3af4adc2d6023333d362be62e3741ec46a18329d40b63", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/frozenlist.pyi", "plugin_data": null, "size": 1449, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712554, "dep_lines": [6, 1, 1, 1], "dep_prios": [5, 5, 30, 30], "dependencies": ["multidict", "builtins", "abc", "typing"], "hash": "89a5e71d7391fc3c74aef564be621985cfbb1207f6072b920c8f6daac912d244", "id": "aiohttp.hdrs", "ignore_all": true, "interface_hash": "1c4794dd5061647619c000875bfb71a40c52f266adb39760d74fda6ba32f4c69", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/hdrs.py", "plugin_data": null, "size": 3449, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 40, 41, 43, 44, 45, 46, 48, 48, 49, 50, 65, 408, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 59], "dep_prios": [10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 10, 10, 5, 5, 20, 10, 5, 5, 5, 5, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 30, 10], "dependencies": ["asyncio", "base64", "binascii", "cgi", "datetime", "functools", "inspect", "netrc", "os", "platform", "re", "sys", "time", "warnings", "weakref", "collections", "contextlib", "math", "pathlib", "types", "typing", "urllib.parse", "urllib.request", "async_timeout", "attr", "multidict", "yarl", "aiohttp", "aiohttp.hdrs", "aiohttp.log", "aiohttp.typedefs", "typing_extensions", "aiohttp._helpers", "builtins", "_importlib_modulespec", "_warnings", "_weakref", "abc", "asyncio.coroutines", "asyncio.events", "asyncio.futures", "asyncio.tasks", "concurrent", "concurrent.futures", "concurrent.futures._base", "enum", "logging", "urllib"], "hash": "517c7ad0a72a37188a9d8a5bdebb81e12b8b03c9fc822fd0a5de5c0f3c55a549", "id": "aiohttp.helpers", "ignore_all": true, "interface_hash": "61226ed448fad27cb69028974c20b8127d2e95aa25c91d6f14ceebaae634d24f", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/helpers.py", "plugin_data": null, "size": 22898, "suppressed": ["idna_ssl"], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 1, 2, 3, 5, 6, 7, 13, 24, 1, 1, 1], "dep_prios": [10, 20, 10, 5, 5, 5, 5, 5, 5, 5, 30, 30], "dependencies": ["http.server", "http", "sys", "typing", "aiohttp", "aiohttp.http_exceptions", "aiohttp.http_parser", "aiohttp.http_websocket", "aiohttp.http_writer", "builtins", "abc", "socketserver"], "hash": "6338a17cd80a5009ddb978cb7725df810156909e06950a44746827f145939b3b", "id": "aiohttp.http", "ignore_all": true, "interface_hash": "b8d3bc980a1c5f2807580c7ca6336b595ff626ff9e7924ca2e2271f9ac01165c", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/http.py", "plugin_data": null, "size": 2133, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712555, "dep_lines": [4, 6, 1, 1, 1], "dep_prios": [5, 5, 5, 30, 30], "dependencies": ["typing", "aiohttp.typedefs", "builtins", "abc", "multidict"], "hash": "57cb112d27ebb16cca183b8af53612c7d2d60ee24ee9afa0396d411520c1c793", "id": "aiohttp.http_exceptions", "ignore_all": true, "interface_hash": "7593e6b2d509d3497e34dd0f9362c837eb0cbb8cb21f4cd88e96d9d7dc0a474b", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/http_exceptions.py", "plugin_data": null, "size": 2663, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 13, 13, 14, 15, 16, 24, 25, 26, 27, 1, 1, 1, 1, 1, 30, 755], "dep_prios": [10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 20, 10, 5, 5, 5, 5, 5, 5, 5, 5, 30, 30, 30, 30, 10, 5], "dependencies": ["abc", "asyncio", "collections", "re", "string", "zlib", "enum", "typing", "multidict", "yarl", "aiohttp", "aiohttp.hdrs", "aiohttp.base_protocol", "aiohttp.helpers", "aiohttp.http_exceptions", "aiohttp.http_writer", "aiohttp.log", "aiohttp.streams", "aiohttp.typedefs", "builtins", "asyncio.events", "asyncio.protocols", "logging", "types"], "hash": "bfd72c2ac06ffab98e8abd6291105c0c90c068f32c15e9f51e83fcfd58b3eb11", "id": "aiohttp.http_parser", "ignore_all": true, "interface_hash": "1d7fbdbf39fe7e6b8a5cff501649ef176d4daa785fa65f7bfc8cbb958e115424", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/http_parser.py", "plugin_data": null, "size": 27912, "suppressed": ["brotli", "aiohttp._http_parser"], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 15, 16, 17, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 148], "dep_prios": [10, 10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30, 5], "dependencies": ["asyncio", "collections", "json", "random", "re", "sys", "zlib", "enum", "struct", "typing", "aiohttp.base_protocol", "aiohttp.helpers", "aiohttp.log", "aiohttp.streams", "builtins", "_random", "abc", "array", "asyncio.protocols", "asyncio.transports", "json.decoder", "logging", "mmap", "types"], "hash": "2092c0a6a379dc9b2e40afaf539ac7812ccd8de78985e730892ec0c0bc1618a9", "id": "aiohttp.http_websocket", "ignore_all": true, "interface_hash": "7159a7e52686ca9bbd0122b99447a64c13017346a492d7356b889aab7a3f1741", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/http_websocket.py", "plugin_data": null, "size": 24741, "suppressed": ["aiohttp._websocket"], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [3, 4, 5, 6, 8, 10, 11, 12, 167, 1, 1, 1, 1, 1, 167], "dep_prios": [10, 10, 10, 5, 5, 5, 5, 5, 20, 5, 30, 30, 30, 30, 10], "dependencies": ["asyncio", "collections", "zlib", "typing", "multidict", "aiohttp.abc", "aiohttp.base_protocol", "aiohttp.helpers", "aiohttp", "builtins", "abc", "asyncio.events", "asyncio.protocols", "asyncio.transports"], "hash": "5e1182ab2fe5cdd2f2c48ce343fb9f3c57c92934d6c75b1be98656beb38550f0", "id": "aiohttp.http_writer", "ignore_all": true, "interface_hash": "79c74ccb6f00a1e5ba79fbfbaa0159f53b66fa10bc81387ac8b5004e42159710", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/http_writer.py", "plugin_data": null, "size": 5239, "suppressed": ["aiohttp._http_writer"], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712556, "dep_lines": [1, 2, 3, 8, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 5, 5, 5, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "collections", "typing", "typing_extensions", "builtins", "abc", "asyncio.events", "asyncio.futures", "asyncio.locks", "asyncio.tasks"], "hash": "97e716f3051b2241daa2f8214fb82963c629e55968faed86eff091e7142a110f", "id": "aiohttp.locks", "ignore_all": true, "interface_hash": "9e07f83004a35fc21e4008d19c4693d1f9e3a9ede7fbe5e189f3510509014b29", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/locks.py", "plugin_data": null, "size": 1234, "suppressed": [], "version_id": "0.770"}
-1
View File
@@ -1 +0,0 @@
{".class": "MypyFile", "_fullname": "aiohttp.log", "is_partial_stub_package": false, "is_stub": false, "names": {".class": "SymbolTable", "__doc__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp.log.__doc__", "name": "__doc__", "type": "builtins.str"}}, "__file__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp.log.__file__", "name": "__file__", "type": "builtins.str"}}, "__name__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp.log.__name__", "name": "__name__", "type": "builtins.str"}}, "__package__": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": ["is_ready"], "fullname": "aiohttp.log.__package__", "name": "__package__", "type": "builtins.str"}}, "access_logger": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": [], "fullname": "aiohttp.log.access_logger", "name": "access_logger", "type": "logging.Logger"}}, "client_logger": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": [], "fullname": "aiohttp.log.client_logger", "name": "client_logger", "type": "logging.Logger"}}, "internal_logger": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": [], "fullname": "aiohttp.log.internal_logger", "name": "internal_logger", "type": "logging.Logger"}}, "logging": {".class": "SymbolTableNode", "cross_ref": "logging", "kind": "Gdef"}, "server_logger": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": [], "fullname": "aiohttp.log.server_logger", "name": "server_logger", "type": "logging.Logger"}}, "web_logger": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": [], "fullname": "aiohttp.log.web_logger", "name": "web_logger", "type": "logging.Logger"}}, "ws_logger": {".class": "SymbolTableNode", "kind": "Gdef", "node": {".class": "Var", "flags": [], "fullname": "aiohttp.log.ws_logger", "name": "ws_logger", "type": "logging.Logger"}}}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/log.py"}
-1
View File
@@ -1 +0,0 @@
{"data_mtime": 1592712555, "dep_lines": [1, 1, 1, 1], "dep_prios": [10, 5, 30, 30], "dependencies": ["logging", "builtins", "abc", "typing"], "hash": "90e594e847320501122129b6eef73c755133fe1f73c68ccb6b9582c9ad51ce14", "id": "aiohttp.log", "ignore_all": true, "interface_hash": "fb93ce6f81d88dd26dc737565e230b8867cae25066f39f82fc7afc15f2faaf7a", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/log.py", "plugin_data": null, "size": 325, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 23, 25, 27, 34, 35, 36, 45, 53, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 25, 5, 30, 30, 30, 30, 30, 30, 30, 30, 30], "dependencies": ["base64", "binascii", "json", "re", "uuid", "warnings", "zlib", "collections", "types", "typing", "urllib.parse", "multidict", "aiohttp.hdrs", "aiohttp.helpers", "aiohttp.http", "aiohttp.payload", "aiohttp.streams", "aiohttp.client_reqrep", "builtins", "_importlib_modulespec", "_warnings", "abc", "aiohttp.abc", "aiohttp.http_parser", "enum", "functools", "json.decoder", "urllib"], "hash": "5d655db203906c13e5f50203d66bda7e46fabf48bc21a354ae3ca4937eb14c57", "id": "aiohttp.multipart", "ignore_all": true, "interface_hash": "5dd0459d13ff033f6c7418cf1d78414bd550b00d4700fbb026b21b4da41db008", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/multipart.py", "plugin_data": null, "size": 32781, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 25, 27, 27, 28, 29, 36, 37, 1, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 10, 10, 10, 10, 10, 5, 5, 5, 5, 20, 10, 5, 5, 5, 5, 5, 30, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "enum", "io", "json", "mimetypes", "os", "warnings", "abc", "itertools", "typing", "multidict", "aiohttp", "aiohttp.hdrs", "aiohttp.abc", "aiohttp.helpers", "aiohttp.streams", "aiohttp.typedefs", "builtins", "_warnings", "aiohttp.base_protocol", "asyncio.events", "asyncio.protocols", "functools", "json.encoder"], "hash": "41d1946814061a128e0116ec46d55eabe11d94be02fffd1ef129b90d26cf3d25", "id": "aiohttp.payload", "ignore_all": true, "interface_hash": "7011ec9f8f050f34bf783e0837e353dc9d72587bbf25c633eb6638484c16fadb", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/payload.py", "plugin_data": null, "size": 14027, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [24, 25, 26, 28, 29, 1, 1, 1, 1, 1, 1], "dep_prios": [10, 10, 5, 5, 5, 5, 30, 30, 30, 30, 30], "dependencies": ["asyncio", "warnings", "typing", "aiohttp.abc", "aiohttp.payload", "builtins", "_warnings", "abc", "asyncio.coroutines", "enum", "multidict"], "hash": "64d59a5b0031388ae27307e31f8f98ae40aa7a1a30562ccce9f27f2550d1e3cd", "id": "aiohttp.payload_streamer", "ignore_all": true, "interface_hash": "accb72c3d509a7dcc5bb77ab0df71610be4fb96cd0466711fb2f0485907913e2", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/payload_streamer.py", "plugin_data": null, "size": 2103, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712557, "dep_lines": [1, 2, 3, 5, 6, 1, 1, 1, 1, 11], "dep_prios": [10, 10, 5, 5, 5, 5, 30, 30, 30, 10], "dependencies": ["asyncio", "socket", "typing", "aiohttp.abc", "aiohttp.helpers", "builtins", "abc", "asyncio.events", "enum"], "hash": "a5117dd633a34cdb82965e533118d37b53b19c664ae308c082060b82fcd79064", "id": "aiohttp.resolver", "ignore_all": true, "interface_hash": "ce669b04f5f1cd1e0c7916186205cf014fd9bce043163c0ec6e3f3b099ea4180", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/resolver.py", "plugin_data": null, "size": 3626, "suppressed": ["aiodns"], "version_id": "0.770"}
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
{"data_mtime": 1592712554, "dep_lines": [1, 3, 1, 1], "dep_prios": [5, 5, 5, 30], "dependencies": ["typing", "aiohttp.frozenlist", "builtins", "abc"], "hash": "6f04f8bc9783772999f3f81da667d5e11848a256c8f97c192c29e96aad31c125", "id": "aiohttp.signals", "ignore_all": true, "interface_hash": "1a34abca2282a1f81f6bf6724ad0b56ad3c56e32bffafa7462c83d15d58f80fc", "mtime": 1592448251, "options": {"allow_redefinition": false, "allow_untyped_globals": false, "always_false": [], "always_true": [], "bazel": false, "check_untyped_defs": false, "disallow_any_decorated": false, "disallow_any_explicit": false, "disallow_any_expr": false, "disallow_any_generics": true, "disallow_any_unimported": false, "disallow_incomplete_defs": false, "disallow_subclassing_any": false, "disallow_untyped_calls": false, "disallow_untyped_decorators": false, "disallow_untyped_defs": false, "follow_imports": "normal", "follow_imports_for_stubs": false, "ignore_errors": false, "ignore_missing_imports": true, "implicit_reexport": true, "local_partial_types": false, "mypyc": false, "no_implicit_optional": true, "platform": "darwin", "plugins": [], "show_none_errors": true, "strict_equality": false, "strict_optional": true, "strict_optional_whitelist": null, "warn_no_return": true, "warn_return_any": false, "warn_unreachable": false, "warn_unused_ignores": true}, "path": "/Users/max/.pyenv/versions/3.6.9/envs/env36/lib/python3.6/site-packages/aiohttp/signals.pyi", "plugin_data": null, "size": 324, "suppressed": [], "version_id": "0.770"}
File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More