Commit Graph

69 Commits

Author SHA1 Message Date
JUST.in DO IT
841726d432 fix(sqllab): clean comments within quotes (#23908) 2023-05-05 09:55:45 -07:00
Hugh A. Miles II
fa8f98472c chore: migrate sqllab_viz endpoint to api v1 (#23729) 2023-04-26 10:53:41 -04:00
JUST.in DO IT
5bec1a65ae refactor(sqllab): Remove tableOptions from redux state (#23488) 2023-04-20 15:55:55 -07:00
JUST.in DO IT
0c0d2b38a6 fix(sqllab): infinite running state on disconnect (#23669) 2023-04-18 12:26:29 -07:00
JUST.in DO IT
bd0609df58 fix(sqllab): undefined issue_codes on query error (#23549) 2023-04-02 11:46:23 -07:00
Ville Brofeldt
f6b5b658e5 chore(welcome): harmonize submenu with other routes (#22803) 2023-03-31 11:34:10 +03:00
JUST.in DO IT
d1947f7354 fix(sqllab): throw errors of commented out query (#23378) 2023-03-23 16:06:22 -07:00
JUST.in DO IT
ca4dd26648 chore(sqllab): Remove schemaOptions from redux store (#23257) 2023-03-22 15:35:22 -06:00
JUST.in DO IT
3277ea83ea feat(sqllab): log error_detail on fetch failed (#23377) 2023-03-20 10:08:27 -07:00
Hugh A. Miles II
8fa77adf9a chore: Hugh/migrate estimate query cost to v1 (#23226)
Co-authored-by: Diego Medina <diegomedina24@gmail.com>
2023-03-17 18:02:25 -06:00
Jack Fragassi
3fae7dbc34 chore: Migrate get_or_create_table endpoint to api v1 (#22931) 2023-02-15 10:38:51 +00:00
JUST.in DO IT
19779d7517 fix(sqllab): inconsistent addNewQueryEditor behavior (#21999) 2023-01-30 16:54:03 -07:00
Artem Shumeiko
c839d0daf5 chore: Localization of superset pt. 2 (#22772) 2023-01-30 09:20:43 -07:00
Diego Medina
b94052e438 chore: migrate /sql_json and /results to apiv1 (#22809) 2023-01-30 11:02:34 -05:00
JUST.in DO IT
0045816772 fix(sqllab): reverts #22695 (#22861) 2023-01-26 14:15:42 -07:00
JUST.in DO IT
d591cc8082 fix(sqllab): Invalid schema fetch for deprecated value (#22695) 2023-01-19 10:19:17 -07:00
Diego Medina
3ed288d4ee chore: Migrate /superset/stop_query/ to API v1 (#22624) 2023-01-16 14:07:52 +00:00
Ville Brofeldt
b6d39d194c feat(trino): support early cancellation of queries (#22498) 2022-12-24 06:31:46 +02:00
JUST.in DO IT
c3f1873c43 fix(sqllab): Add templateParams on kv store (#22013) 2022-11-14 10:46:21 -08:00
Daniel Vaz Gaspar
7c6fabb033 chore: deprecate /superset/fetch_datasource_metadata mig to API v1 (#22102) 2022-11-14 08:51:26 +00:00
JUST.in DO IT
40024064ae fix: BIGINT rendering regression in chartAction (#21937) 2022-10-26 15:04:20 -07:00
JUST.in DO IT
0c461497ff chore(sqllab): refactor addQueryEditor for new tab (#21711) 2022-10-07 17:57:39 -03:00
Mayur
61319fd759 feat(sqllab): save query parameters in database (#21682) 2022-10-07 12:49:14 +05:30
JUST.in DO IT
222f1e7ea8 fix(sqllab): invalid table metadata request (#21304) 2022-09-01 16:35:19 -07:00
AAfghahi
a7fe4850ed fix: dataset exists error in save Dataset modal (#21244)
* dataset exists error

* fixed flashing modal
2022-08-31 16:47:39 -04:00
JUST.in DO IT
f77b910e2c perf(sqllab): Rendering perf improvement using immutable state (#20877)
* perf(sqllab): Rendering perf improvement using immutable state

- keep queryEditors immutable during active state
- add unsavedQueryEditor to store all active changes
- refactor each component to subscribe the related unsaved editor state only

* revert ISaveableDatasource type cast

* missing trigger prop

* a default of an empty object and optional operator
2022-08-23 12:17:19 -03:00
Diego Medina
15b9f83150 chore: support trailing slashes in database api (#21123) 2022-08-22 15:15:04 +08:00
Eric Briscoe
ab6ec89f68 fix: [sc-54864] Adds safety check to provide near term fix to save query (#21034)
* [sc-54864] Adds safety check to provide near term fix for Queries not saving

There is an error when casting the columns array to String() for saving queries where the objects in the array are missing the toString method.   This is a near term rapid patch to fix workflow in production which will have a follow up to identify root cause.

* fix typo

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>

* Adjusted chekc to be explicit for undefined instead of truthy

This fixes issue caught by unit test where the if statement was using a truthy check where it should be explicitly checking for value of undefined

* Adds new unit test to get 100% coverage for callApi

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
2022-08-10 10:33:47 -07:00
Lyndsi Kay Williams
8a04536f9d feat(SqlLab): Change Save Dataset Button to Split Save Query Button IV (#20852)
* Moving entire split save btn PR

* Addressed review comments

* Remove arbitrary div from ErrorBoundary in Chart

* Added accidentally removed comment

* Fix act errors in SaveQuery tests

* Fix SaveDatasetActionButton test

* SaveDatasetModal test almost working

* SaveDatasetModal tests all passing

* Clean SaveDatasetModal test

* Fix create chart button and SaveDatasetModal text in SQL Lab

* Fix untitled dataset name on SaveDatasetModal in explore

* Fix styling on split save button
2022-08-01 14:36:34 -05:00
Diego Medina
115ab700df fix(sql lab): MultiSelector component render twice (#20706)
* fix(sql lab): MultiSelector component render twice

* filter null/undefined tables
2022-07-19 08:33:15 -03:00
Michael S. Molina
834dcef993 chore: Moves date utils to utils folder (#20192) 2022-05-31 12:21:58 -03:00
Diego Medina
653cf773f7 fix(sql lab): SQL Lab Compile Query Delay (#20206) 2022-05-27 09:42:01 +03:00
Daniel Vaz Gaspar
87a4379d0a feat: deprecate /superset/validate_sql_json migrate to api v1 (#19935)
* feat: deprecate /superset/validate_sql_json migrate to api v1

* use new error handling

* migrate SQLLAb frontend and add tests

* debug test

* debug test

* fix frontend test on sqllab

* fix tests

* fix frontend test on sqllab

* fix tests

* fix tests

* fix tests

* fix tests
2022-05-10 21:25:39 +01:00
Daniel Vaz Gaspar
4fdf230a56 feat: deprecate /superset/extra_table_metadata migrate to api v1 (#19921)
* feat: deprecate /superset/extra_table_metadata migrate to api v1

* use can_read to table_extra_metadata

* troubleshoot sqlite

* fix test

* fix test

* fix test

* fix frontend test on sqllab
2022-05-04 14:55:52 +01:00
Diego Medina
800ced5e25 fix(sql lab): when editing a saved query, the status is lost when switching tabs (#19448) 2022-04-22 15:23:30 -06:00
Ville Brofeldt
87d47987b7 fix(sql-lab): do not replace undefined schema with empty object (#19664) 2022-04-12 15:13:03 +03:00
Ville Brofeldt
2d81c4c79f fix(sqllab): null database with backend persistence (#19548) 2022-04-06 12:32:41 +03:00
Diego Medina
4669b6ce11 fix: most Recently Selected Table Should Appear at the Top of the List on the Left Panel (#19258) 2022-03-21 15:58:23 -06:00
cccs-Dustin
02ef9ca4cd feat(sqllab): Add a configuration option to disable data preview (#19104) 2022-03-17 15:22:57 +02: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
Phillip Kelley-Dotson
9c08bc0ffc fix: change database database selector (#18609)
* fix: change database selector

* fix lint
2022-02-08 12:22:20 -05:00
Phillip Kelley-Dotson
151d30bea4 fix: sqllab schema select error msg (#18564)
* fix: sqllab schema select error msg

* remove console logs

* fix lint
2022-02-04 10:21:18 -08:00
AAfghahi
88db2cc0ab refactor(sql_lab): SQL Lab Persistent Saved State (#17771)
* a lot of console logs

* testing

* test

* added saved_query to remoteId

* created useEffect so that title properly changes in modal

* Update superset-frontend/src/SqlLab/actions/sqlLab.js

Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>

Co-authored-by: Lyndsi Kay Williams <55605634+lyndsiWilliams@users.noreply.github.com>
2022-01-18 13:10:31 -05:00
Holger Bruch
6604a6ab28 chore(translations): Add missing i18n (#17525)
* Add *.ts to babel.cfg

* Add missing i18n calls

* Update pot file

* Fix lint issues and review comment

* Incorparate review feedback

* Fix missing or non-extractable i18n calls

* Update pot file

* Fix syntax error in CommonParameters.tsx

* Fix introduced issues
2021-11-27 14:50:33 +02:00
Michael S. Molina
9b17e86b44 chore: Moves messageToasts to the components folder (#14431)
* chore: Moves messageToasts to the components folder

* Rebases
2021-09-22 07:44:54 -03:00
Elizabeth Thompson
f032cc254c fix shared query (#16753) 2021-09-21 09:38:23 -07:00
Elizabeth Thompson
519baa6f00 fix: params in sql lab are jumpy in the ace editor (#16536)
* fix jumpy params

* remove cypress tests
2021-09-07 09:38:45 -07:00
AAfghahi
ee2eccdb67 fix: queryEditor bug (#16452)
* queryEditor bug

* update tests

Co-authored-by: Elizabeth Thompson <eschutho@gmail.com>
2021-08-26 15:20:02 -07:00
Beto Dealmeida
b489cffb57 fix: no lazy translation on SupersetError (#15669)
* fix: no lazy translation on SupersetError

* Small fixes
2021-07-14 16:54:11 -07:00
Beto Dealmeida
65f90096fd fix: use encodeURIComponent when getting table metadata (#14790) 2021-05-24 12:20:31 -07:00