Commit Graph

4930 Commits

Author SHA1 Message Date
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 c214cf1a43
[Viz/Query] Improve logging around cache hits (#9058) 2020-01-31 08:46:12 -08:00
Erik Ritter 47eecb84f5
[SQL Lab] Remove space after schema autocomplete (#9059) 2020-01-31 08:45:00 -08:00
Azhar Khan 2629c779af
[docs] update README.md Peak AI (#9052) 2020-01-30 13:56:37 +00:00
John Bodley 6416ef51ff
[UPDATING] Add metadata cache changes to 0.29.0 (#9050) 2020-01-29 20:22:46 -08:00
Will Barrett 9f4d8a5090
Add revert guidelines to CONTRIBUTING.md (#9018)
* Add revert guidelines to CONTRIBUTING.md

* Add note about age of PR

* Fix nits
2020-01-29 17:47:58 -08:00
John Bodley 51183b36f0
[sqllab] Showing schema length only when schema selected (#9041) 2020-01-29 16:06:57 -08:00
John Bodley 5738f9a159
[fix] Pivot table metric ordering (#9031) 2020-01-29 15:58:46 -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
Will Barrett fd9a713c7e
Remove endpoints allowing arbitrary cache access (#9049) 2020-01-29 15:41:57 -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
Daniel Vaz Gaspar fb17acd122
[api] fix, set default columns to just id when not defined (#8982) 2020-01-29 09:41:40 +00:00
Will Barrett a4ed0758b0
Remove redirect endpoint /superset/explorev2 (#9038) 2020-01-29 00:33:08 -05:00
John Bodley a303c3c73e
[fix] Adding show to FAB CRUD set (#9040) 2020-01-28 17:19:16 -08:00
Rob DiCiuccio 2fc3d84b5a
Serialize nested columns as JSON strings (#9007) 2020-01-28 15:50:36 -08:00
John Bodley 162f81078e
[routes] Re-adding FAB API routes for TableColumnInlineView (#9036) 2020-01-28 13:48:58 -08:00
John Bodley a267446f7b
[routes] Re-adding FAB API routes for SqlMetricInlineView and TableModelView (#9035) 2020-01-28 11:00:48 -08:00
John Bodley dc60db2a43
[fix] Reverting metic logic from #8901 (#9030) 2020-01-27 22:28:42 -08:00
ʈᵃᵢ d0aab05e79 [dashboard] fix, add config to optionally enable react replacement fo… (#9025)
* [dashboard] fix, add config to optionally enable react replacement for CRUD views

* move app.config to function scope
2020-01-27 11:28:24 -08: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
John Bodley aecc82e174
[refactor] Centralizing custom Python types (#9026) 2020-01-26 10:04:04 -08:00
Daniel Vaz Gaspar 1f21bf877f
[log] fix, log model view permissions (#8993)
Limit MVC access to admin role only and limit REST API permissions
2020-01-26 12:15:57 +00:00
Erik Ritter 68e85ab1b6 [Caching] Ensure cache is always created (#9020)
* [Caching] Ensure cache is always created

* Update cache_manager.py

* Refactoring cache typing
2020-01-25 22:49:05 +00:00
ʈᵃᵢ c552c852cd [dashboard] fix, enable info endpoint (#9015)
* [dashboard] fix, enable info endpoint

* add info to REST_MODEL_VIEW_CRUD_SET
2020-01-24 17:16:28 -08:00
Erik Ritter 922eec2db2
[SQL Lab] Cache function names query (#9019) 2020-01-24 16:45:41 -08:00
serenajiang f079b6dad0 [i18n] enable spanish (#9010) 2020-01-24 11:27:05 -08:00
John Bodley dcfa047b0b
[fix] Ensure sunburst column ordering adheres to hierarchy (#9011) 2020-01-24 11:24:34 -08: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
John Bodley 4b5d141f20
[fix] pydruid export_pandas (#9006)
* [fix] pydruid export_pandas

* Update models.py
2020-01-23 15:38:28 -08:00
Maxime Beauchemin 04be1d4b42
docs: remove reference to Panoramix and Caravel (#8998) 2020-01-23 15:50:21 -05:00
Daniel Vaz Gaspar 6f1c931ff0
Bump FAB to 2.2.2 (#9004) 2020-01-23 16:51:01 +00: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
Ville Brofeldt bf08ff591c Bump requirements.txt to what setup.py would pull in (#8992) 2020-01-22 20:12:40 -05:00
John Bodley d56abc3d34
[druid] Making scaning/refreshing Druid datasource view items optional (#8995) 2020-01-22 15:53:16 -08:00
Erik Ritter 5a04f30104
[SQL Lab] Open request access link in a new tab (#8997) 2020-01-22 15:31:28 -08:00
serenajiang a62390d1a0 [druid] make cluster_name editable (#8996) 2020-01-22 15:19:51 -08:00
Ville Brofeldt e46ff239af
Bump pandas to 0.25.3 (#8985)
* Bump pandas to 0.25.3 as per recommendation to get ready for 1.0

* Localize timezone aware Pandas series prior to Arrow conversion
2020-01-22 09:03:19 +02:00
Daniel Vaz Gaspar d02cf2f509 [dashboards] New, API for Bulk delete (#8972)
* [dashboards] New, API for Bulk delete

* [dashboards] Tests

* [dashboards] Fix not found on multiple delete

* [dashboards] Bulk delete partial deletes on not owned dashes

* [dashboards] Improve OpenAPI spec and tests

* [dashboards] Test for bad request

* [dashboards] i18n

* [dashboards] black

* [dashboard] make bulk all or nothing

* [dashboard] Log on sqlalchemy error

* [dashboard] Log on sqlalchemy error
2020-01-21 17:14:53 -05:00
Daniel Vaz Gaspar 74158694c5 [charts] New, REST API (#8917)
* [charts] New REST API

* [charts] Small improvements

* [charts] Fix, lint

* [charts] Tests and datasource validation

* [charts] Fix, lint

* [charts] DRY post schemas

* [charts] lint and improve type declarations

* [charts] DRY owned REST APIs

* [charts] Small fixes

* [charts] More tests

* [charts] Tests and DRY

* [charts] Tests for update

* [charts] More tests

* [charts] Fix, isort

* [charts] DRY and improve quality

* [charts] DRY and more tests

* [charts] Refactor base for api and schemas

* [charts] Fix bug on partial updates for dashboards

* [charts] Fix missing apache license

* black app.py after merge

* [charts] Fix, missing imports and black

* [api] Log on sqlalchemy error

* [api] isort
2020-01-21 13:04:52 -05: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
Ville Brofeldt c087a48d52 fix: add datasource.changed_on to cache_key (#8901)
* Add datasource.changed_on to cache_key and add+fix related unit tests

* Add note to UPDATING.md

* Remove redundant comment about metric names
2020-01-16 00:51:13 -05:00
Grace Guo 2b0c7a1b73 [docs] Fix CORS section in installation (#8958) 2020-01-16 00:49:33 -05: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
Daniel Vaz Gaspar 123246fca6
[dashboards] New, export api (#8941)
* [dashboards] Multiple exports

* [dashboards] Fix, mulexport permission missing

* [dashboards] Test for security filtered export

* [dashboards] Address PR comments
2020-01-15 18:09:55 +00:00