Commit Graph

110 Commits

Author SHA1 Message Date
Beto Dealmeida
383b4d949f fix: column values with NaN (#26946)
(cherry picked from commit d8a9847503)
2024-02-12 15:58:39 -05:00
Beto Dealmeida
fb64100043 feat(sqlparse): improve table parsing (#26476) 2024-02-01 11:09:44 -05:00
Vitor Avila
a2c78c1495 fix(BigQuery): Support special characters in column/metric names used in ORDER BY (#26461)
(cherry picked from commit 4592dd13fa)
2024-01-25 09:31:06 -05:00
Vitor Avila
8eb6bbba91 fix(chart-filter): Avoid column denormalization if not enabled (#26199)
(cherry picked from commit 05d7060d83)
2023-12-08 10:32:02 -03:00
Beto Dealmeida
3edbb9fdbd fix: alias column when fetching values (#26120)
(cherry picked from commit 7223633da6)
2023-12-04 14:03:20 -03:00
Jack Fragassi
ee1ba7e172 fix: Make Select component fire onChange listener when a selection is pasted in (#25993)
(cherry picked from commit 5fccf67cdc)
2023-11-16 18:30:35 -03:00
Hugh A. Miles II
1c287dfc74 fix: naming denomalized to denormalized in helpers.py (#25973)
(cherry picked from commit 5def416f63)
2023-11-16 17:26:51 -03:00
Hugh A. Miles II
e07eed10a2 fix: always denorm column value before querying values (#25919) 2023-11-16 17:26:15 -03:00
KSPT-taylorjohn
76d7bf9011 fix: Chart series limit doesn't work for some databases (#25150)
(cherry picked from commit bbfaeb074e)
2023-09-01 10:21:17 -03:00
Jack Fragassi
a9b8c8e3ec fix: Allow chart import to update the dataset an existing chart points to (#24821)
(cherry picked from commit 77889b29fb)
2023-07-31 09:23:03 -03:00
John Bodley
b9824d687e fix: Native filter dynamic numeric search (#24506) 2023-06-23 14:00:31 -07:00
John Bodley
652bf6454e fix: Native filter dynamic numeric search (#24418) 2023-06-21 09:45:15 -07:00
John Bodley
a4d5d7c6b9 chore(pre-commit): Add pyupgrade and pycln hooks (#24197) 2023-06-01 12:01:10 -07:00
John Bodley
0496779434 chore: Update QUERY_LOGGER and SQL_QUERY_MUTATOR signatures (#24029) 2023-05-19 06:42:19 -07:00
John Bodley
d583ca9ef5 chore: Embrace the walrus operator (#24127) 2023-05-19 00:37:13 -07:00
John Bodley
2f0caf8a0d fix: Handle python_date_format in ExploreMixin (#24068) 2023-05-16 06:54:12 -07:00
Beto Dealmeida
2938c5dc03 fix: handle python_date_format in ExploreMixin (#24062) 2023-05-15 17:51:14 -04:00
Ville Brofeldt
f7dd52b8f5 feat: implement time grain in temporal filters (#24035) 2023-05-12 14:41:09 +03:00
Beto Dealmeida
7fe0ca12c0 chore: remove duplicates of validate_adhoc_subquery (#24023) 2023-05-11 17:00:06 -07:00
Hugh A. Miles II
976e33330f fix: presto CI failed test (#23666) 2023-04-12 15:27:53 -04:00
Hugh A. Miles II
d581d698b6 chore: Refactor ExploreMixin to power both Datasets (SqlaTable) and Query models (#22853) 2023-04-10 16:32:52 -04:00
Diego Medina
cdc7af11bf chore: Migrate /superset/user_slices and /superset/fave_slices to API v1 (#22964)
Co-authored-by: hughhhh <hughmil3s@gmail.com>
2023-04-03 13:29:02 -04: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
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
alexclavel-ocient
9dfaad772d fix: Make cte_alias a property of db engine spec (#22947) 2023-02-06 14:27:48 -07:00
John Bodley
92cdb8c282 chore: Add explicit bidirectional performant relationships for SQLA model (#22413) 2023-01-21 10:17:56 +13:00
Hugh A. Miles II
2de19f1d66 feat: Add logging for ssh tunneling test_connection attempts (#22625) 2023-01-12 21:49:35 +00:00
Ville Brofeldt
1014a327f5 fix(sqla): copy temporal range logic to helper (#22405)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-12-14 09:43:38 +02:00
Ville Brofeldt
940a17514f fix(generic-chart-axes): apply time filter on all target column types (#22238)
Co-authored-by: Ville Brofeldt <ville.brofeldt@apple.com>
2022-11-28 12:47:55 +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
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
Hugh A. Miles II
4d0c2ba6ef fix: Allow clickhouse dbs with timestamps to visualize queries (#21446) 2022-10-03 14:22:20 -04:00
Beto Dealmeida
34a79add04 feat: filter parameters from DB API (#21248) 2022-09-02 11:50:04 -07:00
Hugh A. Miles II
c61a507e14 fix: add back custom sql filtering with Query as source (#21190) 2022-08-26 19:12:21 -07:00
Cody Leff
0726840fb7 fix(explore): Prevent unnecessary series limit subquery (#21154)
* Prevent series limit when no series limit columns specified.

* Add timeseries check for legacy charts.

* Apply fix to helpers.py.

* Skip Cypress color consistency tests.
2022-08-26 11:16:13 -06:00
AAfghahi
252ceb7045 timestamp bug (#21130) 2022-08-18 18:20:25 -04:00
AAfghahi
e3508232ab fix: series limit solution for source is query (#20977)
* fix

* save

* integrate type casting for engiines

* fix orderby on column types

* fixes

Co-authored-by: Hugh A. Miles II <hughmil3s@gmail.com>
2022-08-04 15:52:38 -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
John Bodley
8d0d778d1a chore(mypy): enable warn_unused_ignores (#20884) 2022-07-29 00:47:53 -07:00
Jesse Yang
4d192e6e4d feat(report): capture dashboard reports in specific states (#20552) 2022-07-26 17:01:56 -07:00
Hugh A. Miles II
2c010974e8 fix: Timeseries visualization with Chart Source = Query (#20795)
* fix timmeseries

* update other references

* fix

* fix linting
2022-07-22 13:30:24 -04:00
Hugh A. Miles II
81bd4968d0 fix: set allow filter_select for Query objects in Explore (#20754)
* set allow filter select

* add small comment

* add better logic

* remove condition and reference it in backend
2022-07-20 09:08:02 -04:00
Hugh A. Miles II
e5e8867394 feat: Visualize SqlLab.Query model data in Explore 📈 (#20281) 2022-07-15 19:34:02 -04:00
John Bodley
3483446c28 refactor: Cleanup user get_id/get_user_id (#20492)
Co-authored-by: John Bodley <john.bodley@airbnb.com>
2022-06-24 17:57:04 -07:00
Jesse Yang
231716cb50 perf: refactor SIP-68 db migrations with INSERT SELECT FROM (#19421) 2022-04-19 18:58:18 -07:00
Daniel Vaz Gaspar
d6d2777ada feat: deprecate old API and create new API for dashes created by me (#19434)
* feat: deprecate old API and create new API for dashes created by me

* add tests

* fix previous test

* fix test and lint

* fix sqlite test

* fix lint

* fix lint

* lint

* fix tests

* fix tests

* use dashboards get list instead

* clean unnecessary marshmallow schema

* Update superset/views/core.py

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* lint

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
2022-04-08 09:05:22 +01:00
Jesse Yang
92cd0a18e6 chore: upgrade mypy (#19227) 2022-03-17 10:35:53 -07:00
Beto Dealmeida
00c99c91ec feat: new dataset/table/column models (#17543)
* feat: new models for SIP-68

* feat: new dataset models DB migration

* Add shadow write (WIP)

* Physical dataset shadow write (WIP)

* Virtual dataset shadow write (WIP)

* Update migration to populate models

* Cascade delete columns

* after_delete

* Update hook

* Add metric test

* Do not rename tables

* Small fixes

* Fix migration

* Fix tests

* Fix more tests

* Even more tests

* Addressing comments (WIP)

* Fix migration

* Rebase and update head

* Fix unit tests

* Add external management cols

* Small fixes
2022-02-24 11:02:01 -08:00
Beto Dealmeida
1c0b141e2d feat: allow assets to be managed externally (#18093)
* feat: allow assets to be managed externally

* Use server_default
2022-01-24 11:03:01 -08:00
Kamil Gabryjelski
124af4c566 chore(explore): Migrate BigNumber to v1 api [ID-28][ID-55] (#17587)
* chore(explore): Migrate BigNumber to v1 api

* Move to echarts

* Use Echarts trendline

* Fix imports

* Fix parsing dates as strings

* Add from_dttm and to_dttm to v1 chart response

* Fix post processing

* Fix timeRangeFixed

* Fix tests

* Remove from and to dttm from cache

* Cleanup date formatting

* Fix storybook

* Fix missing types

* Fix timestamp with timezone

* Add types to demo's tsconfig

* bug fix

* fix import

* Fix cypress tests

* add sort

* add resample to handle missing values properly

* Sync ChartDataResponseResult schema with ts interface

* Lint fix

* Add migration

* Fix migration

* Remove pass

* Re-raise the exception in migration

* Typo fix

* Update revision

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2021-12-15 10:15:14 +01:00