Commit Graph

94 Commits

Author SHA1 Message Date
John Bodley
92cdb8c282 chore: Add explicit bidirectional performant relationships for SQLA model (#22413) 2023-01-21 10:17:56 +13:00
Ville Brofeldt
38d02a10b5 fix(cypress): make test chart time range deterministic (#22567) 2023-01-03 07:46:40 +00:00
Ville Brofeldt
b954f8f560 feat(welcome): make examples tab customizable (#22302) 2022-12-21 09:28:41 +02:00
Hugh A. Miles II
e23efefc46 feat: refactor all get_sqla_engine to use contextmanager in codebase (#21943) 2022-11-15 13:45:14 -05:00
Michael S. Molina
7d1df3b78d feat: Improves SafeMarkdown HTML sanitization (#21895) 2022-11-04 10:34:02 -04:00
Geido
b17ef18aae chore: Color consistency E2E tests (#21622)
Co-authored-by: stephenLYZ <750188453@qq.com>
2022-10-20 14:16:29 +03:00
Geido
7b66e0bb34 chore: E2E tests for Drill to Detail supported Charts (#21681) 2022-10-05 19:54:51 +03:00
Kamil Gabryjelski
eeb979c150 chore: Create dashboard with tier 1 and tier 2 charts (#21551) 2022-09-30 14:14:26 +03:00
Geido
f017f98b88 chore: E2E tests for the Drill to detail modal (#21187)
* Add example ECharts Dashboard

* [WIP] E2E test

* Add echarts interactions

* Lint

* DRY
2022-08-29 11:25:27 +03:00
EugeneTorap
76d6a9af91 chore: Support Python 3.10 and bump pandas 1.4 and pyarrow 6 (#21002)
* Bump pandas 1.4 and pyarrow 6

* Use engine="pyarrow" for pd.read_csv()

* Refactoring

* Refactoring

* Refactoring

* Use bytes in pd.read_json()

* Fix test_contribution

* Fix pandas issue when 'arrays' are empty but 'names' contain values

* fix: ValueError: For argument "ascending" expected type bool, received type NoneType.

* Remove engine="pyarrow" and convert bytes to string

* make copy of selected df to fix regression

* Simplify pd.read_json() and pd.read_csv() for example data

Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-08-17 10:36:36 -03:00
Jesse Yang
2cb4fd31f1 refactor(test): add login_as_admin in global conftest (#20703) 2022-07-14 18:10:31 -07:00
Hugh A. Miles II
e3e37cb68f chore: switching out ConnectorRegistry references for DatasourceDAO (#20380)
* rename and move dao file

* Update dao.py

* add cachekey

* Update __init__.py

* change reference in query context test

* add utils ref

* more ref changes

* add helpers

* add todo in dashboard.py

* add cachekey

* circular import error in dar.py

* push rest of refs

* fix linting

* fix more linting

* update enum

* remove references for connector registry

* big reafctor

* take value

* fix

* test to see if removing value works

* delete connectregistry

* address concerns

* address comments

* fix merge conflicts

* address concern II

* address concern II

* fix test

Co-authored-by: Phillip Kelley-Dotson <pkelleydotson@yahoo.com>
2022-06-21 13:22:39 +02:00
Elizabeth Thompson
32bb1ce3ff feat!: pass datasource_type and datasource_id to form_data (#19981)
* pass datasource_type and datasource_id to form_data

* add datasource_type to delete command

* add datasource_type to delete command

* fix old keys implementation

* add more tests
2022-06-02 16:48:16 -07:00
Jesse Yang
6139057dcf test: make tabbed dashboard a little more complex (#19966) 2022-05-13 17:31:23 -07:00
Jesse Yang
231716cb50 perf: refactor SIP-68 db migrations with INSERT SELECT FROM (#19421) 2022-04-19 18:58:18 -07:00
Ville Brofeldt
a619cb4ea9 chore: upgrade black (#19410) 2022-03-29 20:03:09 +03:00
John Bodley
26486d01c1 chore: Remove legacy SIP-15 interim logic/flags (#18936)
* chore: Remove legacy SIP-15 logic

* Update ab9a9d86e695_deprecate_time_range_endpoints.py

* Update UPDATING.md

* Update UPDATING.md

* Update UPDATING.md

Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-03-04 09:15:36 +13:00
ofekisr
810cfc13db fix can't use examples helpers on non app context based environment (#18086) 2022-01-19 20:16:15 +02:00
ofekisr
e53a50a155 chore(supeset.utils.core): move all database utils to database utils module (#18058) 2022-01-16 08:32:50 +02:00
Beto Dealmeida
d9acb280c4 fix: New Members per Month time range (#17783) 2021-12-16 12:31:14 -08:00
Beto Dealmeida
63d9693f21 feat: add main datetime column to dataset editor (#17739)
* feat: add main dttm col to dataset editor

* Add tests
2021-12-14 14:47:08 -08:00
Kamil Gabryjelski
fa51b3234e fix(dashboard): Return columns and verbose_map for groupby values of Pivot Table v2 [ID-7] (#17287)
* fix(dashboard): Return columns and verbose_map for groupby values of Pivot Table v2

* Refactor

* Fix test and lint

* Fix test

* Refactor

* Fix lint
2021-11-05 16:05:48 +01:00
Beto Dealmeida
1fbce88a46 fix: set correct schema on config import (#16041)
* fix: set correct schema on config import

* Fix lint

* Fix test

* Fix tests

* Fix another test

* Fix another test

* Fix base test

* Add helper function

* Fix examples

* Fix test

* Fix test

* Fixing more tests
2021-11-04 11:09:08 -07:00
Yongjie Zhao
31085e34ce fix: CI is blocked by mypy checking (#17213) 2021-10-25 11:16:47 +08:00
John Bodley
b9ff85d9ea chore(engine): Translate fractional time grains—requires @superset-ui bump (#17078)
* chore(engine): Translate fractional time grains

* Bump @superset-ui

Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-10-12 21:40:48 -07:00
Ville Brofeldt
3dee22adfd fix(examples): incorrect covid row component id (#16953) 2021-10-04 12:45:31 +03:00
John Bodley
fb4650a6eb chore(pylint): Remove top-level disable (#16589)
* chore(pylint): Remove top-level disable

* Update examples.py

* Update command.py

Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-09-15 09:30:23 -07:00
John Bodley
1669947bcd chore(pylint): Reenable too-many-lines check (#16287)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-09-13 13:22:19 -07:00
John Bodley
7e4c940314 chore(pylint): Enable useless-suppression check (#16388)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-08-24 03:58:41 +12:00
Ville Brofeldt
86f4e691d4 chore(viz): bump deckgl plugin to 0.4.11 (#16353) 2021-08-19 19:19:48 +03:00
AAfghahi
4119bb9c1e fix: reverting Dataset names (#16243)
* reverting dataset name changes

* remove extra quotes

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
2021-08-17 12:16:15 -07:00
John Bodley
b5c7ed9f18 chore(pylint): Reenable too-many-locals check (#16268)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-08-17 04:23:40 +12:00
John Bodley
24b43beff9 chore(pylint): Bump Pylint to 2.9.6 (#16146)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2021-08-14 10:32:28 +12:00
AAfghahi
9d0dc561fc Revert "feat: Changing Dataset names (#16199)" (#16235)
This reverts commit adb3ebbba3.
2021-08-12 13:59:44 -07:00
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
AAfghahi
6c304b83a9 feat: Changing Dataset names (#16199)
* added google alert

* changing Dataset Names
2021-08-11 08:59:59 -07:00
Elizabeth Thompson
3aefa6925b update covid dashboard (#16183) 2021-08-10 20:47:13 -07:00
David Aaron Suddjian
e6292a89bb fix(explore): drag & drop column select component triggering onChange unnecessarily (#16073)
* fix(explore): avoid sync until after first render

* fix example
2021-08-05 15:38:28 -07:00
Yongjie Zhao
32d2aa0c40 feat: run extra query on QueryObject and add compare operator for post_processing (#15279)
* rebase master and resolve conflicts

* pylint to makefile

* fix crash when pivot operator

* fix comments

* add precision argument

* query test

* wip

* fix ut

* rename

* set time_offsets to cache key

wip

* refactor get_df_payload

wip

* extra query cache

* cache ut

* normalize df

* fix timeoffset

* fix ut

* make cache key logging sense

* resolve conflicts

* backend follow up iteration 1

wip

* rolling window type

* rebase master

* py lint and minor follow ups

* pylintrc
2021-07-28 22:34:39 +08:00
Kamil Gabryjelski
3f5237a3c1 feat(explore): new datasets have autocomplete filters enabled if UX_BETA is set (#15864)
* feat(explore): new datasets have autocomplete filters enabled if UX_BETA is set

* Lint fix

* Set autocomplete to True in example datasets

* Use "IN" as a default operator in dnd filters

* Default operator only if UX_BETA enabled
2021-07-27 17:40:10 +02:00
Beto Dealmeida
eeba326f8b chore: set UUID of examples DB (#15724) 2021-07-26 17:45:48 -07:00
Daniel Vaz Gaspar
0af5a3d600 fix: examples remove app context at the module level (#15546) 2021-07-06 13:56:29 +01:00
Ville Brofeldt
1269cc2f88 fix(examples): calendar chart metric should be metrics (#15173)
* fix(examples): calendar chart metric should be metrics

* fix presto test
2021-06-17 14:55:50 +03:00
Beto Dealmeida
09050aee62 fix: select country in examples chart (#14561) 2021-05-11 09:05:39 -07:00
Beto Dealmeida
c1cb3619ab feat: script to benchmark DB migrations (#13561) 2021-04-15 10:55:35 -07:00
Beto Dealmeida
11dd2493b3 feat: create table with long name (#13871) 2021-03-31 11:28:34 -07:00
Beto Dealmeida
98a26e7628 fix: Slack dashboard has stale charts (#13655) 2021-03-16 16:40:23 -07:00
Beto Dealmeida
6e303f3c12 feat: add more big data for testing (#13586) 2021-03-12 13:02:42 -08:00
Beto Dealmeida
1470e70c10 feat: add option to load big/wide tables (#13448)
* WIP

* feat: add option to load big/wide tables

* Fix lint

* Address comments
2021-03-11 17:17:29 -08:00
Mayur
8b38d63b7d changes added (#13431) 2021-03-03 13:52:54 +02:00