Commit Graph

10999 Commits

Author SHA1 Message Date
Adam Dobrawy 8b3e27d68b
refactor: migrate QueryAndSaveBtns to TypeScript and add stories (#18121)
* refactor: Migrate QueryAndSaveBtns to TS and stories

* fix: change typing notation in QueryAndSaveBtns
2022-02-15 17:04:48 +02:00
Geido 8027f5f0a6
fix: Only redirect to relative paths when authentication expires (#18714)
* Only redirect to relative paths

* Fix redirect test
2022-02-15 16:59:06 +02:00
John Bodley 342c55bc18
Update UPDATING.md (#18664) 2022-02-15 08:35:05 -05:00
maltoze 57c4d0f9a4
fix: passing url params in sqllab (#15246)
* fix: passing url params in sqllab

* avoid undefined serach and add test

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2022-02-15 13:18:04 +02:00
Corbin Robb 5bb406b296
fix(sqllab): fix query results sorting (#18666)
* add sorting for query results grid and add natural order sort

* modify tests for natural/original order state

* clean up setState

Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
2022-02-14 13:42:04 -08:00
Michael S. Molina 48a80950de
feat: Improve state key generation for dashboards and charts (#18576)
* feat: Improve state key generation for dashboards and charts
2022-02-14 17:09:06 -03:00
Lyndsi Kay Williams 801091be03
Fixed dancing tooltip in databaselist action buttons (#18686) 2022-02-14 10:53:52 -08:00
Lily Kuang e6ea197e9f
feat(embedded): aud claim and type for guest token (#18651)
* add aud claim and type for guest token

* update test

* lint

* make jwt audience configurable

* lint

* Apply suggestions from code review

Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com>

* verify aud

* add tests for aud and type claim

Co-authored-by: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com>
2022-02-14 10:43:35 -08:00
Evan Rusackas 4001165f55
chore: updating link to newer viz plugin blog post (#18707)
* chore: updating link to newer viz plugin blog post

* adding official docs link as well.

* another teensy text tweak
2022-02-14 10:12:52 -07:00
Kamil Gabryjelski 167e18e806
feat(explore): Implement chart empty states (#18678)
* feat(explore): Implement chart empty states

* Fix test

* Remove unused import

* Fix tests
2022-02-14 16:14:20 +01:00
Kamil Gabryjelski c1205b5279
feat(explore): Implement metrics and columns popovers empty states (#18681)
* feat(explore): Implement empty states for column and metrics popovers

* Fix test

* Change copy
2022-02-14 15:26:56 +01:00
Kamil Gabryjelski f8b3ece27b
feat(dashboard): Implement empty states for dashboard (#18712)
* feat(dashboard): Implement empty states for dashboard

* Add empty state to native filters

* Add missing license

* Remove redundant string types from EmptyState
2022-02-14 15:24:02 +01:00
Kamil Gabryjelski 42d97fb078
feat(explore): Implement data table empty states (#18679)
* feat(explore): Implement explore data table empty states

* Make empty state titles easier to translate
2022-02-14 13:06:31 +01:00
Yongjie Zhao 8d6aff3e5d
refactor: decouple pandas postprocessing operator (#18710) 2022-02-14 16:44:26 +08:00
Yongjie Zhao ea12024d25
chore: remove config of temporary_superset_ui (#18708) 2022-02-14 16:12:43 +08:00
Ville Brofeldt 168899b9af
docs: add docs for viz plugin development (#18709) 2022-02-14 10:03:26 +02:00
Evan Rusackas 324a15d424
chore: removing temporary_superset_ui folder (no longer needed) (#18706) 2022-02-13 23:05:54 -07:00
David Aaron Suddjian 225015fd5a
feat: Introduce a library for embedded iframe <-> host communication (#18652)
* improved logging

* switchboard, and window size

* lint

* tsconfig

* fix path

* fix release script

* tests, debug mode, and error handling

* moar debug mode

* package lock

* formatting

* comment

* wording

* appease the coverage gods

* Async assertions must be awaited or returned
2022-02-11 20:29:23 -08:00
Beto Dealmeida 40ab26d4f1
fix: unambiguous trino driver (#18683) 2022-02-11 17:40:20 -08:00
anoojkinaginlsn 09141d2a8f
fix(build): update webpack jsx paths (#18685) 2022-02-11 14:28:00 -08:00
Grace Guo 35684c54b3
fix: revert handle null values in time-series table (#18684) 2022-02-11 13:29:24 -08:00
Kamil Gabryjelski a7d505db41
feat: Implement EmptyState components (#18676)
* feat: Implement EmptyState components

* Fix title in storybook

* Add licenses

* Add max widths
2022-02-11 17:43:09 +01:00
Jinghuayao e44163ef55
test(Native filter): add cypress test user can add time grain filter (#18669)
* add new test time grain filter
2022-02-11 08:12:24 -08:00
Adam Dobrawy 31d363716d
Add craig-rueda as owner of Helm Chart (#18621) 2022-02-11 16:48:19 +02:00
Hesoyam d409d68e7f
refactor: migrate DeleteComponentButton to TypeScript (#18136)
* refactor: migrate DeleteComponentButton to TypeScript

* chore: fix typings

* chore: onDelete default value

* chore: removed props export

* chore: removed onDelete default value

* refactor: functional component
2022-02-11 16:12:19 +02:00
Meitong Qu 9f678e55b9
chore: migrate QueryTable component from jsx to tsx (#17944)
* chore: fix misspelling of button

* changed QuerySearch/index.jsx to index.tsx

* updated Query type at src/SqlLab/types.ts/Query and extended it into QueryTable

* updated defaultQueryLimit to be optional at ResultSetProps of superset-frontend/src/SqlLab/components/ResultSet/index.tsx

* moved statusAttributes into useMemo hook so that it will not make the dependencies of useMemo Hook change on every render and statusAttributes is only used within useMomo hook

* reset package-lock.json and package.json at frontend

* Acquired redux rootestate type for SqlLab, to be used at useSelector(state)

* updated query to be Query type and added a comment for q.status on line 178

* updated queryTable for typescript conversion

* updated actions type on QueryHistory and QuerySearch

* updated type for actions in SouthPane

* created type for SqlLab redux

Co-authored-by: David Woolner <davidwoolner@gmail.com>
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
2022-02-11 06:54:42 -06:00
Holger Bruch 97d918b692
fix(deck.gl): update view state on property changes (#17720) (#17826)
* Update viewstate on property changes

* Compare props via isEqual
2022-02-11 13:19:42 +02:00
Adam Dobrawy 7c69a1bc60
chore: improve React import reference consistency (#18608) 2022-02-10 21:03:16 -08:00
Hugh A. Miles II 78e20e21ab
feat: add prop to `setDBEngine` in DatabaseModal (#18653)
* saving this now

* remove for testing

* added test

* remove this

* remove set

* remove log

* Update index.test.jsx
2022-02-10 16:12:52 -08:00
wiktor2200 33d1c96764
feat(Helm): Redis with password supported in helm charts and redis chart version updated (#18642)
* fix import_datasources documentation

* Redis with password supported in helm chart

* fix conditionals format and redisURL
2022-02-10 09:45:30 -08:00
Andrii Vakarev 4db70b5c18
feat(helm): allow to customize init image (#18649)
* feat(helm): allow to customize init image

* chore(helm): bump chart version to 0.5.8
2022-02-10 09:43:58 -08:00
Jinghuayao 7670f3a208
test(native filter): add test for time range filter (#18647)
* add native filter test for time range filter
2022-02-10 08:08:24 -08:00
Geido 9ca55a7c83
chore: Update Docusaurus links (#18581)
* Fix links

* Fix internal link refs

* Add contribution page redirect
2022-02-10 17:55:58 +02:00
Geido f565230d8d
fix(Explore): Force different color for same metrics in Mixed Time-Series (#18603)
* Force different color for same metrics

* Conform to chart labels suffix

* Simplify
2022-02-10 16:21:47 +02:00
Adam Dobrawy bd0b9f25e4
refactor: migrate SliderControl to TypeScript & added story (#18120)
* refactor: migrate SliderControl to TypeScript & added story

* fix: Set default onChange in SliderControl
2022-02-10 14:21:48 +01:00
Stephen Liu 82129753b0
fix: dataset modal doesn't work in dev mode (#18658)
* fix: dataset modal in dev mode

* remove cache

* add comment
2022-02-10 15:17:16 +02:00
Ville Brofeldt 12cddb7ade
chore(docs): add note about quote handling in filters (#18657) 2022-02-10 12:36:04 +02:00
Sujith Kumar S b8aef10098
fix(mssql): support cte in virtual tables (#18567)
* Fix for handling regular CTE queries with MSSQL,#8074

* Moved the get_cte_query function from mssql.py to base.py for using irrespetcive of dbengine

* Fix for handling regular CTE queries with MSSQL,#8074

* Moved the get_cte_query function from mssql.py to base.py for using irrespetcive of dbengine

* Unit test added for the db engine CTE SQL parsing.

Unit test added for the db engine CTE SQL parsing.  Removed additional spaces from the CTE parsing SQL generation.

* implement in sqla model

* lint + cleanup

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2022-02-10 10:28:05 +02:00
Emmanuel Bavoux 00eb6b1f57
feat: editable title xl certified badge (#18626)
* Add size to EditableTitle certified badge

* Lint EditableTitle file

Co-authored-by: Emmanuel Bavoux <emmanuel.bavoux@free2move.com>
2022-02-09 17:09:20 -08:00
Michael S. Molina f03b4dbedb
feat: Improves key expiration handling in Explore (#18624)
* feat: Improves key expiration handling in Explore

* Sets use_slice_data equals true

* Shows toast when recovering
2022-02-09 13:20:21 -03:00
simcha90 bcad1acec2
feat: Dynamic dashboard component (#17208)
* fix:fix get permission function

* feat: dynamic loading of dashboard components

* fix: revert image

* fix: fix py

* fix: fix py

* fix: pass state to dynamic component

* lint: add typing

* lint: fix lint

* lint: fix lint

* refactor: re-run pipeline

* fix: fix CR notes

* fix: fix CR notes

* move types and interfaces to core

* reorder exports

* rename Scope and Target

Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
2022-02-09 17:44:40 +02:00
Victor Arbues 5ee070c402
feat: datasource access to allow more granular access to tables on SQL Lab (#18064) 2022-02-09 22:05:25 +08:00
Ville Brofeldt fdbcbb5c84
fix(csv-export): pivot v2 with verbose names (#18633)
* fix(csv-export): pivot v2 with verbose names

* refine logic + add test

* add missing verbose_map
2022-02-09 14:01:57 +02:00
Kamil Gabryjelski 830f2e71d3
feat(explore): Allow using time formatter on temporal columns in data table (#18569)
* feat(explore): Allow using time formatter on temporal columns in data table

* Fix data table loading

* Return colnames and coltypes from results request

* Fix types

* Fix tests

* Fix copy button

* Fix df is none

* Fix test

* Address comments

* Move useTimeFormattedColumns out of useTableColumns

* Make reducer more readable
2022-02-09 10:29:11 +01:00
Hoàng Minh Quân 28e729b835
fix(histogram): display correct percentile value instead of formula (#18084)
Co-authored-by: quanhm <quanhm@vng.com.vn>
2022-02-08 20:30:20 -08:00
Lily Kuang e86f6bbabc
fix: check embedded feature flag in request loader (#18628)
* check embedded feature flag in request loader

* lint

* type annotation

Co-authored-by: David Aaron Suddjian <aasuddjian@gmail.com>
2022-02-08 20:14:11 -08:00
Christopher C Fleming 51f716f573
refactor(ExploreCtasResultsButton): convert to functional component (#17939)
* chore: fix misspelling of button

* Feat: Update ExploreCtasResultsButton to functional component

* Fix pull request

* Fix index.tsx

* Fix prettier issues and actions

* Streamline the onClick so it calls visualize directly

* Update MSP and MDP to arrow functions

* Test destructured props

* Fix props destructuring error

* Simplify with optional chaining on line 94 and clean up buildVizOptions

Co-authored-by: David Woolner <davidwoolner@gmail.com>
Co-authored-by: AAfghahi <48933336+AAfghahi@users.noreply.github.com>
2022-02-08 13:23:45 -08:00
Hugh A. Miles II 7194a01040
fix: user UUIDs on export for Native Filter Configuration (#18562)
* saving work for import

* update

* move logic to update ref

* remove export updates

* remove unneeded code

* cleanup

* Update superset/dashboards/commands/importers/v1/utils.py

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

* Update tests/unit_tests/dashboards/commands/importers/v1/utils_test.py

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

Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
2022-02-08 13:10:40 -08:00
Adam Dobrawy 11d71d69fe
fix(helm): Fix support for ingress.ingressClassName (#18619) 2022-02-08 12:52:07 -08:00
Michael S. Molina fdf57cc22a
chore: Rename and reposition native filter modal fields (#18558)
* chore: Rename and reposition native filter modal fields

* Fixes collapse initial state

* Changes the button to sentence case
2022-02-08 16:36:40 -03:00