Commit Graph

4774 Commits

Author SHA1 Message Date
Daniel Vaz Gaspar 0ed0031412
[jinja_context] Fix, allow for app factory pattern (#8693)
Better app factory pattern on jinja context and introduces tests for building docs
2019-12-03 09:42:57 +00:00
Daniel Vaz Gaspar 391d8303cb
[release] Fix, update superset docs process (#8680)
Introduces some automation on superset doc's build using docker
2019-12-03 09:37:33 +00:00
John Bodley 4e998be695
[fix] Druid IS NULL/IS NOT NULL filters (#8714) 2019-12-02 20:38:42 -08:00
Maxime Beauchemin 871af05f68 fix: #8711 CSS loads late and app flickers (#8715) 2019-12-02 17:20:43 -08:00
Erik Ritter 57631f8962
[SQL Lab] Fix unadjustable sql editor height (#8716) 2019-12-02 16:39:49 -08:00
Will Barrett bca2b91417 Split functionality out of views/database/__init__.py, re-enable pylint (#8713)
* Split functionality out of __init__.py, re-enable pylint

* Black, isort

* Test fix

* Remove commented-out code bit
2019-12-02 14:33:35 -08:00
Beto Dealmeida ac0e353a54
Update docs on gunicorn (#8710) 2019-12-02 10:57:05 -08:00
Maxime Beauchemin 6810174fcd
fix: vulnerabilities by running 'npm audit fix' (#8657) 2019-12-02 10:18:39 -08:00
Erik Ritter e06a138aad
[SQL Lab] Re-add erroneously removed css (#8707) 2019-12-02 10:09:21 -08:00
Ville Brofeldt bd91f334d9
fix: default missing values to zero on area chart (#8678)
* Add fill_value to area chart pivot

* Only fill for area chart

* Linting
2019-12-02 18:53:21 +02:00
Daniel Vaz Gaspar b2633a51d4
[docs] Fix, database deps table (#8692) 2019-11-29 13:48:39 +00:00
Daniel Vaz Gaspar 3690fb4979
[setup] Fix, sqlalchemy and sqlparse version interval (#8689) 2019-11-28 18:47:19 +00:00
Daniel Vaz Gaspar 517a643bd4
[databases] [mvc] remove encrypted extra from list of possible filter (#8679) 2019-11-28 09:02:45 +00:00
Erik Ritter 44d919c757
Prettify the frontend code (#8648)
* Add Prettier global configs

* Format js/jsx/ts/tsx/less files
2019-11-27 14:02:48 -08:00
Evan Rusackas e21f768a92 Only list tables in DB test if API returns them (which it doesn't) (#8681)
* only list tables if we get an array of them back (which we probably never will)

* nixing old/busted table display
2019-11-27 11:43:49 -08:00
Will Barrett 16c0599470 Disable deprecated druid connector by default (#8512)
* Disable deprecated druid connector by default

* Add a line in UPDATING.md for the configuration change

* Remove security tests related default-disabled feature

* More test updates

* black
2019-11-27 11:28:23 -08:00
Evan Rusackas 172b90ec50 Font styling consolidation (#8633)
* Font weights standardized

* now with more glob!

* Linting touchups

* caught a low-value color declaration

* first wave of font size alignment

* getting the CRUD styles caught up to speed.

* unneeded inline-block - float does that for ya.

* a few errant colors that snuck in.

* more font stylings.

* caught some more colors that needed variable alignment

* le typo

* whittle, whittle

* dead styles

* whittling

* whittling

* whittling away at font sizes

* since we appear to be adjusting icon sizes for optics, let's get this one too.

* Prettier 

* whittling at line height standardization.

* placing vars, take 1

* 2 more down...

* cleaning out some styles that had no real effect.

* seemingly no change if this is removed for consistency.

* allowing one 8px line height for proper icon placement - adding comment.

* last one, I reckon.

* linting fixes
2019-11-27 10:36:25 -08:00
Evan Rusackas f3555486f5 Filter edit icon component replaced with Font Awesome (#8600)
* replaced!

* added role to the FA image/button

* adding tabindex.

* capitalization of tabIndex matters. I'll have another cup of coffee now.

* added newine at end of file, added stylelint rule to track this.

* re-removing these files after merge conflict resolution.
2019-11-27 18:07:12 +00:00
Evan Rusackas 044348708e Fixing variable conflicts between Superset and Boot(swatch/strap) (#8650)
* Fixing @gray conflict between Superset and Bootswatch

* removing duplicate import... whoops!

* making bootswatch bend it's namespace rather than superset/
2019-11-27 17:53:46 +00:00
Daniel Vaz Gaspar 75c1378d1f
[release] Fix, release docs (#8646)
* [release] Fix, release documentation
2019-11-27 15:28:37 +00:00
Craig Rueda df2ee5cbcb Adding app context wrapper to Celery tasks (#8653)
* Adding app context wrapper to Celery tasks
2019-11-27 15:06:06 +00:00
Daniel Vaz Gaspar 96fb108894
[docs] Update changelog and updating for 0.35.1 (#8662) 2019-11-26 21:52:17 +00:00
Beto Dealmeida 5f4e3adfd2
Pass full response to `query_cost_formatter` (#8652)
* Return full info when doing query cost estimation

* Add unit test

* Fix isort
2019-11-26 11:49:19 -08:00
Evan Rusackas badcf820c9 now with sourcemaps! (#8637) 2019-11-26 10:09:39 -08:00
Grace Guo acf0753504
[dashboard scoped filters] Add all time related options to filter scope settings (#8636) 2019-11-25 10:21:09 -08:00
Daniel Vaz Gaspar f04b72c341
[releases] New, email automation for apache releases (#8612) 2019-11-25 10:01:31 +00:00
Ville Brofeldt 4a34c553c7
Bump to gunicorn 20 (#8643) 2019-11-24 10:18:22 +02:00
maxmelnick 6c83c6464a fixes error creating a new database due to Malformed JSON error for empty Secure extras field (#8630)
* handle empty encrypted_extra field

* move $("#encrypted_extra").val() to const

* handle empty extra field
2019-11-22 16:29:38 -08:00
serenajiang b34c9d36ba [fix] TimeTable timelag error (#8619) 2019-11-22 16:28:40 -08:00
Dave Smith aafbfd3b4e slightly decouple sql_json, queries, and results http endpoints from … (#8626)
* slightly decouple sql_json, queries, and results http endpoints from biz logic

* fix syntax errors

* add some type annotations, fix a bug

* remove unnecessary var decl and assign

* add a lot more type annotations to fix tests

* fix mypy issues
2019-11-22 10:12:48 -08:00
Evan Rusackas a72a39502f Adjusting the placement of header menu carets (#8618)
* this should work.

* tweaks

* Update superset/assets/src/components/Menu/Menu.jsx
2019-11-21 20:53:38 -08:00
Erik Ritter 9303672121
[SQL Lab] Wrap more logic with feature flag (#8629) 2019-11-21 17:08:11 -08:00
maxmelnick b7a508d5a7 updated FLASK_APP values for dockerusage (#8621) 2019-11-21 08:44:17 +00:00
ʈᵃᵢ 6e470fc9bb fix filter dropdown z-index (#8623) 2019-11-20 22:52:27 -08:00
Ville Brofeldt 7104b04817
Pass url parameters from dashboard to charts (#8536)
* Pass url_params from dashboard to charts

* Update params to form_data instead of overwriting

* Add cypress tests

* Add python test

* Add docs

* Move reserved url params to utils

* Bump cypress
2019-11-21 07:07:08 +02:00
Evan Rusackas ff6773df4e Copying in Markdown formatted Apache Code of Conduct. (#8615) 2019-11-20 14:42:53 -08:00
Evan Rusackas 89c58bcb6f [css] Simplifying SQL toolbar item margins, fixing overflow bug (#8596)
* lots of margin adjustments and simplifications

* class -> className

* correcting class name to match conventions (NorthPane -> north-pane)
2019-11-20 14:42:25 -08:00
Beto Dealmeida 964e6db800
Make select_star work with SQL Lab views (#8598)
* Make select_star work with SQL Lab views

* Fix mypy
2019-11-20 13:07:16 -08:00
Evan Rusackas ceec53da17 Migrate CSS to LESS files, remove unused files (#8617)
* all CSS files migrated to LESS

* prettier

* removing unused CSS/LESS Files
2019-11-20 12:14:10 -08:00
John Bodley fc14eff290
Update CONTRIBUTING.md (#8599) 2019-11-20 11:01:14 -08:00
Conglei 096fefd8c8 revert table (#8616) 2019-11-20 10:24:24 -08:00
Evan Rusackas 6919ee4ef4 Moving static colors over to Less vars (#8563)
* Sweep #1

* moving a few more colors, fixing an import issue.

* another include, another color nabbed.

* more whittling.

* moving filterbox css to less, standardizing colors in there.

* nixing the css file I meant to nab in the last commit

* Moving the variables file to a more global/sensible (I hope?) location.

* FilterableTable moved from CSS to LESS, using color vars now.

* more whittling

* standardizing opacity stops

* nails more colors, removes some old (seemingly unused) css

* removing more dead css

* DatasourceControl moved from CSS to LESS

* BootstrapSliderWrapper CSS -> LESS

* reactable-pagination CSS->LESS, color-conformed

* FilterBadgeIcon CSS->LESS, conformed

* deleting unused/deprecated css

* welcome.css -> welcome.less (is this even being used?)

* main.css -> main.less, standardized

* there were two main.css files - this should have been in the last commit.

* explore.css -> explore.less (not used anywhere?)

* sql.css -> sql.less (also not used anywhere?)

* another main.css -> main.less, standardized on colors

* time to add shades and tints!

* caught some colors in SVG that should be in LESS.

* nixing commented css

* deleting commented code

* pulling in z-index vars lost in a conflict resolution
2019-11-20 09:33:29 -08:00
Craig Rueda e490414484 Flask App factory PR #1 (#8418)
* First cut at app factory

* Setting things back to master

* Working with new FLASK_APP

* Still need to refactor Celery

* CLI mostly working

* Working on unit tests

* Moving cli stuff around a bit

* Removing get in config

* Defaulting test config

* Adding flask-testing

* flask-testing casing

* resultsbackend property bug

* Fixing up cli

* Quick fix for KV api

* Working on save slice

* Fixed core_tests

* Fixed utils_tests

* Most tests working - still need to dig into remaining app_context issue in tests

* All tests passing locally - need to update code comments

* Fixing dashboard tests again

* Blacking

* Sorting imports

* linting

* removing envvar mangling

* blacking

* Fixing unit tests

* isorting

* licensing

* fixing mysql tests

* fixing cypress?

* fixing .flaskenv

* fixing test app_ctx

* fixing cypress

* moving manifest processor around

* moving results backend manager around

* Cleaning up __init__ a bit more

* Addressing PR comments

* Addressing PR comments

* Blacking

* Fixes for running celery worker

* Tuning isort

* Blacking
2019-11-20 15:47:06 +00:00
ʈᵃᵢ 300c4ecb0f [SECURITY] bump packages with security vulnerabilities (#8573)
* bump packages with security velnerabilities

* bring back cypress

* remove cypress
2019-11-19 23:34:13 -08:00
ʈᵃᵢ 9d36fa348f Move from MVC FAB menu to Superset React menu (#8289)
* adds react based menu for welcome view

* bump fab

* better logic in common_bootstrap_payload

* split up files

* fix spacing and module scope styles

* lint

* render correct template for welcome
2019-11-19 22:56:27 -08:00
ʈᵃᵢ 54d9154a14 increase z-index on filter box to fix bleeding of filter indicator (#8579)
* increase z-index on filter box to fix bleeding of filter indicator

* convert to less and use variables

* add comment and port value to variable
2019-11-19 22:55:03 -08:00
Evan Rusackas 03d5a82137 Using Prettier for CSS (#8606)
* Adding clean-css npm script, and calling it in the lint-fix script for good measure.

* resulting cleanup
2019-11-19 22:33:38 -08:00
Evan Rusackas ac665d360c showing version and SHA (subtly) in user menu. (#8562)
* showing version and SHA (subtly) in user menu.

* not using VERSION_INFO_FILE after all.

* cleanup... excess linebraks...

* Just trying to make you happy, Black!

* adding some spaces before opening brackets for CSS selectors

* setting version_sha from appbuilder.app.config['VERSION_SHA']
2019-11-19 21:35:18 -08:00
Will Barrett d70e0fc359 Fix for BigQuery connection checks and CSV uploads (#8511)
* Fix for BigQuery connection checks and CSV uploads

* Don't assume encrypted_extra will be populated

* Fix undefined method error

* Refactor to avoid circular import strangeness
2019-11-19 14:50:47 -08:00
Beto Dealmeida 3b97ae3b9d
Set owner when creating SQL Lab view (#8597)
* Set owner when creating SQL Lab view

* Add unit test

* Small fix
2019-11-19 10:48:42 -08:00