Commit Graph

5948 Commits

Author SHA1 Message Date
Kamil Gabryjelski 352e8a1afd
Re-enable rule prefer-destructuring (only for objects) (#10867) 2020-09-14 10:11:20 -07:00
Kamil Gabryjelski c51168a30a
Re-enable no-confusing-arrow rule (#10874) 2020-09-14 10:03:37 -07:00
Yongjie Zhao a324fbd2eb
Adding editorconfig setting for IDE hints (#10855)
* Adding editorconfig setting for IDE hints

* adding license to new file
2020-09-14 08:19:23 -07:00
Yongjie Zhao b4df053156
Improvement contributing.md (#10859)
* Improvement contributing.md

* update
2020-09-14 08:12:53 -07:00
Kamil Gabryjelski 8a774d59ed
Eslint dependencies versions updates (#10839)
* Update eslint version to 7.8.1

* Give names to unnamed functions  to fix lint errors

* Update eslint-import-resolver-webpack

* Update eslint-plugin-cypress

* Add eslint-plugin-react-hooks

* Update necessary peer dependencies for eslint-config-airbnb

* Update eslint airbnb config and ts plugins

* Remove "this" from functional component

* Disable all rules that cause new errors

* Fix linting errors in tests

* Add licenses to .eslintrc files

* Add path and zlib to package.json

* Disable incompatible rule in eslint-plugin-cypress

* Remove redundant config for typescript linting

* Mark disabled rules with comments

* Remove path and zlib from deps, disable import rule for webpack files
2020-09-13 23:59:02 -07:00
Jesse Yang 1f31e0eb38
feat: server side dashboard css for less repaint (#10850) 2020-09-13 21:32:43 -07:00
Moriah Kreeger 686c19abcf
Fix test_connection POST body (#10846) 2020-09-11 23:33:43 -07:00
Maxime Beauchemin 6cb67017a5
style: white toolbar for SQL Lab (#10851) 2020-09-11 23:27:25 -07:00
Phillip Kelley-Dotson 85a916036c
docs(new docs site): removes old sphinx doc site with gatsby (#10784)
* Remove old apache sphinx doc site with refreshed gatsby

* remove rando

* add licenses

* excluing .mdx files from license checks

* fixes

* Clean up sphinx references

* Addressed comments

* colors and tweaks

* more fixes

* add dummy docs/requirements.txt to satisfy stupid fossa

* cp .prettierrc

* more licenses

* minor touchups

* reqs

* removing old videos

* add github buttons

* prettier

* tweaks

* Eugenia/Fix some of the images and modified some of database pages

* add subheadernav

* add side headers nav and more responsive design for docs

* update resources page and other styling updates

* linting

* tweaks

* removing windows and align:center

* update resources

* remove links and and card hearder

* lots of styling tweaks

* Tweaks and minor improvements

* lint

* fix CI

* trigger pre-comimt

* rererefix CI

Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com>
Co-authored-by: Eugenia Moreno <eugenia@Eugenias-MBP.fios-router.home>
Co-authored-by: Evan Rusackas <evan@preset.io>
2020-09-11 22:59:12 -07:00
Moriah Kreeger 7cd96edcdf
feat: add/edit database modal form sections UI (#10745) 2020-09-11 09:53:18 -07:00
Daniel Vaz Gaspar 7b2200437e
fix(test): missing auth on tests (#10842)
* fix(test): missing auth on tests

* fix mock

* make test login more inline with other tests
2020-09-11 14:28:41 +01:00
cyw233 7c11c9ce16
update all python version in the Dockerfile to 3.7 (#10841)
* update all python version in the Dockerfile to 3.7

* update ubuntu 18.04 to ubuntu 20.04
2020-09-11 14:33:15 +03:00
Daniel Vaz Gaspar 136f90f87c
feat: SavedQuery REST API for bulk delete and new API fields (#10793)
* feat: SavedQuery REST API for bulk delete

* fix, singular msg and test

* remove 403 from OpenAPI spec

* filter by current user using created_by add sql_tables field

* fixes for new filter, add user field on pre_update, pre_add

* add lru cache to property

* Revert "add lru cache to property"

This reverts commit ad0d9428
2020-09-11 09:36:47 +01:00
John Bodley a3e2e65121
fix: Making the database read-only (#10823)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2020-09-10 16:23:24 -07:00
Jesse Yang d80f406239
build: optimize webpack code split (#10831) 2020-09-10 15:11:21 -07:00
Lily Kuang f0545bfe50
fix(databases): test connection api endpoint (#10824)
* fix test connection with extra

* fix lint and allow_none server_cert

* update test connection tests
2020-09-10 21:49:14 +01:00
Bogdan ac2937a6c5
fix: use nullpool in the celery workers (#10819)
* Use nullpool in the celery workers

* Address comments

Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
2020-09-10 13:29:57 -07:00
Jesse Yang dd7f3d5402
build: split hive and presto tests to separate jobs (#10821)
* build: split hive and presto tests to separate jobs

* Must install doc dependencies, too
2020-09-10 13:12:00 -07:00
Ville Brofeldt 8a9ae811d0
fix(sql-lab): relax column name restrictions (#10816) 2020-09-10 07:54:37 +03:00
Daniel Vaz Gaspar e6a4808cb7
fix(tests): export dataset tests fails with presto (#10818)
* fix(tests): export dataset tests fails with presto

* debug

* debug

* skip dataset export test on presto

* add TODO on failing test
2020-09-09 21:46:28 -07:00
Grace Guo c2216e029d
Revert "chore: add logging for "dashboard" action (#10744)" (#10822)
This reverts commit e0ad9935c1.
2020-09-09 14:44:07 -07:00
rubenSastre e4ffaecc72
Spanish translations (#10798)
* regenerate pot and some spanish translations

* keep apache license text

* json format

* priettier applied to json

* end of file test

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* Update superset/translations/es/LC_MESSAGES/messages.po

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>

* consistency for Charts translation

* json file with standarize Chart

* solve CI errors

* fix trailing-whitespace

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>
2020-09-09 13:38:18 -07:00
Lily Kuang 8a3ac70c06
feat(databases): test connection api (#10723)
* test connection api on databases

* update test connection tests

* update database api test and open api description

* moved test connection to commands

* update error message

* fix isort

* fix mypy

* fix black

* fix mypy pre commit
2020-09-09 13:37:48 -07:00
Jesse Yang 9a59bdda48
refactor: merge/upgrade superset-ui packages (#10790)
* refactor: merge/upgrade superset-ui packages

* Fix flaky big number test

* Fix Flaky AdhocFilters test
2020-09-09 13:18:55 -07:00
Fabio Guarini 3b4a992861
fix: bump node version on Dockerfile to be on par with docker-compose (#10813) 2020-09-09 07:53:03 -07:00
Daniel Vaz Gaspar 782f678732
fix: Database API missing allow none on fields (#10795)
* fix: Database API missing allow none on fields

* one missing
2020-09-09 09:35:27 +01:00
Ville Brofeldt 9a6697141d
chore: deprecate python 3.6 support (#10803) 2020-09-09 08:51:55 +03:00
ʈᵃᵢ 50672bb11b
feat: database delete warning (#10800) 2020-09-08 18:54:02 -07:00
Jesse Yang cda232bf15
fix: ColorSchemeControl should not use CreatableSelect (#10814)
* fix: ColorSchemeControl should not be CreatableSelect

   Currently if you type to search in ColorSchemeControl it crashes the
whole page.

* Make it possible to filter by label

* Fix ColorSchemeControl unit test
2020-09-08 18:38:50 -07:00
Ville Brofeldt 3ae80d3b98
test: add rls jinja extra cache key test (#10810) 2020-09-08 07:42:48 +03:00
David Aaron Suddjian 1d76c5906e
docs: Add a note to contributing.md on reporting security vulnerabilities (#10796)
* a note on reporting security vulnerabilities

* mention apache security guidelines
2020-09-07 15:51:24 +01:00
gtg472b 702cfe938f
Fix: Include RLS filters for cache keys (#10805)
* Fix: Include RLS filters for cache keys

This fix makes sure that RLS filters are searched for templatable jinja content, ensuring cached visualizations aren't shown to the wrong user.

* Fix: Include RLS filters for cache keys

This fix makes sure that RLS filters are searched for templatable jinja content, ensuring cached visualizations aren't shown to the wrong user.

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2020-09-07 17:49:13 +03:00
ʈᵃᵢ 92f2353f80
feat: filters for database list view (#10772) 2020-09-04 16:23:38 -07:00
Daniel Vaz Gaspar c1ff1c5d70
fix: MVC show saved query (#10781)
* fix: MVC show saved query

* remove it completely

* fix lint
2020-09-04 15:52:03 -07:00
Jason Davis bc4f98e5b8
added creator column and adjusted order columns (#10789)
Co-authored-by: Jason Davis <@dropbox.com>
2020-09-04 10:29:36 -07:00
Daniel Vaz Gaspar f6858256f4
security: disallow uuid package on jinja2 (#10794)
* fix: disallow uuid package on jinja2

* update UPDATING.md

* Update UPDATING.md

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2020-09-04 16:37:14 +01:00
Daniel Vaz Gaspar 5199423ad1
feat: CRUD REST API for saved queries (#10777)
* feat: CRUD REST API for saved queries

* debug test

* fix test

* use pytest fixtures
2020-09-03 15:46:27 -07:00
Grace Guo 596200528d
fix: disable domain sharding on explore view (#10787) 2020-09-03 15:42:39 -07:00
Shaoqing Hu 9bcb15091c
fix: can not type `0.05` in `TextControl` (#10778) 2020-09-03 12:11:34 -07:00
Ville Brofeldt 70c6764780
fix: pivot table timestamp grouping (#10774)
* fix: pivot table timestamp grouping

* address comments
2020-09-03 19:49:54 +03:00
Jason Davis 54ae3b044f
fix: add validator information to email/slack alerts (#10762)
* added validator info to alerts

* adjusted format of messages

* added nits

Co-authored-by: Jason Davis <@dropbox.com>
2020-09-03 08:15:05 -07:00
Evan Rusackas 824cea24ba
More Label touchups (margins) (#10722)
* labels with onClick don't need .pointer. No labels need `m-r-5`

* making Timer a proper Label

* a little linting

* addresing (helpful, thanks) comment
2020-09-02 23:13:58 -07:00
John Bodley 1ee87cc4d1
fix: dashboard extra filters (#10692)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2020-09-02 16:03:25 -07:00
Craig Rueda 45f4c689a2
fix: re-installing local superset in cache image (#10766)
* fix: re-installing local superset in cache image

* Fixing webpack
2020-09-02 13:01:36 -07:00
ʈᵃᵢ 7bccb38a60
feat: SIP-34 table list view for databases (#10705) 2020-09-02 11:48:21 -07:00
ʈᵃᵢ 5a4370012b
refactor: convert DatasetList schema filter to use new distinct api (#10746) 2020-09-02 11:07:37 -07:00
Evan Rusackas e0deaad5e3
chore: removing fsevents dependency (#10751) 2020-09-02 10:37:23 -07:00
Will Barrett ff60e5c62a
Fix precommit hook for docs/installation.rst (#10759)
* Fix precommit hook for docs/installation.rst

* Fix underline too short
2020-09-02 10:06:51 -07:00
Daniel Vaz Gaspar 77a3167412
feat(database): POST, PUT, DELETE API endpoints (#10741)
* feat(database): POST, PUT, DELETE API endpoints

* post tests

* more tests

* lint

* lint

* debug ci

* fix test

* fix test

* fix test

* fix test

* fix test

* fix test

* cleanup

* handle db connection failures

* lint

* skip hive and presto for connection fail test

* fix typo
2020-09-02 09:58:08 -07:00
Jagadish b5aecaff5c
docs: Update OAuth configuration in installation.rst (#10748)
Co-authored-by: jagadish <jagadish@nineleaps.com>
2020-09-02 16:10:49 +01:00