Commit Graph

4810 Commits

Author SHA1 Message Date
Yongjie Zhao
fd129873ce
feat: multiple results pane on explore and dashboard (#20277) 2022-06-09 09:11:34 +08:00
smileydev
1e5cacda8f
fix(explore): make to fix the issue of explore error broken when see more/less (#20282) 2022-06-08 17:00:08 -06:00
Diego Medina
5bfc95e79e
feat: When editing the label/title in the Metrics popover, hitting Enter should save what you've typed (#19898)
* feature: When editing the label/title in the Metrics popover, hitting Enter should save what you've typed

* Apply emotion templating to input/input labels
2022-06-08 16:52:53 -06:00
Stephen Liu
eab0009101
feat(plugin-chart-echarts): [feature-parity] support extra control for the area chart V2 (#16493)
* feat(echarts): [feature-parity] support extra control

* add extra control for plugin

* refactor: extract ExtraControl

* fix: lint

* fix some problems
2022-06-09 00:59:10 +08:00
Hugh A. Miles II
b6c11f2b97
fix: Alpha are unable to perform a second modification to a Dataset when in Explore (#20296)
* handle payload coming back from save

* address concerns
2022-06-08 16:24:36 +02:00
Reese
a57ed76e72
Fix faulty datetime parser regex (#20290) 2022-06-08 22:02:58 +08:00
Stephen Liu
9f02ff656d
fix(plugin-chart-echarts): [feature-parity] apply button of annotation layer doesn't work as expected (#19761)
* fix(plugin-chart-echarts): [feature-parity] apply button of annotation layer does't work

* fix: lint

* fix: test
2022-06-08 17:06:24 +08:00
Yongjie Zhao
8e46ae5c6a
chore: superset-ui/core code coverage (#20304) 2022-06-08 16:54:30 +08:00
Lyndsi Kay Williams
ba0c37d3df
feat(explore): Frontend implementation of dataset creation from infobox (#19855)
* Frontend implementation of create dataset from infobox

* Fixed sl_dataset type

* Fix test

* Fixed sl_dataset type (forgot to save)

* RTL testing

* Adjusted styling/text on infobox and save dataset modal

* Appease lint

* Make infobox invisible and fix tests

* Remove unnecessary placeholder

* Move types to sql lab

* Moved logic into save dataset modal

* Change DatasourceMeta type to Dataset

* Add ExploreDatasource union type to save dataset modal

* Get user info from redux inside save dataset modal

* Addressed comments

* Adjusting to new query type

* Fixed save dataset in explore and union type

* Added testing

* Defined d for queries

* Remove dataset from SaveDatasetModal

* Clarify useSelector parameter

* Fix dndControls union type

* Fix shared-controls union type

* Fix controlPanel union type

* Move ExploreRootState to explore type file

* Remove unnecessary testing playground

* Move datasource type check in DatasourcePanel to a function

* Make all sqllab Query imports reference @superset-ui/core Query type

* Deconstruct query props in ResultSet

* Fix union type in /legacy-plugin-chart-heatmap/src/controlPanel

* Change SaveDatasetModal tests to RTL

* Cleaned datasourceTypeCheck

* Fix infobox styling

* Fix SaveDatasetModal test

* Fix query fixture in sqllab and Query type in SaveDatasetModal test

* Fix Query type and make test query fixture

* Added columns to Query type, separated results property, created QueryResponse union type, and fixed all types affected

* Fixed a couple missed broken types

* Added ExploreDatasource to SqlLab type file

* Removed unneeded Query import from DatasourcePanel

* Address PR comments

* Fix columnChoices

* Fix all incorrect column property checks

* Fix logic on dndGroupByControl

* Dry up savedMetrics type check

* Fixed TIME_COLUMN_OPTION

* Dried savedMetrics type check even further

* Change savedMetricsTypeCheck to defineSavedMetrics

* Change datasourceTypeCheck to isValidDatasourceType

* Fix Query path in groupByControl

* dnd_granularity_sqla now sorts Query types with is_dttm at the top

* Fixed/cleaned query sort

* Add sortedQueryColumns and proper optional chaining to granularity_sqla

* Move testQuery to core-ui, add test coverage for Queries in columnChoices

* Moved DEFAULT_METRICS to core-ui and wrote a test for defineSavedMetrics

* Add license and clean dataset test object

* Change DatasourceType.Dataset to dataset
2022-06-07 15:03:45 -05:00
Yongjie Zhao
27c3ef1ed5
chore: remove unused codes for samples (#20272) 2022-06-07 21:54:15 +08:00
Phillip Kelley-Dotson
6f0d53eed8
feat: add modfied col and timezone info to schedule col (#20165)
* feat: add modfied and timezone to to schedule col

* test if test works

* udpate test

* fix test
2022-06-06 09:41:06 -07:00
Stephen Liu
5425504231
fix(codecov): improve core code coverage (#20274) 2022-06-06 17:21:23 +08:00
Yongjie Zhao
41f33a38bc
feat: showing results pane in dashboard (#20144) 2022-06-05 23:18:42 +08:00
Yongjie Zhao
7faf874c1b
feat: derived metrics use different line style (#20242) 2022-06-05 21:17:31 +08:00
Yongjie Zhao
dd4b581fb5
feat: standardized form_data (#20010) 2022-06-05 21:05:01 +08:00
jiAng
5c02ab7aaf
fix(cosmetic): Fix Datasource Modal Out Of Box (#20237) 2022-06-03 07:58:32 -06:00
Stephen Liu
80b5578680
feat(superset-ui-core): add feature flag for the analogous colors (#19987)
* feat(superset-ui-core): add feature flag for the color analogous generator

* fix: test
2022-06-03 21:32:32 +08:00
Stephen Liu
766f737728
feat(world-map): support color by metric or country column (#19881)
* feat(world-map): support color by metric or country column

* fix lint

* Update superset-frontend/packages/superset-ui-chart-controls/src/shared-controls/components/RadioButtonControl.tsx

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

* Update superset-frontend/plugins/legacy-plugin-chart-world-map/src/controlPanel.ts

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

* Update superset-frontend/plugins/legacy-plugin-chart-world-map/src/controlPanel.ts

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

* fix lint

Co-authored-by: Evan Rusackas <evan@preset.io>
2022-06-03 21:31:22 +08:00
Diego Medina
0e38c686c6
fix: Support the Clipboard API in modern browsers (#20058)
* fix: Support the Clipboard API in modern browsers

* fix tests

* PR comment

* Improvements
2022-06-03 19:34:00 +08:00
Diego Medina
92057858c2
fix(sql lab): View result button is not showing consistently (#20164) 2022-06-02 22:53:59 -06:00
Yongjie Zhao
a020f75a97
refactor: decouple DataTableControl (#20226) 2022-06-03 09:52:58 +08: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
Cedric Gampert
a813528958
fix(charts list): do not trigger ListViewError exception for anonymous users #18210 (#20171) 2022-06-03 00:02:45 +08:00
Ilyas
d4f320f2a0
fix: exporting CSV can't apply pagination #17861 (#20178) 2022-06-02 12:42:51 +08:00
Eric Briscoe
e5f26313a5
Fixes issue where results panel height was incorrect [sc-49045] (#20204)
This commit fixes a dynamic height assignment issue where the SQL Editor results panel would be clipped offscreen and user could not see bottom of results, the height got assigned to zero after toggling online, then offline, and height would be calculated wrong if the result set rows returned message above the results table was long enough for a line wrap.
2022-06-02 10:01:14 +08:00
Yongjie Zhao
3d5ae6226b
fix: dashbaord unable to refresh (#20220) 2022-06-01 20:37:19 +08:00
Yongjie Zhao
1530c34792
fix: failed samples should throw exception (#20228) 2022-06-01 18:24:01 +08:00
Kamil Gabryjelski
3e3fbccdcb
feat(explore): Fill dashboard name when adding new chart from dashboard view (#20129)
* feat(explore): Fill dashboard name when adding new chart from dashboard view

* Update import paths

* Update test

* Fix test
2022-05-31 18:11:02 +02:00
Stephen Liu
9646591d24
fix(legacy-plugin-chart-sunburst): linear color scheme not work when secondary metric is provided (#20221) 2022-05-31 23:37:24 +08:00
Michael S. Molina
834dcef993
chore: Moves date utils to utils folder (#20192) 2022-05-31 12:21:58 -03:00
Stephen Liu
ad72ea53a1
fix(legacy-plugin-chart-sunburst): chart broken when secondary metric is remove (#20223) 2022-05-31 21:18:49 +08:00
Kamil Gabryjelski
0ee1f492a7
feat(explore): Add empty state to annotations (#20160)
* feat(explore): Add empty state to annotations

* Set line height for small empty state description

* Simplify code
2022-05-31 14:30:06 +02:00
Evan Rusackas
c8fe518a7b
fix(cosmetic): Limiting modal height (#20147)
* more changes that didn't make it into the last commit somehow.

* Allow modals to be short, but reach a max height and scroll

* now with template literals
2022-05-27 10:51:03 -06:00
Diego Medina
653cf773f7
fix(sql lab): SQL Lab Compile Query Delay (#20206) 2022-05-27 09:42:01 +03:00
Yongjie Zhao
e140b7aa87
fix: unable to set destroyOnClose on ModalTrigger (#20201) 2022-05-26 22:27:12 +08:00
Yongjie Zhao
e9007e3c2c
refactor: decouple DataTablesPane (#20109) 2022-05-26 18:59:54 +08:00
smileydev
95b28fc134
fix(db): make to allow to show/hide the password when only creating (#20186) 2022-05-26 11:18:17 +08:00
Michael S. Molina
73443cea2f
refactor: Removes embedded/index.tsx warnings (#20193) 2022-05-25 17:42:54 -03:00
Geido
3a4176a8d5
chore: Implement global header in Dashboard (#20146)
* Add gloal header

* Reimplement report dropdown

* Update unit tests

* Clean up

* Clean up

* Remove unused import

* Update Cypress

* Update Cypress save dashboard test

* Fix spacing
2022-05-25 12:56:19 +02:00
Diego Medina
365acee663
fix: avoid while cycle in computeMaxFontSize for big Number run forever when css rule applied (#20173) 2022-05-25 18:04:04 +08:00
stevetracvc
7e9b85f76c
feat: add drag and drop column rearrangement for table viz (#19381) 2022-05-24 19:10:57 -07:00
Kamil Gabryjelski
ce547f4098
chore: Disable flaky assert in reports cypress test (#20174)
* chore: Disable flaky assert in reports cypress test

* Disable flaky assert in alerts cypress test
2022-05-24 14:04:39 -07:00
Stephen Liu
ce01ce9e2f
fix(css): transparent linear gradient not working in safari (#20086)
* fix(css): transparent linear gradient not working in safari

* use emotion-rgba instead
2022-05-24 13:50:01 +08:00
Hugh A. Miles II
f8ea7788a9
feat: Add Certified filter to Datasets (#20136) 2022-05-23 17:58:15 -04:00
AAfghahi
b96e20a2f4
change button name (#20163) 2022-05-23 15:44:10 -04:00
Diego Medina
22b7496d2e
fix: string aggregation is incorrect in PivotTableV2 (#19102)
* fix: string aggregation is incorrect in PivotTableV2

* cleanup

* fix

* updates
2022-05-23 12:39:18 -06:00
Kamil Gabryjelski
b746e6f844
feat(dashboard): Chart title click redirects to Explore (#20111) 2022-05-23 13:18:08 +02:00
Yongjie Zhao
d7e3ac306f
chore: filter undefined operators (#20157) 2022-05-23 18:24:32 +08:00
smileydev
56e96950c1
fix(chart & heatmap): make to fix that y label is rendering out of bounds (#20011) 2022-05-20 12:54:42 -06:00
Ville Brofeldt
e766f8cb57
fix(explore): handle null control sections (#20142)
* fix(explore): handle null control sections

* fix type and add null to test fixture
2022-05-20 19:07:53 +03:00