Commit Graph

51 Commits

Author SHA1 Message Date
Elizabeth Thompson
7b9ebbe735 feat(explore): Integrate dataset panel with Folders feature (#33104)
Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
2025-04-14 18:40:31 +02:00
Đỗ Trọng Hải
19e8a7049b feat(fe): upgrade superset-frontend to Typescript v5 (#31979)
Signed-off-by: hainenber <dotronghai96@gmail.com>
Co-authored-by: Michael S. Molina <70410625+michael-s-molina@users.noreply.github.com>
2025-01-29 08:40:33 -03:00
Michael S. Molina
93ba8e16c3 refactor: Creates the VizType enum (#31193) 2024-11-29 10:05:02 -03:00
Geido
90572be95a fix(Dashboard): Retain colors when color scheme not set (#30646) 2024-11-21 19:58:32 +02:00
Antonio Rivero
18c2376b50 feat(datasets): Allow swap dataset after deletion (#30364) 2024-09-25 18:12:45 +02:00
Josh Soref
d0c9cde0ba chore(frontend): Spelling (#25452)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Geido <60598000+geido@users.noreply.github.com>
Co-authored-by: Evan Rusackas <evan@preset.io>
2024-09-10 15:05:35 -06:00
JUST.in DO IT
3c971455e7 fix(explore): missing column autocomplete in custom SQL (#29672) 2024-07-26 11:33:37 -07:00
Michael S. Molina
8a2f7d378a refactor: Removes the deprecated GENERIC_CHART_AXES feature flag (#26372) 2024-01-31 09:45:57 -05:00
Evan Rusackas
1d4b8b6989 fix(dependencies): stopping (and preventing) full lodash library import... now using only method level imports. (#26710) 2024-01-23 12:39:37 -07:00
Kamil Gabryjelski
83ff4cd86a feat: Implement currencies formatter for saved metrics (#24517) 2023-06-28 20:51:40 +02:00
JUST.in DO IT
f5b1711815 fix(chart): chart updates are not retained (#23627) 2023-04-28 10:00:33 +12:00
Jack Fragassi
44557f5a23 chore(api v1): Deprecate datasource/save and datasource/get endpoints (#23678) 2023-04-18 17:51:24 -07:00
Kamil Gabryjelski
117360cd57 feat: Drill by open in Explore (#23575) 2023-04-05 11:20:45 +02:00
Lily Kuang
4452a65095 feat: drill by display chart (#23524) 2023-04-04 13:34:59 +02:00
Kamil Gabryjelski
6076457b90 fix(explore): Dashboard filters on adhoc cols not working in Explore (#23239) 2023-03-01 15:45:00 +01:00
Kamil Gabryjelski
5d550f449a fix(explore): Mark time range dashboard filter with warning icon (#22984) 2023-02-03 12:26:05 -05:00
Michael S. Molina
e9423c3c87 fix: Time range filter applied on a dashboard is not persisting to the chart explore (#22920) 2023-01-31 12:01:47 -05:00
Geido
9ed2326a20 feat: Move cross filters to Dashboard (#22785) 2023-01-25 18:01:06 +01: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
Kamil Gabryjelski
cddc361adc feat(explore): Don't discard controls with custom sql when changing datasource (#20934) 2022-10-19 15:29:38 +02:00
Yongjie Zhao
8f61e3c5d9 refactor: preparation for time section migration (#21766) 2022-10-12 08:38:30 +08:00
Cody Leff
070b865e32 chore(explore): Add tests for getControlValuesCompatibleWithDatasource (#21744) 2022-10-11 08:31:46 -03:00
Evan Rusackas
4245bc3f38 chore(style): Enforce optional chaining (#21614) 2022-10-03 09:17:20 -06:00
Cody Leff
954fc89871 fix(explore): Fix datasource switch for table chart (#21544) 2022-09-26 10:39:28 -07:00
Yongjie Zhao
eb4ba5b089 fix: should be able to remove selection from X-AXIS control (#21371) 2022-09-13 21:05:07 +08: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
Kamil Gabryjelski
55304b02cd fix(explore): Filters with custom SQL disappearing (#21114)
* fix(explore): Filters with custom SQL disappearing

* Fix adhoc filter for query b disappearing

* Improve test coverage
2022-08-17 22:15:41 +02:00
Eric Briscoe
1a8c28db3d Fixes issue where type query datasource had incorrect time controls when datasource type was 'query' (#20923) 2022-07-29 18:14:03 -04:00
Yongjie Zhao
cb9ae38361 fix: switch form_data between different datasource (#20867) 2022-07-26 22:13:17 +08:00
Kamil Gabryjelski
0945d4a2f4 feat: Pass dashboard context to explore through local storage (#20743)
* feat: Pass dashboard context to explore through local storage

* Remove console log

* Remove unused local storage keys

* Fix lint

* Fix link

* Fix UT

* fix lint

* fix prettier

* Fix bug

* Fix bug with some sample dashboards

* Roll back unnecessary change

* style fix

* Add comments

* Fix lint

* Address code review comments

* Fix
2022-07-25 16:44:43 +02: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
Yongjie Zhao
34e1336bca fix: controls validator glitch (#20623) 2022-07-07 17:21:14 +08:00
Yongjie Zhao
de524bc59f feat: apply standardized form data to tier 2 charts (#20530) 2022-06-29 16:27:31 +08:00
Yongjie Zhao
c348a095b9 refactor(standardized form data): refine interface and improve code smells (#20518) 2022-06-28 21:09:42 +08:00
Yongjie Zhao
bbbe102887 feat(standardized form data): keep all columns and metrics (#20377) 2022-06-24 21:46:25 +08:00
Yongjie Zhao
c79b0d62d0 refactor: create echarts query section (#20445) 2022-06-21 11:38:07 +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
dd4b581fb5 feat: standardized form_data (#20010) 2022-06-05 21:05:01 +08: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
Ville Brofeldt
d5c5e58583 feat(plugin-chart-echarts): add support for generic axis to mixed chart (#20097)
* feat(plugin-chart-echarts): add support for generic axis to mixed chart

* fix tests + add new tests

* address review comments

* simplify control panel

* fix types and tests
2022-05-19 13:51:52 +03:00
Ville Brofeldt
0b3d3dd4ca fix(generic-chart-axes): set x-axis if unset and ff is enabled (#20107)
* fix(generic-chart-axes): set x-axis if unset and ff is enabled

* simplify

* simplify

* continue cleanup

* yet more cleanup
2022-05-19 13:21:25 +03:00
Kamil Gabryjelski
6f4480a06c feat(explore): Replace overlay with alert banner when chart controls change (#19696)
* Rename explore alert

* Rename refreshOverlayVisible to chartIsStale

* Implement banners

* Add tests

* Add clickable text to empty state

* Fix viz type switching

* styling changes

* Fixes after rebasing

* Code review fixes

* Fix bug

* Fix redundant refreshing
2022-04-19 14:57:06 +02:00
Yongjie Zhao
761d5c4208 chore: cleanup as unknown conversion (#19587) 2022-04-08 17:32:29 +08:00
Kamil Gabryjelski
70969821de feat(explore): Keep or reset chart config after datasource change (#18215)
* feat(explore): Keep or reset chart config after datasource change

* Update copy

* Remove useDispatch

* fix test

* Fix bugs

* Remove ts ignore

* Scroll top when datasource changes

* Fix crashing when switching viz type
2022-02-02 21:28:35 +01:00
Michael S. Molina
647bbf1ea1 chore: Moves spec files to the src folder - iteration 10 (#17902)
* chore: Moves spec files to the src folder - iteration 10

* Fixes test

* Fixes lint problem

* Uses styledMount in test
2022-01-07 15:24:15 -03:00
Yongjie Zhao
9070b6b19c refactor(monorepo): stage 1 (#17427)
* skip geojson in pre-commit

update prettier

* update package.json

update package.json

u package

pkg

pkg2

* lint main repo 2

lint main repo

lint

* lintrc

lintrc 2

lintrc2

lintrc 3

lintrc

* fix import

* refresh lock file

* fix break line make @ts-ignore invalid

* update rat-excludes

rat-excludes

update rat-excludes

* update eslintrc.js

* lint lint lint
2021-11-17 15:31:36 +08:00
Geido
d0085b1b29 Check validity of control item (#17349) 2021-11-05 12:56:03 +02:00
Kamil Gabryjelski
63dc035d6a feat(explore): Remove default for time range filter and Metrics (#14661)
* feat(explore): Remove default for time range filter and Metrics

* Merge errors with same messages

* Fix e2e test

* Rename a variable

* Bump packages

* Fix unit tests
2021-05-25 15:55:41 +02:00
Jesse Yang
7656b2e68b refactor: convert controlUtils to TypeScript (2 of 2) (#13520) 2021-03-11 17:19:15 -08:00
Jesse Yang
dc1eb305b1 refactor: convert controlUtils to TypeScript (1 of 2) (#13401) 2021-03-03 14:51:36 -08:00