Commit Graph

179 Commits

Author SHA1 Message Date
Beto Dealmeida
e453059413 fix: prevent guest user from modifying metrics (#26749)
(cherry picked from commit fade4806ce)
2024-02-01 11:33:07 -05:00
mapledan
d5901140a7 fix: the temporal x-axis results in a none time_range. (#25429)
Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
(cherry picked from commit ae619b169c)
2023-11-06 09:40:48 -03:00
John Bodley
c216b3efdf fix: Revert "fix: Apply normalization to all dttm columns (#25147)" (#25801) 2023-10-31 11:47:45 -03:00
Kamil Gabryjelski
dd769eb7a0 fix: Apply normalization to all dttm columns (#25147)
(cherry picked from commit 58fcd292a9)
2023-10-09 11:45:56 -03:00
Zef Lin
8ca49d4e6f fix(chart): Supporting custom SQL as temporal x-axis column with filter (#25126)
Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
2023-09-25 09:51:41 -03:00
EugeneTorap
161e05445c fix: Python3.11 (str, Enum) issue (#24803) 2023-08-01 10:54:20 -03:00
John Bodley
4390968dd7 chore: Remove obsolete legacy visualizations (#24694)
(cherry picked from commit 1b5a6790f0)
2023-07-19 10:50:30 -03:00
Rob Moore
d5f88c18f6 fix(charts): Fix chart load task error handling (#24447) 2023-06-21 15:21:14 +03:00
John Bodley
3e76736874 chore(dao): Organize DAOs according to SIP-92 (#24331)
Co-authored-by: JUST.in DO IT <justin.park@airbnb.com>
2023-06-18 18:32:32 -07:00
John Bodley
9adb023880 chore(druid): Remove legacy Druid NoSQL logic (#23997) 2023-06-09 15:33:23 -03:00
Michael S. Molina
e5b7f7c9b5 fix: Time shifts with different granularity for ECharts (#24176) 2023-06-08 16:03:37 -03:00
John Bodley
a4d5d7c6b9 chore(pre-commit): Add pyupgrade and pycln hooks (#24197) 2023-06-01 12:01:10 -07:00
John Bodley
d583ca9ef5 chore: Embrace the walrus operator (#24127) 2023-05-19 00:37:13 -07:00
Ville Brofeldt
306fb22021 chore(chart-data): add post processing error message to response (#23734) 2023-04-19 18:49:33 +03:00
Ville Brofeldt
500d90058f feat: add ability to disable cache (#23439) 2023-03-31 11:41:57 +03:00
Elizabeth Thompson
b021f6e05d feat: add new cache_query_by_user key (#23415)
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2023-03-20 12:17:20 -07:00
Hugh A. Miles II
b820eb8235 chore: Update pre-commit packages (#23173) 2023-03-13 17:05:13 -06:00
Kamil Gabryjelski
42980a69a7 fix(dashboard): Charts crashing when cross filter on adhoc column is applied (#23238)
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2023-03-04 07:57:35 +01:00
Craig Rueda
006f3dd88c chore(cache): Tuning logging in cache manager (#23266) 2023-03-03 10:59:16 -08:00
Josh Soref
dec6ac49f6 chore(backend): Spelling (#19677)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Evan Rusackas <evan@preset.io>
2023-02-17 10:48:24 -07:00
Changhoon Oh
21dd1601bf fix: dict bug on QueryContextFactory (#23093)
Co-authored-by: ok9897 <ok9897@krafton.com>
2023-02-16 16:04:39 +02:00
Michael S. Molina
464ddee4b4 fix: Time Column on Generic X-axis (#23021) 2023-02-10 13:33:07 -05:00
Igor Șincariov
6cf434e5c1 feat: Add excel export (#22006)
Co-authored-by: Igor Șincariov <igorsinc@pm.me>
Co-authored-by: EugeneTorap <evgenykrutpro@gmail.com>
2023-01-27 11:23:10 -07:00
Diego Medina
bed10a0e2b chore: deprecate /superset/slice_json/<int:slice_id> and /superset/annotation_json/<int:layer_id> (#22496) 2023-01-27 11:50:19 -05:00
Yongjie Zhao
a9b229dd1d feat: support mulitple temporal filters in AdhocFilter and move the Time Section away (#21767) 2022-11-02 08:21:17 +08:00
Maxime Beauchemin
72598a5b2a fix: rename datasource->dataset in error message (#21959) 2022-11-01 21:53:06 +08:00
Hugh A. Miles II
51c54b3c9b fix: add get_column function for Query obj (#21691) 2022-10-05 18:25:44 -04:00
John Bodley
31895f412e chore(tags): Refactor logic to leverage Flask-SQLAlchemy extension (#21459) 2022-10-03 00:07:52 -07:00
Mayur
5ea9249059 fix: respect chart cache timeout setting (#21637) 2022-09-29 08:26:19 -06:00
cccs-Dustin
2e564897f8 feat: Add dataset tagging to the back-end (#20892)
Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2022-09-23 11:01:17 +03:00
Yongjie Zhao
2dfcba04b0 fix: Time Offset in SQLite and refine logic in Date Type conversion (#21378) 2022-09-16 12:02:22 +08:00
Ville Brofeldt
05b97fff4d fix(cache): respect default cache timeout on v1 chart data requests (#21441) 2022-09-13 15:56:04 +02:00
Yongjie Zhao
11bf7b9125 feat: generate label map on the backend (#21124) 2022-08-22 21:00:02 +08:00
Bogdan
17b58037f8 perf: Implement model specific lookups by id to improve performance (#20974)
* Implement model specific lookups by id to improve performance

* Address comments e.g. better variable names and test cleanup

* commit after cleanup

* even better name and test cleanup via rollback

Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
2022-08-09 09:59:31 -07:00
Yongjie Zhao
802b69f97b feat: supports mulitple filters in samples endpoint (#21008) 2022-08-08 22:42:14 +08:00
Hugh A. Miles II
be4fbaf951 fix: for series limit comparison on explore with chart = Query (#20989)
* oops

* 1 more
2022-08-04 21:37:45 -04:00
Hugh A. Miles II
6e5036d87f fix: add timegrains to data payload (#20938)
* add timegrains to data payload

* fix

* opps

* save

* integrate type casting for engiines

* add perm object

* change how wwe raise_for_access

* fix orderby on column types

* linting
2022-08-04 13:26:49 -04:00
Hugh A. Miles II
e5e8867394 feat: Visualize SqlLab.Query model data in Explore 📈 (#20281) 2022-07-15 19:34:02 -04:00
AAfghahi
0ce0c6e1eb chore: removing Druid from front- and back- end (#20338)
* first pass at removing native Druid nosql

* removing having_druid

* addressing comments, linting

* fixed all tests

* addressing comments

* redirected to ui-core TimeGranularity type

* query form metric linting

* fixed broken chart type

* implementing feedback
2022-07-08 17:57:03 +02:00
John Bodley
f0ca158989 fix: Refactor ownership checks and ensure consistency (#20499)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-07-07 11:04:27 -07:00
Yongjie Zhao
414cc99ca2 fix: datetime.data in series (#20618) 2022-07-07 09:33:44 +08:00
Yongjie Zhao
8bbbd6f03f fix: should raise exception when apply a categorical axis (#20451) 2022-06-21 20:37:51 +08: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
Samira El Aabidi
68af5980ea feat(chart): Enable caching per user when user impersonation is enabled (#20114)
* add username to extra cache keys when impersonation is enabled.

* don't put effective_user in extra_cache_key

* get_impersonation_key method in engine_spec class  to construct an impersonation key

* pass datasource when creating query objects

* adding an impersonation key when construction cache key

* add feature flag to control caching per user

* revert changes

* make precommit and pylint happy

* pass a User instance

* remove unnecessary import
2022-06-20 18:14:08 -07:00
Yongjie Zhao
1530c34792 fix: failed samples should throw exception (#20228) 2022-06-01 18:24:01 +08:00
Beto Dealmeida
8865656e06 chore: fix typo (#19699) 2022-04-13 17:08:39 -07:00
Ville Brofeldt
d684ad073d fix: request samples with default row limit (#19456)
* fix: request samples with default row limit

* lodashLint

* fix cypress test
2022-04-01 11:32:36 +03:00
David Aaron Suddjian
8e29ec5a66 feat: Embedded dashboard configuration (#19364)
* embedded dashboard model

* embedded dashboard endpoints

* DRY up using the with_dashboard decorator elsewhere

* wip

* check feature flags and permissions

* wip

* sdk

* urls

* dao option for id column

* got it working

* Update superset/embedded/view.py

* use the curator check

* put back old endpoint, for now

* allow access by either embedded.uuid or dashboard.id

* keep the old endpoint around, for the time being

* openapi

* lint

* lint

* lint

* test stuff

* lint, test

* typo

* Update superset-frontend/src/embedded/index.tsx

* Update superset-frontend/src/embedded/index.tsx

* fix tests

* bump sdk
2022-03-30 12:34:05 -07:00
Ville Brofeldt
a619cb4ea9 chore: upgrade black (#19410) 2022-03-29 20:03:09 +03:00
Yongjie Zhao
375c03e084 feat(advanced analysis): support MultiIndex column in post processing stage (#19116) 2022-03-23 13:46:28 +08:00