IndexOutOfRange opened a new pull request #9195: [WIP] Add Test SQL button to 
table explore view
URL: https://github.com/apache/incubator-superset/pull/9195
 
 
   ### CATEGORY
   
   Choose one
   
   - [X] Bug Fix
   - [X] Enhancement (new features, refinement)
   - [ ] Refactor
   - [ ] Add tests
   - [ ] Build / Development Environment
   - [ ] Documentation
   
   ### SUMMARY
   Fix issue https://github.com/apache/incubator-superset/issues/5417
   This add a new button to check user SQL function in the table explore view 
when :
   - creating a new fields in a table
   - creating a new metrics in a table
   
   - I used the sql_json API to not create a new API
   - Used a popup as the test connection button. 
   - Launch a query SELECT {expression} FROM {table} LIMIT 1 as suggested in 
the bug description
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   the button is present in the column tab and metric tab. this display a popup 
saying OK if it seems OK or display the SQL error :
   
![testsql_feature_popup](https://user-images.githubusercontent.com/3482221/75182045-dec17d00-573f-11ea-97ee-ab5e1f9ad49c.png)
   
![testsql_feature](https://user-images.githubusercontent.com/3482221/75182059-e2ed9a80-573f-11ea-91a0-4be04e0fc7a7.png)
   
![testsql_feature_popup_error](https://user-images.githubusercontent.com/3482221/75182068-e5e88b00-573f-11ea-8215-9aa6ea1d3220.png)
   
   
   ### TEST PLAN
   Manual test for the most of it (different column, tables, bases and with 
user with restricted access or not)
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [X] Has associated issue: Fix #5417 
   - [X] Changes UI : see screenshot
   - [ ] Requires DB Migration.
   - [ ] Confirm DB Migration upgrade and downgrade tested.
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   
   ### REVIEWERS
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to