Commit Graph

3436 Commits

Author SHA1 Message Date
Maxime Beauchemin 517fea33b6
[docs] suggest using python3.6 in installation docs (#5834) 2018-09-10 08:48:03 -07:00
Beto Dealmeida 299e20a23f
Fix cache for multiple time comparisons (#5828)
* Fix cache for multiple time comparisons

* Remove simple cache

* Improve docstring
2018-09-07 15:45:28 -07:00
Maxime Beauchemin 4a62ef3ae0
Get 'Test Connection' button to take 'engine_params' into account (#5830) 2018-09-07 14:47:01 -07:00
michellethomas 9f4d67b49b Adding instructions on how to run Cypress in Contributing.md (#5840) 2018-09-07 10:26:51 -07:00
Krist Wongsuphasawat 3f8b970a88 [bugfix] Fix bignumber overflow in dashboard (#5839)
* Move BigNumber to directory.

* fix chart margin in dashboard

* Fix margin and be more conservative about width.
2018-09-06 21:48:41 -07:00
Krist Wongsuphasawat 68e7794daf [SIP-5] Refactor Paired t-test (#5762)
* extract TTestTable into another file.

* Move into directory.

* update proptypes
2018-09-06 16:14:27 -07:00
Krist Wongsuphasawat b284788fd8 [SIP-5] Refactor filterbox (#5789)
* reorganize variables

* bring back datasource

* refactor filter box

* rename constants to all caps and update prop types

* bind this.changeFilter

* update event handler
2018-09-06 16:13:50 -07:00
michellethomas d40ded0be8 Adding simple Cypress tests (#5693)
* Adding simple Cypress tests

* Changing visitChart into multiple commands

* Adding Cypress to tox
2018-09-06 14:55:48 -07:00
Grace Guo 0c98ecb6d1
[dashboard] Add alert on user delete root level tab (#5771) 2018-09-06 10:23:56 -07:00
Maxime Beauchemin 5616d7bdd7
[sql_json] allow not specifying client_id (#5730)
* [sql_json] allow not specifying client_id

We're opening the sql_json endpoint at Lyft to other apps leveraging
Superset as a data-access layer that enforces authentication and our data
access policy.

Currently sql_json requires the client to pass a `client_id` parameter
that uniquely identifies the query, that can then be used for polling
when in async mode. This PR makes it such that you don't have to define
a client_id anymore. It just gets generated when not passed.

* adressing comments
2018-09-05 22:34:24 -07:00
Yongjie Zhao f9977afd83 Update Readme that support Apache Kylin (#5818) 2018-09-05 22:33:03 -07:00
Maxime Beauchemin 98d9fb1e7e
Adding 'Resources' section to the docs (#5823)
* Adding 'Resources' section to the docs

* Join slack entry
2018-09-05 22:30:56 -07:00
Krist Wongsuphasawat 8c2dbad803 fix bug with react-syntax-highlighter import (#5826) 2018-09-05 20:48:34 -07:00
Krist Wongsuphasawat 5eff7a8d6c [SIP-5] Refactor pivot table (#5705)
* extract slice and formData

* rename variables

* update proptypes and add comments
2018-09-05 14:14:12 -07:00
Krist Wongsuphasawat a9952bb449 [SIP-5] Remove unused function #easy-review (#5825)
* remove unused function

* remove comment
2018-09-05 13:46:04 -07:00
Krist Wongsuphasawat dafe0b9961 [SIP-5] Refactor parallel coordinates (#5761)
* Extract slice and formData

* organize imports
2018-09-05 12:59:23 -07:00
Krist Wongsuphasawat bebbdb85d2 [SIP-5] Refactor MapBox (#5783)
* Break MapBox into smaller pieces

* Replace React.createElement with regular jsx

* detach setControlValue

* enable render trigger

* Pass explicit props rather than pass all that exists in payload.data. Also use formData when possible.

* Rename sliceWidth, sliceHeight to width, height. Use deconstructor. Extract function.

* use arrow function

* fix linting and remove css
2018-09-05 12:12:30 -07:00
Krist Wongsuphasawat b461287290 [SIP-5] Refactor and improve histogram (#5758)
* Extract slice and formData

* indent

* update data proptype

* enable theme

* remove legacy code

* rename file

* Add legend

* Implement WithLegend

* align legend items to the right for bottom position

* add line at end of file

* fix linting issues
2018-09-05 12:11:37 -07:00
Krist Wongsuphasawat 2811498ec9 [SIP-5] Refactor calendar chart (#5760)
* remove stroke

* update style and annotate data type

* update prop type

* bring back utc code

* add comments
2018-09-05 10:34:44 -07:00
Krist Wongsuphasawat 0c33f80c1d Enable CSS Hot Module Replacement and optimize css output for production (#5813)
* Enable HMR for css. Use style-loader for development

* optimize css output

* remove mini-css-extract when dev

* change double-quote to single-quote
2018-09-05 09:17:18 -07:00
Christine Chambers a411516ff5 bug: don't show query overlay when panning mapbox maps (#5814)
* bug: don't show query overlay when panning mapbox maps

Since we don't want to prompt user to rerun query every time they pan a map, prevent the query overlay from showing by setting dontRefreshOnChange for viewport_latitude and viewport_longitude controls.

* Prevent query overlay on viewport zoom also.
2018-09-04 18:08:00 -07:00
John Bodley cf12ea0f03
[celery] setting default (#5812) 2018-09-04 17:32:01 -07:00
Krist Wongsuphasawat eb41756e5e Configure webpack-dev-server (#5786)
* setup devserver with correct proxy

* dev server wroking with written manifest

* add comments

* Change webpack to default port 9000 and minor js formatting

* Use hash in development.

* write to disk = true

* Take ports as argument for dev-server

* update instructions

* update instructions

* add devtools

* use mode instead of NODE_ENV

* use minicssextract for prod (like before)

* remove empty line
2018-09-04 10:39:05 -07:00
hitdemo d43813ff09 make some text in [druid,CRUD,datasource] localizable (#5796) 2018-09-03 23:04:31 -07:00
Ville Brofeldt 77fe9ef130 Force quoted column aliases for Oracle-like databases (#5686)
* Replace dataframe label override logic with table column override

* Add mutation to any_date_col

* Linting

* Add mutation to oracle and redshift

* Fine tune how and which labels are mutated

* Implement alias quoting logic for oracle-like databases

* Fix and align column and metric sqla_col methods

* Clean up typos and redundant logic

* Move new attribute to old location

* Linting

* Replace old sqla_col property references with function calls

* Remove redundant calls to mutate_column_label

* Move duplicated logic to common function

* Add db_engine_specs to all sqla_col calls

* Add missing mydb

* Add note about snowflake-sqlalchemy regression

* Make db_engine_spec mandatory in sqla_col

* Small refactoring and cleanup

* Remove db_engine_spec from get_from_clause call

* Make db_engine_spec mandatory in adhoc_metric_to_sa

* Remove redundant mutate_expression_label call

* Add missing db_engine_specs to adhoc_metric_to_sa

* Rename arg label_name to label in get_column_label()

* Rename label function and add docstring

* Remove redundant db_engine_spec args

* Rename col_label to label

* Remove get_column_name wrapper and make direct calls to db_engine_spec

* Remove unneeded db_engine_specs

* Rename sa_ vars to sqla_
2018-09-03 22:49:58 -07:00
Krist Wongsuphasawat 8a4b1b7c25 [SIP-5] Refactor table (#5707)
* update indent

* extract formData and data.

* take filter

* remove dependencies

* remove removeFilter

* add comment

* remove columnFormats and verboseMap from props. clarify a few more props

* fix linting issue

* minor syntax

* syntax fix

* Move check to adaptor

* update unit test

* remove code related to .widget

* rename variables for clarity

* move Option fix to browser.js
2018-08-31 15:42:44 -07:00
Hugh A. Miles II 5e3f8332c4
Update annotation model to have JSON Metadata field (#5745)
* add column to annotation model

* update migration file

* change to Text

* remove old migration file

* add migration file

* remove JSON

* add new column to view

* add comma back

* linting

* lint some more

* missing comma

* rename columns

* add degrade and new migration file

* update version

* fixe changed name

* remove json from list columns
2018-08-31 10:06:27 -07:00
Hugh A. Miles II e12f4fb66d
update thumbnail (#5782) 2018-08-30 23:32:01 -07:00
Krist Wongsuphasawat f72cdc38df [SIP-5] Repair and refactor CountryMap (#5721)
* Extract slice and formData

* update css indent

* remove no-effect call

* improve text label

* adjust text size

* fix bound calculation

* use string literal

* make path constant
2018-08-30 14:43:40 -07:00
Conglei 9f2b502eb6 remove backend logic for wordcloud (#5753) 2018-08-30 12:59:05 -07:00
Beto Dealmeida 8af3e1f3a1
Fix redirect to SQL Lab (#5777) 2018-08-30 11:17:15 -07:00
Eli Sebastian Brumbaugh ada8b92d21 New branding images (#5776) 2018-08-29 17:48:43 -07:00
Junda Yang 5437efa590 Fix multilayer geoviz and color picker error (#5767)
* Fix multilayer goeviz and color picker error

* fix lint

* remove props.data and improve merging list

* nit
2018-08-29 15:37:39 -07:00
Krist Wongsuphasawat 00f2771f23 [SIP-5] Refactor and repair partition (#5718)
* Extract slice and formData

* reorder functions

* fix tooltip

* remove commented code

* remove commented code and rename variables

* remove verboseMap

* rename kx, ky to zoomX, zoomY
2018-08-29 15:21:04 -07:00
Krist Wongsuphasawat 86f99b0e1e [SIP-5] Refactor rose (#5763)
* refactor rose

* update proptypes
2018-08-29 14:56:28 -07:00
Krist Wongsuphasawat 00cc6e981e [SIP-5] Refactor World Map (#5719)
* extract slice and formData

* update proptypes of data
2018-08-29 12:36:48 -07:00
Grace Guo 772ae77ab0 [dashboard] Update font style for markdown component (#5722) 2018-08-29 12:01:41 -07:00
timifasubaa d5d592788c fix sqlparse bug and refactor (#5768) 2018-08-29 08:30:49 -07:00
Maxime Beauchemin 135539c109
[bugfix] 'DruidCluster' object has no attribute 'db_engine_spec' (#5765)
* [bugfix] 'DruidCluster' object has no attribute 'db_engine_spec'

* Fix tests
2018-08-28 21:04:06 -07:00
Beto Dealmeida 2da5db9fcd
[Table view] Handle empty arrays in fd.timeseries_limit_metric (#5715)
* Handle empty arrays

* Remove test code

* Adding unit test

* Fix unit tests

* Remove logging
2018-08-28 18:42:48 -07:00
Christine Chambers ae3fb04036 Bug: fixing async syntax for python 3.7 (#5759)
* Bug: fixing async syntax for python 3.7

Rename async to async_ so superset installs for python 3.7.

* Addressing PR comments. Use kwargs instead of explicitly specifying async_ so downstream engines (e.g. PyHive) that supports async can choose to use the async_ in pythonwq3.7 and async in <=python3.6

* addressing additional pr comments
2018-08-28 17:40:45 -07:00
Beto Dealmeida 48d220c03a
Disable input when IS (NOT) NULL selected in filters (#5766) 2018-08-28 17:05:44 -07:00
Maxime Beauchemin 6c6ea3730b
[bugfix] IS NOT NULL filter triggers KeyError: 'val' (#5764) 2018-08-28 15:26:41 -07:00
Viksit Gaur ba4b8a033b Add Myra Labs to user list in README (#5756) 2018-08-28 15:14:42 -07:00
Maxime Beauchemin 60ecd72aac [deck polygon] add support for geohash (#5712)
* [deck polygon] add support for geohash

+ improvements:
* added autozoom support
* support for metric & aggregations (only aggregates if metric is picked)
* fixed stroke
* fixed opacity
* introduced a SliderControl

* addressing comments, fixing build

* Addressing comments
2018-08-28 11:09:10 -07:00
Maxime Beauchemin f0beb3ab80 Silence error on migration 4736ec66ce19 constraint drop (#5729)
* Silence error on migration 4736ec66ce19 constraint drop

* typo + lint
2018-08-28 11:08:47 -07:00
Maxime Beauchemin 6cc52c614c Prevent deleting databases that have attached tables (#5749)
* Prevent deleting databases that have attached tables

Similar to logic preventing deleting tables that have charts attached.

* Addressing comments
2018-08-28 11:08:12 -07:00
Beto Dealmeida bd1f36d345
Merge pull request #5750 from mistercrunch/updating_0_28
UPDATING.md entry about dashboard v2 forced migration in 0.28
2018-08-28 10:50:43 -07:00
Beto Dealmeida 1a95fbc88c
Merge pull request #5732 from mistercrunch/build_docs
[docs] note as to how to build and view the docs
2018-08-28 10:48:14 -07:00
Beto Dealmeida 24a9a39e2d
Merge pull request #5731 from mistercrunch/faq_db_engines
[docs] FAQ entry 'Does Superset work with [database engine]?'
2018-08-28 10:47:55 -07:00