Commit Graph

5885 Commits

Author SHA1 Message Date
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
Ville Brofeldt
8c564fba38
feat(viz): add ECharts Timeseries chart (#10752)
* initial commit

* Change reference to new echarts plugin

* initial commit

* Change reference to new echarts plugin

* moving dependencies to plugin

* adding pie chart

* rename piechart key

* lint

* Bump packages and implement echarts colors

* remove pie for now

Co-authored-by: Evan Rusackas <evan@preset.io>
2020-09-02 09:18:59 +03:00
Grace Guo
e0ad9935c1
chore: add logging for "dashboard" action (#10744) 2020-09-01 20:14:22 -07:00
Jason Davis
c1f2214d7c
merge db migrations (#10758)
Co-authored-by: Jason Davis <@dropbox.com>
2020-09-01 17:59:02 -07:00
Vigneshkumar Chinnachamy
aeaee811cd
fix: local docker deployment (#10738)
Fix issue where dependencies listed in ./docker/requirements-local.txt are not installed
2020-09-01 17:01:10 -07:00
Evan Rusackas
5a106eb8f5
moving all @types to dev dependencies (#10750) 2020-09-01 15:32:39 -07:00
kxu
68d5a2bb7f
docs: Updated Docker local install instructions (#10511)
* Updated Docker local install instructions

Updated Docker local install instructions with more detail, structure, and additional info for Linus and Windows users.

* Updated with note on Windows environment
2020-09-01 13:52:22 -07:00
Jason Davis
b59f6b1833
feat: refractored SQL-based alerting framework (#10605)
* added new tables for alerting refractor

* reformatted inheritance structure

* added workflow for updated framework

* added suggested changes

* cleaned up changes

* added obervations to alert table to enable view

* added comments

* added requested changes

* fix tests

* added styling changes

* mypy

* added requested changes

* updated operator logic

* requested changes, 1 validator, styling changes

* refactored tests

* fix test alert workflow

* fixed create_alert in test

Co-authored-by: Jason Davis <@dropbox.com>
2020-09-01 13:36:02 -07:00
Bogdan
4572ebb600
chore: log cache keys to the logs (#10678)
* Log cache keys to the logs

* Add tests

* Use separate table for the cache keys

* Add migration for the cache lookup table

Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
2020-09-01 09:41:25 -07:00
Evan Rusackas
807bd656c6
Fix: Rejiggering some dependencies, trying to get CI to pass (#10747)
* removing two duplicate devdependencies - leaving dependencies

* bumping shuffled dependencies, making fsevents non-optional

* bumping @babel/cli

* Another bump
2020-08-31 20:50:46 -07:00
Evan Rusackas
cd144b68ac
style: Tabs now support AntD compound components (+ basic stories) (#10728)
* Supporting compound coponents, adding stories

* Adding a coupe o' knobs just for fun.
2020-08-31 13:56:59 -07:00
Ville Brofeldt
4392c4608f
chore: bump pyarrow (#10733)
* chore: bump pandas an pyarrow

* remove unsupported kwargs

* fix types

* move pandas back to 1.0 branch due to possible MultiIndex regression
2020-08-31 19:55:53 +03:00
chuancy
234b6bbba9
fix(db-engine-spec): execute oracle DML statement bug in sqllab (#10706)
* fix execute oracle DML statement bug in sqllab

when i execute oracle sql statements like update in SQLLAB, get "oracle error: not a query" error. 

Refer https://www.python.org/dev/peps/pep-0249/, superset old version use
`cursor.description` ,because this attribute will be None for operations that do not return rows or if the cursor has not had an operation invoked via the .execute*() method yet.

* Apply suggestions from code review

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

* Update oracle.py

* Update oracle.py

* Update oracle.py

* Apply suggestions from code review

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

* Update oracle.py

* Update superset/db_engine_specs/oracle.py

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

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2020-08-31 08:03:07 +03:00
Maxime Beauchemin
3d8857ecc8
style: rename 'Source' top nav item to 'Data' (#10715)
* style: rename 'Source' top nav item to 'Data'

* Fix tests

* tables -> datasets

* rename datasource -> dataset

* lint

* more renaming

* use npm ci
2020-08-29 18:09:47 -07:00