Commit Graph

1629 Commits

Author SHA1 Message Date
Jesse Yang
ed4f6e93ac chore: bump superset-ui to v0.14.1 (#10112) 2020-06-22 11:14:23 -07:00
Ville Brofeldt
5c4d4f16b3 feat: finalize Word Cloud move to new chart data endpoint (#9975)
* remove word cloud from viz.py

* Fix Run in SQL Lab

* remove deprecated python tests

* break out legacy endpoint type into function

* Break out exploreChart from exportChart and implement results type

* Fix jest tests and refactor accordingly

* lint

* Rename v1 payload function

* Add dashboard id to v1 chart data request url params

* Add support for domain sharding to v1 chart data request
2020-06-05 14:08:46 +03:00
Phillip Kelley-Dotson
38c57f45ac feat: partitionchart controls migration (#9768)
* fix lint error

* fix: import lint error

* pull in latests code

* delete control from plugin registry

* fixing again...

* another fix with rebase...

* commit change

* update packages and fix test

* fix: add ignore to lint error

* fix mr

* fix lint

* fix imports

Co-authored-by: Phillip Kelley-Dotson <pkd@pkd.lan>
2020-05-18 12:48:51 -07:00
Bogdan
02b3fb1d63 Add visualization flow to the CTA queries (#9370)
* Visualize after running Ctas query (#4)

* Visualize after running Ctas query.

Stub for table viz

Work on the viz

Add JS functionality for Ctas viz

Add test for the table viz flow

Fix test

Add js test for the ctas viz

* Fix tests

* Resolve comments

* Leverate tmpSchema in the query object

* Fix i18n string

Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com>
2020-04-11 00:46:46 +03:00
Bogdan
4e1fa95035 Make schema name for the CTA queries and limit configurable (#8867)
* Make schema name configurable

Fixing unit tests

Fix table quoting

Mypy

Split tests out for sqlite

Grant more permissions for mysql user

Postgres doesn't support if not exists

More logging

Commit for table creation

Priviliges for postgres

Update tests

Resolve comments

Lint

No limits for the CTA queries if configures

* CTA -> CTAS and dict -> {}

* Move database creation to the .travis file

* Black

* Move tweaks to travis db setup

* Remove left over version

* Address comments

* Quote table names in the CTAS queries

* Pass tmp_schema_name for the query execution

* Rebase alembic migration

* Switch to python3 mypy

* SQLLAB_CTA_SCHEMA_NAME_FUNC -> SQLLAB_CTAS_SCHEMA_NAME_FUNC

* Black
2020-03-03 19:52:20 +02:00
David Aaron Suddjian
2913063924 SIP-32: Moving frontend code to the base of the repo (#9098)
* move assets out, get webpack dev working

* update docs to reference superset-frontend

* draw the rest of the owl

* fix docs

* fix webpack script

* rats

* correct docs

* fix tox dox
2020-02-09 17:53:56 -08:00
David Aaron Suddjian
3cbe228dc1 [dashboard] Fix for dashboard edit modal, loading user list (#9081)
* fix fetching list of potential dashboard owners

* show owners input before data is loaded

* unnecessary fragment
2020-02-07 14:52:35 -08:00
David Aaron Suddjian
f0d3892b26 [dashboard] Fix metadata state (#9088)
* use the full metadata object

* use ace editor for json
2020-02-06 10:00:27 -08:00
ʈᵃᵢ
e5f5eed425 [chart] new, list view (react) (#8999)
* [charts] new, list view (react)

* DRY up template rendering

* fix i18n

* lint package.json
2020-02-05 12:42:42 -08:00
Grace Guo
26def813b0 [fix] Add Auto Refresh Dashboard user event into dashboard logging (#9087)
1. add logging
2. refactor general periodical render function
2020-02-05 12:25:01 -08:00
David Aaron Suddjian
d4d7134bf8 [explore] Modal to edit chart properties (#9051)
* chart edit modal

* remove commented code

* remove unused prop

* address PR feedback

* small tweak
2020-02-04 17:38:51 +00:00
Grace Guo
c9a4384b5e [logging] Add flag for document visibility (#9070) 2020-02-03 11:29:02 -08:00
Grace Guo
bee913bbb1 [domain sharding] Freeup main domain when domain sharding is enabled (#9060)
* [domain sharding] Freeup main domain when domain sharding is enabled

* add change per comment + extra cleanup
2020-02-03 11:28:39 -08:00
Erik Ritter
f9c8ca5df2 [SQL Lab] Improve autocomplete performance (#9064) 2020-02-02 09:13:25 -08:00
Evan Rusackas
bbe433784d LESS is more (#9023)
* hover stuff

* pseudos

* lint

* condensation

* linebreaks before ampersands, where prettier allows.

* more condensing, adding whitespace above blocks, adding stylelint rule to enforce that.

* prettier

* a little DRYer
2020-01-31 09:38:31 -08:00
Erik Ritter
47eecb84f5 [SQL Lab] Remove space after schema autocomplete (#9059) 2020-01-31 08:45:00 -08:00
John Bodley
51183b36f0 [sqllab] Showing schema length only when schema selected (#9041) 2020-01-29 16:06:57 -08:00
aspedrosa
5f499b9545 Avoid fetch fav dashboard stat not logged in (#8527)
* Avoid fetch fav dashboard stat not logged in

* Fix old Header tests and add a new one

* Add userId to other Header tests to be consistent

* Format code to make 'prettier' tests pass
2020-01-29 15:45:20 -08:00
Daniel Vaz Gaspar
d5dbfc886d [database] new, API table metadata (#9002)
Migrates and completely removes: '/superset/table/<database_id>/<table_name>/<schema>/'
- Guarantees database filtering based on the user permissions
- Full OpenAPI spec
- Better error handling
2020-01-29 09:51:06 +00:00
ʈᵃᵢ
a0cda321b7 [dashboard] new, bulk actions for delete & export (#8979)
* bulk actions for dashboards list view

* add confirm component

* finish bulk actions work

* remove loading component

* fix sortby double render bug, lint, fix specs

* adds spec for bulk actions

* fix spec

* spec ConfirmStatusChange

* lint

* tslint

* address review feedback

* tslint fixes

* guard against empty filterTypes

* persist dom events

* tslint
2020-01-27 13:23:41 -05:00
Erik Ritter
a4b8e0b9e4 [SQL Lab] Add function names to autocomplete (#9012) 2020-01-24 11:08:26 -08:00
Evan Rusackas
a85df65f85 Z index registry / clean-up (#8984)
* first pass

* whittling unused code

* updating to shortened name

* removing unnecessary z-index

* removing unnecessary flexbox vendor prefixing

* hover pseudoclass not needed for cursor styling.

* Seemingly unnecessary  z-indices on ACE content editor in dashboard

* seemingly uused styles.

* seemingly unncessary z-index setting

* seemingly unnecessary z-index

* LESS is more

* nixing antiquated gridster styles

* clearing out unnecessary z-indices

* adding z-dashedits layer

* removing a seemingly unnecessary z-index

* renaming var... more of a layer than edit-situation

* nixing unused z-indices

* moving to var

* comments/org

* moving to var. Lower value, but seems fine.

* usage note

* formatting/linting 

* better notes/labeling

* dash -> dashboard

* Do or do not. There is no try.

* no comment

* z-... -> z-index-...

Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com>
2020-01-24 00:47:55 -05:00
Grace Guo
d0bc04fc93 [perf_logging] Add is_cached status when chart has error (#9009) 2020-01-23 17:05:39 -08:00
Erik Ritter
d3d8603620 [SQL Lab] Disable autocomplete when typing numbers (#9008) 2020-01-23 16:07:36 -08:00
Maxime Beauchemin
315a11dfe2 fix: shut off unneeded endpoints (#8960)
* fix: shut off all uneeded endpoints

We recently added a new feature to FAB allowing to whitelist the needed
endpoints in ModelView and ModelRestApi.

First, we set our base wrapper class to an empty set, forcing each
class inheriting from it to explicitely turn on the endpoints that
Superset intends to use.

Second, we go ModelView by ModelView to whitelist the actual endpoints
used in the app.

Notes:
* as a result a large set of [unneeded] permissions should be cleaned up
* outside of the "private" use of endpoints in the app, people that have
  been using endpoints in their environment for other purposes may
  experience loss of functionality

* Tweaking

* Reduce the amount of endpoints using white lists

* Fix, included needed endpoints for dashboard and druid

* Drying things up

* fixes

* limiting more endpoints

* Read only on some FAB model views

* fixing some tests

* fixes

* Fixing more tests

* Addressing comments

* Drying up route_methods

* further drying

Co-authored-by: Daniel Vaz Gaspar <danielvazgaspar@gmail.com>
2020-01-23 11:25:15 -05:00
Evan Rusackas
22699a204d Timing and radii (#8988)
* parameterizing dot for easy resizing.

* first pass

* all timing normalized

* seeing no need to 'reset' this transition

* getting most border radii, a little light linting.

* parameterizing dot dimensions
2020-01-22 20:55:57 -05:00
Erik Ritter
5a04f30104 [SQL Lab] Open request access link in a new tab (#8997) 2020-01-22 15:31:28 -08:00
John Bodley
2fc5fd4f29 [sip-15] Displaying endpoints for all start/end time ranges (#8817)
* [sip-15] Displaying endpoints for all start/end time ranges

* Update superset/assets/src/explore/components/controls/DateFilterControl.jsx

Co-Authored-By: Erik Ritter <erik.ritter@airbnb.com>

* Update superset/assets/src/explore/components/controls/DateFilterControl.jsx

Co-Authored-By: Erik Ritter <erik.ritter@airbnb.com>

* Update DateFilterControl.jsx

Co-authored-by: Erik Ritter <erik.ritter@airbnb.com>
2020-01-17 13:13:35 -08:00
ʈᵃᵢ
7b97764dbc [dashboard] New, list view (react) (#8845)
* adds dashboard listview component

* use new api

* use json over rison

* lint

* adds seperate dashboard list view

* edit and delete actions

* fix lint ignore

* fix common_bootstrap_payload is now a function

* fix license

* fix pylint

* isort

* fix tests

* lint

* lint ts

* fix js tests

* fix double import from bad rebase

* fix indent error

* lookup permissions

* generic permission lookup

* get tslint to pass

* adds js specs

* lint

* fix rebase

* lint

* lint again

* fix type errors preventing build

* adds more specs

* fix tslint error

* fix null check

* remove unecessary code

* use translations provided by api

* more translations

* linting

* fix spec

* i18n

* fix register order
2020-01-16 00:48:55 -05:00
David Aaron Suddjian
7e6719050b fix empty slug breaking url (#8974) 2020-01-16 00:34:23 -05:00
Erik Ritter
ff9bc74c86 Refactor sql editor autocomplete (#8967) 2020-01-15 13:05:56 -08:00
Maxime Beauchemin
31d7f69193 fix: lighten CSS border for data preview table (#8966)
this has been bugging me
2020-01-15 00:17:50 -05:00
David Aaron Suddjian
614f13377b [dashboard] Modal for editing dashboard properties & metadata (#8876)
* wip

* wip

* wip

* modal to update dashboard properties

* cleanup

* translations and flavor text

* linted

* more explanatory text in the modal
2020-01-14 14:29:59 -05:00
Grace Guo
50f21cb7db [filter_box] Fix ; separated filter_box default values (#8949) 2020-01-13 20:35:33 -08:00
Evan Rusackas
d9e7db69fe [css] Bringing Bootswatch in line with external variables, and other CSS tweaks (#8781)
* Bumping less-loader

* moving/updating styles, with a bit of linting as I go.

* more whittling

* caught a couple more colors

* reverting plugin config changes I was hacking around with.

* toast messages now use status colors across the board.

* no more pink.

* expanding scope of linting

* a little more CSS linting

* fixing popover adhoc metric title height issue

* eslint: Ignoring nore modules in subfolders
2020-01-13 12:59:20 -05:00
Daniel Vaz Gaspar
5b2499984d [dashboard] Deprecate superset published API (#8914) 2020-01-10 08:48:17 +00:00
Rob DiCiuccio
6537d5ed8c Replace pandas.DataFrame with PyArrow.Table for nullable int typing (#8733)
* Use PyArrow Table for query result serialization

* Cleanup dev comments

* Additional cleanup

* WIP: tests

* Remove explicit dtype logic from db_engine_specs

* Remove obsolete  column property

* SupersetTable column types

* Port SupersetDataFrame methods to SupersetTable

* Add test for nullable boolean columns

* Support datetime values with timezone offsets

* Black formatting

* Pylint

* More linting/formatting

* Resolve issue with timezones not appearing in results

* Types

* Enable running of tests in tests/db_engine_specs

* Resolve application context errors

* Refactor and add tests for pyodbc.Row conversion

* Appease isort, regardless of isort:skip

* Re-enable RESULTS_BACKEND_USE_MSGPACK default based on benchmarks

* Dataframe typing and nits

* Renames to reduce ambiguity
2020-01-03 11:55:39 -05:00
Grace Guo
cd8aa92cbb [explore view] fix: Inline edit chart title cause unintended overwrite original query parameter (#8835)
* [explore view] fix: Inline edit chart title cause unintended overwrite original query parameter

* add more unit tests

* handle new slice case
2019-12-18 16:17:48 -08:00
ʈᵃᵢ
cbf860074b move cypress into its own directory with package.json (#8627)
* move cypress into it's own directory with package.json

* update contributing and include cypress fixtures dir

* newline

* fix rebase

* add cypress dep

* bump cypress
2019-12-18 09:59:42 -08:00
Beto Dealmeida
9ed4b24533 Add toast presenter to Welcome app (#8854)
* Add toast presenter

* Improve message when unauthenticated

* Lint
2019-12-17 15:50:36 -08:00
Evan Rusackas
5780d9d53b Version number and SHA added to user menu (#8850)
* working!

* sigh... linting.

* more linting
2019-12-16 23:48:27 -08:00
Grace Guo
b6f31abcfe [dashboard] fix duplicated chart fetching when dashboard has default_filters (#8829) 2019-12-13 11:40:27 -08:00
John Bodley
18fbe56462 [fix] Adding time grains to Table (#8825) 2019-12-13 09:27:20 +13:00
Beto Dealmeida
ec43609820 Fix for when there are no dashboards (#8815) 2019-12-12 11:15:40 -08:00
Grace Guo
1d3c93ccb2 [filter_box] dashboard should carry defaultValue in filter_box (#8812) 2019-12-12 11:01:18 -08:00
Grace Guo
a96eae46af [dashboard] fix time granularity display values (#8806)
* [dashboard] fix time granularity display values

* fix review comments
2019-12-11 12:01:11 -08:00
Maxime Beauchemin
9f16d053e1 fix: don't show filter popover on explore view load (#8729)
* fix: don't show filter popover on explore view load

There's this confusing "feature" that I thought was a bug that shows the
metric popover opened when entering the explore view when the filter
comes from an active dashboard filter, based on the "fromFormData"
attribute of the filter.

The popover is confusing and often shows as misaligned with the actual
element it's supposed to float over when overflowing.

* warn

* fix cypress

* also shut off  metrics
2019-12-09 21:59:53 -08:00
Evan Rusackas
8b1022f66b darker opacity on shadow border for highlighted cards (#8797)
* darker opacity on shadow for highlighted cards

* removing unnecessary LESS fade

* lightening the lightest segment of the shadow again.
2019-12-09 21:58:59 -08:00
John Bodley
2fb95cc2b0 [fix] Adding time grains to DualLine (#8800) 2019-12-10 14:21:07 +13:00
John Bodley
665e94784c [fix] Adding time grains to PivotTable (#8764) 2019-12-05 09:55:33 -08:00