Commit Graph

8277 Commits

Author SHA1 Message Date
Beto Dealmeida 7de54d016e
feat: import configuration from directory (#15686)
* feat: command to import configuration from a directory

This allows us to keep Superset updated from a repo:

```bash
$ superset import-directory /path/to/configs/
```

For example, I created a simple dashboard with a single chart:

PLACEHOLDER

I then exported it to a file `dashboard_export_20210714T104600.zip` and
unzipped it. After deleting the dashboard, chart, dataset, and database
I imported everything back with:

```bash
$ superset import-directory ~/Downloads/dashboard_export_20210714T104600/
```

I then changed the chart title in `~/Downloads/dashboard_export_20210714T104600/charts/Cnt_per_country_1.yaml` and ran the command again. The chart was succesfully updated:

PLACEHOLDER

* Small fixes
2021-08-11 18:42:50 -07:00
Beto Dealmeida 5a8484185b
fix: pyinstrument dependency (#16211) 2021-08-11 17:07:16 -07:00
Phillip Kelley-Dotson c79de7abd7
initial fix (#16212) 2021-08-11 15:50:50 -07:00
Phillip Kelley-Dotson b4555dfa4f
fix: sorting on "Modified By" in chart table (#16208)
* initial fix

* Update ChartList.tsx

change sort to first name
2021-08-11 15:31:10 -07:00
Kamil Gabryjelski ccfc95fbe6
fix(explore): adhoc metrics popover resets label after hovering outside (#16196)
* fix(explore): adhoc metrics popover resets label after hovering outside

* Remove irrelevant tests and skip rest

* Use ensureIsArray
2021-08-11 10:05:08 -06:00
AAfghahi 6c304b83a9
feat: Changing Dataset names (#16199)
* added google alert

* changing Dataset Names
2021-08-11 08:59:59 -07:00
Kamil Gabryjelski 98fc29cbbb
fix(explore): metric label disappearing in some scenarios (#16190) 2021-08-11 14:05:44 +02:00
Ville Brofeldt 4df3672baa
chore: bump superset-ui to 0.17.82 (#16186) 2021-08-11 10:08:12 +03:00
Elizabeth Thompson 3aefa6925b
update covid dashboard (#16183) 2021-08-10 20:47:13 -07:00
Phillip Kelley-Dotson a30d884cfc
fix: change listivew card layouts to the new homepage card layout (#16171)
* initial commit

* removing CardStylesOverrides (unused)

Co-authored-by: Evan Rusackas <evan@preset.io>
2021-08-10 20:26:24 -07:00
Junlin Chen 9841c78967
chore: switch back tag name to popular from highly-used (#16174)
* chore: switch back tag name to popular from highly-used

* new package lock

* new package lock with npm 7

* fix lint

* remove package changes

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-08-10 20:23:14 -07:00
Phillip Kelley-Dotson a0c9b9d9c2
fix: ensure created user entities do not show inside examples (#16176)
* initial commit

* fix lint

* Update superset-frontend/src/views/CRUD/utils.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/src/views/CRUD/utils.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

* Update superset-frontend/src/views/CRUD/utils.tsx

Co-authored-by: Evan Rusackas <evan@preset.io>

Co-authored-by: Evan Rusackas <evan@preset.io>
2021-08-10 19:53:47 -07:00
AAfghahi 6df16c4b1f
feat: CLI cleanup (#16178)
* added google alert

* removing datasets from cli
2021-08-10 18:00:34 -07:00
Elizabeth Thompson 628169a171
feat: change query predicate to text (#16160)
* change query predicate to text

* make input multiline

* remove value that is too long for the downgrade

* keep logging lint rule
2021-08-10 17:52:01 -07:00
AAfghahi 2dc0bdda5d
feat: Added multi-regional IPs to Database Connections (#16170)
* added google alert

* multi-regional IPs

* beto revisions

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset-frontend/src/views/CRUD/data/database/DatabaseModal/index.tsx

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-08-10 17:25:49 -07:00
Beto Dealmeida 9f52c103ac
fix: isDynamic function (#16175)
* fix: isDynamic function

* trigger tests
2021-08-10 16:28:43 -07:00
Elizabeth Thompson a3102488a1
feat: add chart image info to reports from charts (#16158)
* refetch reports on props update

* add chart types to reports
2021-08-10 15:11:10 -07:00
Geido 5e64d65a8b
Hide Safari default tooltip (#16145) 2021-08-10 14:38:13 -06:00
Beto Dealmeida 7b3fce7e81
fix: revert data endpoint name (#16162) 2021-08-10 11:59:27 -07:00
Hugh A. Miles II 3f86a54ac1
fix: turn on SSL in database edit form show 500 error (#16151)
* fix error for query.update

* converrt before making request

* fix query params

* remove unchanged files

* this

* update tsconfig
2021-08-10 13:31:28 -04:00
Hugh A. Miles II fd80ae34a3
fix: Make sheet_name into a `ValidationInputError` (#16056)
* setup validates for name

* add error type

* fix linting

* fix test

* remove errors

* fix number

* fix test
2021-08-10 13:07:31 -04:00
Phillip Kelley-Dotson f0e3b68cc2
fix: ensure that users viewing chart does not automatically save edit data (#16077)
* add last_change_at migration

* add last_saved_by db migration

* finish rest of api migration

* run precommit

* fix name

* run precommitt

* remove unused mods

* merge migrations

* Update superset/migrations/versions/6d20ba9ecb33_add_last_saved_at_to_slice_model.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset/migrations/versions/6d20ba9ecb33_add_last_saved_at_to_slice_model.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* Update superset/migrations/versions/f6196627326f_update_chart_permissions.py

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>

* fix test

* precommit

* remove print

* fix test

* change test

* test commit

* test 2

* test 3

* third time the charm

* fix put req

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2021-08-10 10:29:49 -06:00
Ville Brofeldt 63ace7b288
feat(cross-filters): add support for temporal filters (#16139)
* feat(cross-filters): add support for temporal filters

* fix test

* make filter optional

* remove mocks

* fix more tests

* remove unnecessary optionality

* fix even more tests

* bump superset-ui

* add isExtra to schema

* address comments

* fix presto test
2021-08-10 17:18:46 +01:00
Elizabeth Thompson 5488a8a948
add config to hide some user menu items (#16156) 2021-08-10 09:03:13 -07:00
Kamil Gabryjelski 6e1d16d956
feat(explore): each control can define its own canDrop for dnd (#16090)
* feat(explore): each control can define its own canDrop for dnd

* Make canDropValue optional

* Add onDropValue
2021-08-10 17:04:42 +02:00
Phillip Kelley-Dotson a70248736f
feat: add sticky state to tables and loadingcards state. (#16102)
* initial feat commit

* fix chart and dash rendering onload

* Update superset-frontend/src/views/CRUD/welcome/Welcome.tsx

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>

* fix jumpyness and add const

Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2021-08-10 06:43:59 -07:00
Michael S. Molina 273ab3d257
fix: Safari is not showing scroll bars in Explore (#16089) 2021-08-10 10:41:52 -03:00
Michael S. Molina 07f33998ac
fix: Multiple dashboard refresh triggers for the same session (#16094) 2021-08-10 09:12:28 -03:00
Yongjie Zhao bb1d8fe4ef
fix: boolean type into SQL 'in' operator (#16107)
* fix: boolean type into SQL 'in' operator

* fix ut

* fix ut again

* update url

* remove blank line
2021-08-10 19:21:46 +08:00
Maxime Beauchemin 79e8d77acc
chore: remove TerserPlugin step for build (#16163) 2021-08-10 17:09:40 +08:00
Lyndsi Kay Williams 3712ee02fa
additional params field fixed (#16161) 2021-08-09 19:13:37 -07:00
AAfghahi 606a7bf429
fix: change Alert Permissions (#16118)
* added google alert

* reworked permissions
2021-08-09 13:33:04 -07:00
AAfghahi 5ce38839e7
feat: better errors for report in charts and dashboard (#16131)
* added google alert

* better errors and report actions
2021-08-09 13:32:52 -07:00
AAfghahi a51851308b
feat: added google alert to DB Connection Form (#16095)
* added google alert

* using superset_text

* made google alert public and others private

* Hugh revisions
2021-08-09 14:08:06 -04:00
Kamil Gabryjelski b7cc89c6d4
fix(explore): dnd error when dragging metric if multi: false (#16088)
* fix(explore): dnd error when dragging metric if multi: false

* Fix error for non-dnd controls
2021-08-09 18:15:50 +02:00
adam-stasiak 578a9e9d53
build: Removed jsx-remove-data-test-id usage from code for multi-build-variant testing (#15386)
* enabled customized production build with testIds

* fix for docker

* changed substitution

* changed substitution
2021-08-09 10:11:26 -06:00
Kamil Gabryjelski 6ac4f4ef2f
chore(explore): change dnd placeholders (#16116)
* chore(explore): change dnd placeholders

* Fix tests and lint
2021-08-09 17:50:11 +02:00
Beto Dealmeida 2db1615c83
feat: add profiling to Superset pages (#16136)
* feat: add profiling to Superset pages

* Address comments
2021-08-09 08:39:35 -07:00
Maxime Beauchemin df50a47777
chore: add stats logging to thumbnail api (#16133) 2021-08-09 08:34:51 -07:00
Geido b07c80a839
Adjust width (#16092) 2021-08-09 17:25:33 +02:00
Beto Dealmeida ddb5005900
fix: test (#16137) 2021-08-08 23:13:23 -07:00
Yongjie Zhao 3bbcc30d69
fix: virtual dataset wont work (#16132) 2021-08-07 20:43:12 +08:00
Victor 85ae8e3477
refactor: proper TypeError handling in memoize decorator (#16074)
Co-authored-by: Victor Sadkov <victor.sadkov@cloudkitchens.com>
2021-08-06 20:03:52 -06:00
Grace Guo 85329c374e
refactor: remove unnecessary dataset queries from dashboard requests (#16110)
* refactor: remove unnecessary dataset queries from dashboard requests

* fix comments
2021-08-06 19:01:05 -07:00
Josh Berkus 22d8d582f8
docs: update install-from-scratch instructions for CentOS (#16129)
Update install-from-scratch instructions for current CentOS stream, based on doing a test install today.  CentOS stream python packages are now named after the version ("python3") and current Superset code requires updating Pip to a more current version.
2021-08-06 18:52:29 -06:00
Beto Dealmeida 28c383af68
fix: migrate_roles (#16098) 2021-08-06 10:05:19 -07:00
Kamil Gabryjelski 772da8de63
fix(explore): revert dnd column dependency array change to fix infinite rerenders (#16115)
* fix(explore): revert dnd column dependency array change to fix infinite rerenders

* Remove console.log

* Remove comment
2021-08-06 17:59:22 +02:00
ʈᵃᵢ b80f018691
fix: move watermark to about section (#16097) 2021-08-06 05:48:22 -07:00
Michael S. Molina 6edc1ee3bb
chore: Replaces the select for a dropdown button in the CSS editor (#16043) 2021-08-06 07:59:15 -03:00
Michael S. Molina e59f318ef9
chore: Changes the RefreshIntervalModal component to use the new select component (#16048) 2021-08-06 07:58:53 -03:00