Commit Graph

4866 Commits

Author SHA1 Message Date
Ville Brofeldt 4ffee8c5d1
[UPDATING] Adding notes regarding #8867 (#9246) 2020-03-05 21:15:47 +02:00
Ville Brofeldt ef2ebbd570
Add option to specify type specific date truncation functions (#9238) 2020-03-05 07:25:50 +02:00
Erik Ritter 7d572d9e96
Introducing Inter UI & Fira typefaces (#9207)
* All the fonts!

* dynamic loading

* folderizing fonts by family

* Shuffling files, getting rid off LESS fanciness

* Fira Mono, consolidating on "specimen" for LESS filenames

* Fira Code

* switch for enabling ligatures

* ligatures off for now

* license

* nixing Fira Mono, using OTF features instead.
2020-03-04 17:32:08 -08:00
Erik Ritter b1d83ba8d6
fix: choose language link for local dev (#9215)
@superset-ui/connection will add protocol and host to an "endpoint" call.

`e.currentTarget.href` may return the full URL instead of the relative
url.
2020-03-04 17:08:23 -08:00
Ville Brofeldt 969bc87431
fix: Oracle fetch_query and datetime conversion (#9240) 2020-03-04 23:43:28 +02:00
Ville Brofeldt 7a91498cf1
fix: share column type matching between model and result set (#9161)
* Share column type matching between model and result set

* Address comments
2020-03-04 16:33:22 +02:00
Daniel Vaz Gaspar d55240a598
[security] Fix, let admin's be able to reset user passwords on AUTH_DB (#9232)
* [security] Fix, let admin's be able to reset user passwords on AUTH_DB

* [security] Fix, use constants
2020-03-03 18:57:23 +00: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
Daniel Vaz Gaspar 26e916e46b
[api] enable CSRF by default (#9205)
* [api] Fix, don't exempt CSRF on APIs

* adds cookie based CSRF token support

* blacking

Co-authored-by: ʈᵃᵢ <tdupreetan@gmail.com>
2020-03-03 12:22:40 +00:00
Erik Ritter 28c05b22e8
[SQL Lab] Implement refetch results button properly (#9220) 2020-03-02 16:10:40 -08:00
David Aaron Suddjian e01f24f833
Prevent database connections to sqlite (#9218)
* prevent database connections to sqlite

* tweaks and tests

* add entry to UPDATING.md
2020-03-02 13:13:11 -08:00
Grace Guo ccd6e44edf
refactor copy filter_scopes and add tests (#9224)
* refactor copy filter_scopes and add tests

* fix review comments
2020-03-02 12:55:30 -08:00
John Bodley 7b2c2e8a33
[fix] Adding SIP-15 support for the query context (#9219) 2020-03-02 10:10:54 -08:00
ʈᵃᵢ cd4605e4c1
[dashboard, chart] fix ordering and filtering in listviews (#9212)
* [dashboard, chart] fix ordering and filtering

* fix owner name bug, better typing

* remove tslint comment
2020-02-27 09:30:52 -08:00
Grace Guo ca2bc8b15f
[fix] remove chart id from filter_scopes metadata if chart is not in dash anymore (#9213)
* [fix] remove chart id from filter_scopes metadata if chart is not in dashboard anymore

* fix review comments, and add check for overwrite dash function
2020-02-26 17:33:01 -08:00
michellethomas 4f73f8a1f9
[Bug Fix] Returning timeseries_limit_metric in table viz get_data (#9196)
* Returning timeseries_limit_metric in table viz get_data

* Fixing issue with include_time field

* Reformatting and adding a test

* Changing if/else structure

* Reformatting
2020-02-25 21:34:36 -08:00
Grace Guo ace0ba9456
[annotation] upgrade chart plugin version (#9203) 2020-02-25 21:19:00 -08:00
Grace Guo 883b0d0313
[dashboard perf logging] add dashboard url anchor component id (#9202) 2020-02-25 21:18:36 -08:00
Maxime Beauchemin 57321dc1f6
chore: run 'npm audit fix' to fix 2 vulnerabilities (#9106) 2020-02-25 17:05:58 -08:00
Evan Rusackas 8c16ff089b
Removing (unused?) Victory theme file (#9063) 2020-02-25 16:46:37 -08:00
Jianchao Yang 1992069af1
Upgrade typescript to 3.8.2 (#9189) 2020-02-25 08:44:26 -08:00
Daniel Vaz Gaspar 23fc9a7a72
[config] Disable FAB's permission and view menus views (#9133) 2020-02-25 00:49:56 +00:00
Erik Ritter 5ba7fcaeea
docs: update CONTRIBUTING with TypeScript details from [SIP-36] (#9185) 2020-02-24 14:31:23 -08:00
Erik Ritter eeec63c7dd
[SIP-36] Migrate setupApp.js to setupApp.ts (#9180) 2020-02-24 14:30:35 -08:00
Grace Guo 421aeb4605
[dashboard] fix filter_scopes when copy dashboard with duplicate_slices (#9188)
* [dashboard] fix filter_scopes when copy dashboard with duplicate_slices

* code cleanup
2020-02-24 13:45:29 -08:00
Daniel Vaz Gaspar 8c095a6e39
Bump FAB to 2.2.4 (#9165) 2020-02-24 18:57:58 +00:00
ʈᵃᵢ 1748728c45
adds FAB style filter types (#9086) 2020-02-24 10:16:11 -08:00
Evan Rusackas 72518e20ee
forcing fixed width fonts on ace editor (fixes #9095) (#9183)
* forcing fixed width fonts on ace editor

* making styles global (for sql editors outside SqlLab

* prettier
2020-02-24 10:09:21 -08:00
Daniel Vaz Gaspar 8e4dcd0509
[log] Set detailed query info to log debug level (#9167) 2020-02-24 10:42:59 +00:00
Daniel Vaz Gaspar 27b371a485
[core] Fix, sanitize errors returned from testconn (#9178) 2020-02-24 10:40:51 +00:00
Maxime Beauchemin 7b06bb7549
docs: remove focus on Druid in README.md (#9184)
The text in the README seemed overly Druid-centric at this time. While
originally (3-4 years ago) Superset was heavily focussed on druid, it's
just not accurate anymore. Druid is just one of the databases that we
support and docs should reflect that.
2020-02-24 10:30:25 +00:00
Erik Ritter 78b1561820
Make JSX Menu links open in new tab (#9191) 2020-02-23 07:43:06 -08:00
altef dee16de03e
[SIP-29] Add support for row-level security (#8699)
* Support and apply filters.

* Added the UI for row level security, and moved it all under SQLA in order to access the Table model more easily.

* Added a row level security filter documentation entry.

* Accidentally added two new lines to this file.

* Blacked and iSorted, hopefully.  Also, sometimes g.user may not be set.

* Another isort, and handling g not having a user attribute another way.

* Let's try this again #CI tests.

* Adjusted import order for isort; I was sure I'd already done this..

* Row level filters should be wrapped in parentheses in case one contains an OR.

* Oops, did not think that would change Black's formatting.

* Changes as per @mistercrunch.

* RLS filters are now many-to-many with Roles.

* Updated documentation to reflect RLS filters supporting multiple rows.

* Let's see what happens when I set it to the previous revision ID

* Updated from upstream.

* There was a pylint error.

* Added RLS ids to the cache keys; modified documentation; added template processing to RLS filters.

* A new migration was merged in.

* Removed RLS cache key from query_object.

* RLS added to the cache_key from query_context.

* Changes as per @etr2460.

* Updating entry for RLS pull request.

* Another migration to skip.

* Changes as per @serenajiang.

* Blacked.

* Blacked and added some attributes to check for.

* Changed to a manual query as per @mistercrunch.

* Blacked.

* Another migration in the meantime.

* Black wanted some whitespace changes.

* AttributeError: 'AnonymousUserMixin' object has no attribute 'id'.

* Oops, did hasattr backwards.

* Changes as per @mistercrunch.

* Doesn't look like text us required here anymore.

* Changes as per @dpgaspar

* Two RLS tests.

* Row level security is now disabled by default via the feature flag ENABLE_ROW_LEVEL_SECURITY.

* New head to revise.

* Changed the comment.
2020-02-22 11:21:31 +02:00
Erik Ritter 3efdfc5345
Infer SQL_LAB QuerySource from referrer (#9181) 2020-02-20 13:38:47 -08:00
John Bodley 141570636e
[fix] SQL query source (#9173) 2020-02-20 11:15:12 -08:00
ʈᵃᵢ 74423e5d19
deprecate tslint and configure eslint for typescript (#9172) 2020-02-20 09:54:33 -08:00
Daniel Vaz Gaspar e55fe43ca6
[database] Fix, tables API endpoint (#9144) 2020-02-20 10:15:22 +00:00
Grace Guo c1750af54a
[dashboard] clean up usage for old filter immune metadata (#9146)
* [dashboard] clean up usage for filter_immune metadata

* add fix per comment
2020-02-19 09:58:34 -08:00
Will Barrett 38f3fd0c9f
Add feature flags to control query sharing, KV exposure (#9120)
* Add feature flags to control query sharing, KV exposure

* Add tests, fix bug

* Skip test for kv endpoints when they are disabled

* ESLint fixes

* Remove unnecessary binds

* Fix eslint errors

* Add note to UPDATING.md RE: new feature flag options

* Use expanded version of RBAC

* Enable KV_STORE and SHARE_QUERIES_VIA_KV_STORE feature flags in the test environment

* Fix black
2020-02-19 09:51:50 -08:00
Grace Guo 84b42d28b9
[dashboard] use filter_scopes metadata when import old dashboard (#9145)
* [dashboard] update filter_scopes metadata when import old dashboard

* fix review comments
2020-02-19 09:06:52 -08:00
Erik Ritter e5e6b53687
[SIP-36] Migrate Link.jsx to Link.tsx (#9162) 2020-02-19 08:49:04 -08:00
ʈᵃᵢ 3e73c81b25
filter out markdown containing XSS (#9163) 2020-02-19 09:44:44 +00:00
John Bodley 9f5f8e5d92
[mypy] Enforcing typing for db_engine_specs (#9138) 2020-02-17 23:08:11 -08:00
Ville Brofeldt 3149d8ebc0
Add release refinements from 0.35.2 release (#8925)
* Add refinements from 0.35.2 release

* Trim whitespace from voter name if voters entered with space after comma (e.g. 'Ville, Andy')

* Reinstate deterministic deps

* Bump copyright date in NOTICE

* Fix incorrect link in README
2020-02-18 07:14:31 +02:00
Xiang Fu c7e2785d38
Support human readable datetime type for PinotDB (#9142)
* Support more time types for Pinot

* Address comments

* Address comments
2020-02-18 07:05:38 +02:00
Rob DiCiuccio 0992445ae9
Catch TypeError on PyArrow array instantiation (#9139) 2020-02-17 08:34:00 -08:00
John Bodley 9f7466ef90
[fix] Fix table viz column order (#9122) 2020-02-16 22:51:35 -08:00
John Bodley a7e433a512
[mypy] Disallowing implicit optional (#9150) 2020-02-16 22:34:15 -08:00
Ville Brofeldt 114642d78c
fix adhoc metric bug in chord diagram (#9149) 2020-02-16 20:45:35 -08:00
ʈᵃᵢ f95a867742
[sqllab] fix: return pandas records in execute_sql_statements (#9102)
* [sqllab] fix: return pandas records in execute_sql_statements

* empty commit
2020-02-14 13:42:55 -08:00