Fixes a series of unexpected things around control validation.
* when a chart opens in a state where a control is invalid, it still
runs the query, and sometimes gets stuck in what appears to be a 'running'
state. After this change, no query is run, and a warning is displayed
in the chart panel body, just like any other error would
* validation used to be done in the <Control> component and alter the
redux store as it went. Clearly this is not the right approach, now
validation occurs on loading the initial redux state, as well as in
the reducer when controls are changed
* currently, when going from a invalid control state to a valid one
(user addresses what is needed), it auto-triggers a query which can be
unexpected. After this change, the error message disappears, and the
"Run Query" overlay gets displayed
* when changing viz type, it's common to get new validation
errors, and currently when that occurs it will still go ahead and run
a query with invalid inputs, which often results in errors
that are not well handled, since much of the logic
assumes control-validated input.
* prettier control validation messages
(cherry picked from commit a3212eba5df95bca834d8d6d98c11d522d9172f3)
* Adding permission for can_only_access_owned_queries
* Fixing lint adding typing to variable
* Adding test for queryview and enabling /queryview/api/read
* Fixing issues with python typing
* feat: bump superset-ui versions to 0.11
* fix: update version number again
* fix: package-lock.json
* test: disable large number test
* fix: revert cors
* [load_examples] download data at runtime
When running `superset load_examples` to load example data sets,
Superset used to load from the local package. This created a few issues
notably around licensing (what are these datasets licensed as?) and
around package size.
For now, I moved the data sets here:
https://github.com/apache-superset/examples-data
Altered the logic to download the data from where it is stored.
* flakes
* fix: time series table
* fix: add default value for label
* fix: use prop values if defined
* fix: revert CollectionControl changes
(cherry picked from commit 5dab983fd8)
* [SQL Lab] fix table metadata loading spinner
The loading spinner used to be close to the new table name that was just
added, and recently flickers and disappears early.
This puts the spinner where it's expected to be.
* Use class
* Addressing comments
* adapt CSS
* add missing license