* migrate EstimateQueryCostButton component from jsx to tsx
* re-format spaces using prettier
* Update superset-frontend/src/SqlLab/components/EstimateQueryCostButton/index.tsx
Co-authored-by: Erik Ritter <erik.ritter@airbnb.com>
* remove extra onClick and make disabled prop optional
* restore & rename event handler onClick to onClickHandler
Co-authored-by: Erik Ritter <erik.ritter@airbnb.com>
* Add conditional to table name tooltip to only show when overflowing
* Remove uneccessary state and useEffect, a little clean up and slight refactoring
Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
* fix: feature flags typing
* fix tests
* add note in UPDATING.md
* fix frontend
* also move SCHEDULED_QUERIES to top level
* fix test
Co-authored-by: Ville Brofeldt <ville.v.brofeldt@gmail.com>
* add database id back
* add condition to verify dataset is being changed
* Update superset/datasets/dao.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* chore: no direct use of supersetTheme (or bad LESS vars) in SqlEditor
* putting the background back in, but using the theme.
* should be no need for this import anymore.
* add condition to make sure columns are available before throwing
* fix
* remove database_id from history changed
* refactor update call to datasets
* cleanup
* oops
* prettier
* fix: SQL Lab show "Refetch Results" button while fetching new query results (#15109)
* fix: SQL Lab show "Refetch Results" button while fetching new query results
* fix comments
(cherry picked from commit 408d58f937)
* handle exception caused by invalid query id
* copy to Clipboard order
* centralized copyToClipboard
* fixed table order
* fixed tests
* added colnames to all viz types
* added colnames to all viz types
* added colnames to all viz types
* feat: cancel db query on stop
* fix pylint
* Add unit tests
* Do not bind multiple times
* Stop only running queries
* Postgres to cancel only the required query
* Remove extra log
* Add docstring
* Better types, docstring and naming
* Use python3 format strings
* Update superset/sql_lab.py
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* Add cancel_query_on_windows_unload option to database
* Return cancel_query as bool
Co-authored-by: Beto Dealmeida <roberto@dealmeida.net>
* Convert TableElement to typescript
* Change type names to better match naming conventions in other files
* Fix import order and update tests on TableElement
* Remove defaultProps
* Destructure the props
* Use Rest and Spread syntax to condense props destructuring
* Fix TypeScript errors and add comment to explain antd props and types weirdness
* Remove comment, add consistency with other files, and use method chaining to make more concise
Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>
* added additional configs and colors for queryHistory
* added condition to status icon
* Update superset-frontend/src/SqlLab/components/QueryTable/index.jsx
* Update superset-frontend/src/SqlLab/components/QueryTable/index.jsx
* Change TableElement from a class component to a functional component
* Replace class state checks in TableElement_spec.jsx with checks testing elements they change
* Refactor small bit of logic to use optional chaining
* Add optional chaining to some logic
* Fix IconTooltip and add IconTooltip to the collapse button
* Fix custom icon using IconToolTip so it better matches the original
* Update collapse/expand icon to use Icons component instead of importing from antdesign directly
* Fix eslint errors
* Clean up some code for readability
Co-authored-by: Corbin Robb <corbin@Corbins-MacBook-Pro.local>