You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/08/04 21:11:48 UTC

[GitHub] [incubator-superset] suddjian opened a new pull request #10518: Handle long table names in SQL Lab

suddjian opened a new pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518


   ### SUMMARY
   <!--- Describe the change below, including rationale and design decisions -->
   
   In cases where there are lots of tables and/or tables with long names, SQL Lab can become difficult to use. This adds a couple of affordances for that use case:
   
   - Adds tooltips to items in the table select menu, displaying the full table name
   - Widen the autocomplete window. Unfortunately I couldn't find a way to make the width dynamic or add a tooltip. But it's now twice as wide as before which should be pretty accommodating.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   <!--- Skip this if not applicable -->
   
   <img width="630" alt="Screen Shot 2020-08-03 at 11 30 40 PM" src="https://user-images.githubusercontent.com/1858430/89345208-ea549080-d65b-11ea-920f-d0aa63ac160a.png">
   <img width="426" alt="Screen Shot 2020-08-04 at 12 22 46 PM" src="https://user-images.githubusercontent.com/1858430/89345227-efb1db00-d65b-11ea-936c-3e7d0fac3bbb.png">
   
   
   ### TEST PLAN
   <!--- What steps should be taken to verify the changes -->
   
   ### ADDITIONAL INFORMATION
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] Has associated issue:
   - [x] Changes UI
   - [ ] Requires DB Migration.
   - [ ] Confirm DB Migration upgrade and downgrade tested.
   - [ ] Introduces new feature or API
   - [ ] Removes existing feature or API
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668988292


   πŸ—‘πŸ· sqllab


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on a change in pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on a change in pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#discussion_r465870119



##########
File path: superset-frontend/src/SqlLab/components/AceEditorWrapper/AceStyles.less
##########
@@ -0,0 +1,22 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+.ace_editor.ace_autocomplete {
+  width: 520px;

Review comment:
       Adding it to `main.less` makes sense to me. That would change autocomplete widths for every instance of ace editor that we have.
   
   I chose 520 based on what looked good to me on-screen. Can't be a percentage because the element is absolute positioned.




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669317361


   > In your [second screenshot](https://user-images.githubusercontent.com/1858430/89345227-efb1db00-d65b-11ea-936c-3e7d0fac3bbb.png) it looks like you might be able to use some CSS to truncate the list item with an ellipsis, e.g.
   > 
   > ```
   > white-space: nowrap; // probably already happening
   > overflow: hidden; // _maybe_ already happening
   > text-overflow: ellipsis; // …
   > ```
   
   Interestingly, the dropdown is actually horizontally scrollable so this wouldn't work. In theory, the horizontal scrolling should solve the issue of long table names, but it's not a very discoverable pattern. Maybe a better solution would be to make the scrollbar clearly visible and get rid of the tooltips.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668988147


   🏷 sqllab


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] etr2460 commented on a change in pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
etr2460 commented on a change in pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#discussion_r468259705



##########
File path: superset-frontend/src/SqlLab/components/AceEditorWrapper.tsx
##########
@@ -22,14 +22,14 @@ import 'brace/mode/sql';
 import 'brace/theme/github';
 import 'brace/ext/language_tools';
 import ace from 'brace';
-import { areArraysShallowEqual } from '../../reduxUtils';
-import sqlKeywords from '../utils/sqlKeywords';
+import { areArraysShallowEqual } from 'src/reduxUtils';

Review comment:
       is this from a lint rule? auto modifications from your IDE? Could we do a programmatic migration here to absolute paths everywhere?




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668987993


   🏷 SQL Lab


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] etr2460 commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
etr2460 commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668871204


   How does the width look when the tables don't have long names? is it too ridiculous?


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669311631


   In your [second screenshot](https://user-images.githubusercontent.com/1858430/89345227-efb1db00-d65b-11ea-936c-3e7d0fac3bbb.png) it looks like you might be able to use some CSS to truncate the list item with an ellipsis, e.g.
   ```
   white-space: nowrap; // probably already happening
   overflow: hidden; // _maybe_ already happening
   text-overflow: ellipsis; // …
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669316151


   > Mmmmh, it feels like the tooltip should only be where needed. Really unusual to see a tooltip in a dropdown list... I searched a bit to see if `react-select` could expand the width of the dropdown as needed but didn't find anything obvious. Seems like the dropdown box could be wider than the non-expanded control.
   
   I agree that having a dynamic dropdown width would be best. I couldn't find a way to make that work either, at least not without going and changing the `react-select` library. There are actually cases where the dropdown is rendered wide enough to accommodate the longer table names. It only happens when the long name appears in the first few results, because the options are virtualized. You'd have to do some pretty weird stuff to figure out what width to make it.
   
   <img width="469" alt="Screen Shot 2020-08-03 at 11 34 41 PM" src="https://user-images.githubusercontent.com/1858430/89442380-97ceaf00-d703-11ea-9283-f66b0f4b7a84.png">
   
   I think the best way to improve this would be to give SQL Lab a thorough design pass. A dropdown might not actually be the best way to solve this user need.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ktmud commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
ktmud commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-670806426


   > I tried passing a custom `windowThreshold` to the `<Select>` but it didn't seem to have any effect. I profiled scrolling around the select menu with and without `windowThreshold` set to `10000` and with 10000+ tables in the schema. I don't think setting the threshold worked correctly. It was around 200ms to render the menu each time regardless, and it didn't seem like there was actually a larger window of menu items.
   
   Did you IDE give you type hint?
   
   <img src="https://user-images.githubusercontent.com/335541/89699781-17b07100-d8de-11ea-8a14-d994d1fdce73.png" width="500">
   
   because it worked for me. There is also a `menuIsOpen` option you can set to always open the menu on load, so you can more easily see what is rendered by inspecting elements.
   
   Base on my experience, the scrolling starts to become janky even with just 200+ items, which is why I picked 100 as default in the first place.
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] mistercrunch commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
mistercrunch commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668980444


   Mmmmh, it feels like the tooltip should only be where needed. Really unusual to see a tooltip in a dropdown list... I searched a bit to see if `react-select` could expand the width of the dropdown as needed but didn't find anything obvious. Seems like the dropdown box could be wider than the non-expanded control.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669305462


   I don't think it looks too ridiculous
   <img width="879" alt="Screen Shot 2020-08-05 at 9 47 04 AM" src="https://user-images.githubusercontent.com/1858430/89440561-a49dd380-d700-11ea-8748-11c87981ad66.png">
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas removed a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas removed a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668988534


   🏷 testing multiple words, sorry for the noise on this PR.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on a change in pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on a change in pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#discussion_r465490051



##########
File path: superset-frontend/src/SqlLab/components/AceEditorWrapper/AceStyles.less
##########
@@ -0,0 +1,22 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+.ace_editor.ace_autocomplete {
+  width: 520px;

Review comment:
       Not sure we need a new file here... this could be shoehorned under the `.ace_editor` selector in `main.less`
   
   Optionally, all o' that could be moved into Emotion (though that comes with the side mission of migrating the ligature settings into the SupersetTheme.
   
   Also, is 520px based on... something? Maybe it could be a percentage?




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ktmud commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
ktmud commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669589166


   It depends on the schema. Normally it'd be less than 100, but we also have schemas with 1000+ tables.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] etr2460 commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
etr2460 commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669589689


   We've got a >10k table schema, but that's the largest we have so far i think


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian merged pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian merged pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518


   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668988534


   🏷 testing multiple words, sorry for the noise on this PR.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] codecov-commenter edited a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
codecov-commenter edited a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-671162509


   # [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=h1) Report
   > Merging [#10518](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=desc) into [master](https://codecov.io/gh/apache/incubator-superset/commit/16459ad401d916d0ce7ca6ffa6775fdcb8a37ae8&el=desc) will **decrease** coverage by `4.63%`.
   > The diff coverage is `70.16%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/incubator-superset/pull/10518/graphs/tree.svg?width=650&height=150&src=pr&token=KsB0fHcx6l)](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #10518      +/-   ##
   ==========================================
   - Coverage   70.74%   66.11%   -4.64%     
   ==========================================
     Files         604      605       +1     
     Lines       32391    32421      +30     
     Branches     3282     3426     +144     
   ==========================================
   - Hits        22916    21435    -1481     
   - Misses       9363    10796    +1433     
   - Partials      112      190      +78     
   ```
   
   | Flag | Coverage Ξ” | |
   |---|---|---|
   | #cypress | `?` | |
   | #javascript | `59.94% <93.33%> (+0.22%)` | :arrow_up: |
   | #python | `70.43% <66.97%> (+0.13%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree) | Coverage Ξ” | |
   |---|---|---|
   | [superset-frontend/src/components/TableSelector.jsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvVGFibGVTZWxlY3Rvci5qc3g=) | `79.08% <ΓΈ> (-5.89%)` | :arrow_down: |
   | [...rontend/src/explore/components/PropertiesModal.tsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2V4cGxvcmUvY29tcG9uZW50cy9Qcm9wZXJ0aWVzTW9kYWwudHN4) | `14.92% <0.00%> (-2.99%)` | :arrow_down: |
   | [...et-frontend/src/views/CRUD/dataset/DatasetList.tsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL3ZpZXdzL0NSVUQvZGF0YXNldC9EYXRhc2V0TGlzdC50c3g=) | `73.18% <ΓΈ> (ΓΈ)` | |
   | [superset/cli.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY2xpLnB5) | `39.73% <0.00%> (+0.13%)` | :arrow_up: |
   | [superset/connectors/druid/views.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY29ubmVjdG9ycy9kcnVpZC92aWV3cy5weQ==) | `69.86% <0.00%> (+0.47%)` | :arrow_up: |
   | [superset/dashboards/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGFzaGJvYXJkcy9zY2hlbWFzLnB5) | `98.50% <ΓΈ> (ΓΈ)` | |
   | [superset/queries/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvcXVlcmllcy9zY2hlbWFzLnB5) | `100.00% <ΓΈ> (ΓΈ)` | |
   | [superset/sql\_lab.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX2xhYi5weQ==) | `78.69% <0.00%> (+0.77%)` | :arrow_up: |
   | [superset/views/datasource.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdmlld3MvZGF0YXNvdXJjZS5weQ==) | `93.44% <ΓΈ> (ΓΈ)` | |
   | [superset/utils/core.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvY29yZS5weQ==) | `88.99% <25.00%> (-0.40%)` | :arrow_down: |
   | ... and [189 more](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree-more) | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Ξ” = absolute <relative> (impact)`, `ΓΈ = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=footer). Last update [5bb8b97...29f1a2d](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] codecov-commenter edited a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
codecov-commenter edited a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-671162509


   # [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=h1) Report
   > Merging [#10518](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=desc) into [master](https://codecov.io/gh/apache/incubator-superset/commit/16459ad401d916d0ce7ca6ffa6775fdcb8a37ae8&el=desc) will **decrease** coverage by `4.64%`.
   > The diff coverage is `70.16%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/incubator-superset/pull/10518/graphs/tree.svg?width=650&height=150&src=pr&token=KsB0fHcx6l)](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #10518      +/-   ##
   ==========================================
   - Coverage   70.74%   66.10%   -4.65%     
   ==========================================
     Files         604      605       +1     
     Lines       32391    32430      +39     
     Branches     3282     3426     +144     
   ==========================================
   - Hits        22916    21438    -1478     
   - Misses       9363    10802    +1439     
   - Partials      112      190      +78     
   ```
   
   | Flag | Coverage Ξ” | |
   |---|---|---|
   | #cypress | `?` | |
   | #javascript | `59.94% <93.33%> (+0.22%)` | :arrow_up: |
   | #python | `70.41% <66.97%> (+0.11%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree) | Coverage Ξ” | |
   |---|---|---|
   | [superset-frontend/src/components/TableSelector.jsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvVGFibGVTZWxlY3Rvci5qc3g=) | `79.08% <ΓΈ> (-5.89%)` | :arrow_down: |
   | [...rontend/src/explore/components/PropertiesModal.tsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2V4cGxvcmUvY29tcG9uZW50cy9Qcm9wZXJ0aWVzTW9kYWwudHN4) | `14.92% <0.00%> (-2.99%)` | :arrow_down: |
   | [...et-frontend/src/views/CRUD/dataset/DatasetList.tsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL3ZpZXdzL0NSVUQvZGF0YXNldC9EYXRhc2V0TGlzdC50c3g=) | `73.18% <ΓΈ> (ΓΈ)` | |
   | [superset/cli.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY2xpLnB5) | `39.73% <0.00%> (+0.13%)` | :arrow_up: |
   | [superset/connectors/druid/views.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY29ubmVjdG9ycy9kcnVpZC92aWV3cy5weQ==) | `69.86% <0.00%> (+0.47%)` | :arrow_up: |
   | [superset/dashboards/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGFzaGJvYXJkcy9zY2hlbWFzLnB5) | `98.50% <ΓΈ> (ΓΈ)` | |
   | [superset/queries/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvcXVlcmllcy9zY2hlbWFzLnB5) | `100.00% <ΓΈ> (ΓΈ)` | |
   | [superset/sql\_lab.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX2xhYi5weQ==) | `78.69% <0.00%> (+0.77%)` | :arrow_up: |
   | [superset/views/datasource.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdmlld3MvZGF0YXNvdXJjZS5weQ==) | `93.44% <ΓΈ> (ΓΈ)` | |
   | [superset/utils/core.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvY29yZS5weQ==) | `88.99% <25.00%> (-0.40%)` | :arrow_down: |
   | ... and [193 more](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree-more) | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Ξ” = absolute <relative> (impact)`, `ΓΈ = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=footer). Last update [5bb8b97...29f1a2d](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian edited a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian edited a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669316151


   > Mmmmh, it feels like the tooltip should only be where needed. Really unusual to see a tooltip in a dropdown list... I searched a bit to see if `react-select` could expand the width of the dropdown as needed but didn't find anything obvious. Seems like the dropdown box could be wider than the non-expanded control.
   
   I agree that having a dynamic dropdown width would be best. I couldn't find a way to make that work either, at least not without going and changing the `react-select` library. There are actually cases where the dropdown is rendered wide enough to accommodate the longer table names. It only happens when the long name appears in the first few results, because the options are virtualized. It might be possible to figure out up front what the widest option will be and set that as the width, but you'd have to do some pretty weird stuff to get that to work.
   
   <img width="469" alt="Screen Shot 2020-08-03 at 11 34 41 PM" src="https://user-images.githubusercontent.com/1858430/89442380-97ceaf00-d703-11ea-9283-f66b0f4b7a84.png">
   
   I think the best way to improve this would be to give SQL Lab a thorough design pass. A dropdown might not actually be the best way to solve this user need.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ktmud commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
ktmud commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669531218


   Another easy "fix" is instead of tooltips, we can add the less aggressive html `title` attribute to the table items.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on a change in pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on a change in pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#discussion_r468723639



##########
File path: superset-frontend/src/SqlLab/components/AceEditorWrapper.tsx
##########
@@ -22,14 +22,14 @@ import 'brace/mode/sql';
 import 'brace/theme/github';
 import 'brace/ext/language_tools';
 import ace from 'brace';
-import { areArraysShallowEqual } from '../../reduxUtils';
-import sqlKeywords from '../utils/sqlKeywords';
+import { areArraysShallowEqual } from 'src/reduxUtils';

Review comment:
       We probably could do that, but I'm not sure it's worth it. I think I made a decision to change it here because it made more sense than a local path. But sometimes local paths are nice.




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669573567


   Oh it hadn't even occurred to me to use `title`, that's a good idea. I'll do a bit of testing with `windowThreshold`. Out of curiosity, how many tables do you guys have at Airbnb?


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on a change in pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on a change in pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#discussion_r465870119



##########
File path: superset-frontend/src/SqlLab/components/AceEditorWrapper/AceStyles.less
##########
@@ -0,0 +1,22 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+.ace_editor.ace_autocomplete {
+  width: 520px;

Review comment:
       Adding it to `main.less` makes sense to me. That would change autocomplete widths for every instance of ace editor that we have.
   
   I chose 520 based on what looked good to me on-screen. Can't be a percentage because the element is absolute positioned. We could use `vw`, but I don't really like how that can't be bounded.




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] mistercrunch commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
mistercrunch commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668992769


   🏷️ .ui


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-671454643


   @ktmud I believe that's exactly what I tried. Maybe I did something subtly wrong somewhere.
   
   I changed to `title` attribute as suggested. I think optimization around the select component could be implemented in another PR.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ktmud edited a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
ktmud edited a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-670806426


   > I tried passing a custom `windowThreshold` to the `<Select>` but it didn't seem to have any effect. I profiled scrolling around the select menu with and without `windowThreshold` set to `10000` and with 10000+ tables in the schema. I don't think setting the threshold worked correctly. It was around 200ms to render the menu each time regardless, and it didn't seem like there was actually a larger window of menu items.
   
   Did your IDE give you type hint?
   
   <img src="https://user-images.githubusercontent.com/335541/89699781-17b07100-d8de-11ea-8a14-d994d1fdce73.png" width="500">
   
   because it worked for me. There is also a `menuIsOpen` option you can set to always open the menu on load, so you can more easily see what is rendered by inspecting elements.
   
   Base on my experience, the scrolling starts to become janky even with just 200+ items, which is why I picked 100 as default in the first place.
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] codecov-commenter commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-671162509


   # [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=h1) Report
   > Merging [#10518](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=desc) into [master](https://codecov.io/gh/apache/incubator-superset/commit/16459ad401d916d0ce7ca6ffa6775fdcb8a37ae8&el=desc) will **decrease** coverage by `8.32%`.
   > The diff coverage is `70.49%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/incubator-superset/pull/10518/graphs/tree.svg?width=650&height=150&src=pr&token=KsB0fHcx6l)](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #10518      +/-   ##
   ==========================================
   - Coverage   70.74%   62.42%   -8.33%     
   ==========================================
     Files         604      354     -250     
     Lines       32391    26212    -6179     
     Branches     3282        0    -3282     
   ==========================================
   - Hits        22916    16362    -6554     
   - Misses       9363     9850     +487     
   + Partials      112        0     -112     
   ```
   
   | Flag | Coverage Ξ” | |
   |---|---|---|
   | #cypress | `?` | |
   | #javascript | `?` | |
   | #python | `62.42% <70.49%> (-7.89%)` | :arrow_down: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree) | Coverage Ξ” | |
   |---|---|---|
   | [superset/cli.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY2xpLnB5) | `42.53% <0.00%> (+2.92%)` | :arrow_up: |
   | [superset/connectors/druid/views.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY29ubmVjdG9ycy9kcnVpZC92aWV3cy5weQ==) | `67.76% <0.00%> (-1.63%)` | :arrow_down: |
   | [superset/dashboards/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGFzaGJvYXJkcy9zY2hlbWFzLnB5) | `98.50% <ΓΈ> (ΓΈ)` | |
   | [...ions/versions/21e88bc06c02\_annotation\_migration.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvbWlncmF0aW9ucy92ZXJzaW9ucy8yMWU4OGJjMDZjMDJfYW5ub3RhdGlvbl9taWdyYXRpb24ucHk=) | `0.00% <0.00%> (ΓΈ)` | |
   | [superset/queries/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvcXVlcmllcy9zY2hlbWFzLnB5) | `100.00% <ΓΈ> (ΓΈ)` | |
   | [superset/sql\_lab.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX2xhYi5weQ==) | `81.20% <0.00%> (+3.28%)` | :arrow_up: |
   | [superset/views/datasource.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdmlld3MvZGF0YXNvdXJjZS5weQ==) | `93.44% <ΓΈ> (ΓΈ)` | |
   | [superset/utils/core.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvY29yZS5weQ==) | `90.69% <25.00%> (+1.31%)` | :arrow_up: |
   | [superset/utils/dashboard\_import\_export.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvZGFzaGJvYXJkX2ltcG9ydF9leHBvcnQucHk=) | `60.00% <40.00%> (-0.72%)` | :arrow_down: |
   | [superset/models/tags.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvbW9kZWxzL3RhZ3MucHk=) | `63.85% <41.37%> (+2.64%)` | :arrow_up: |
   | ... and [653 more](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree-more) | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Ξ” = absolute <relative> (impact)`, `ΓΈ = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=footer). Last update [5bb8b97...6b698a0](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas removed a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas removed a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-668987993


   🏷 SQL Lab


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-670802150


   I tried passing a custom `windowThreshold` to the `<Select>` but it didn't seem to have any effect. I profiled scrolling around the select menu with and without `windowThreshold` set to `10000` and with 10000+ tables in the schema. I don't think setting the threshold worked correctly. It was around 200ms to render the menu each time regardless, and it didn't seem like there was actually a larger window of menu items.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] etr2460 commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
etr2460 commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669514254


   increasing the `windowThreshold` seems reasonable, since each dom element within the select isn't too complex. Maybe with some performance testing we can find an optimal value here?


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on a change in pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on a change in pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#discussion_r465490760



##########
File path: superset-frontend/src/SqlLab/components/AceEditorWrapper/index.tsx
##########
@@ -22,14 +22,15 @@ import 'brace/mode/sql';
 import 'brace/theme/github';
 import 'brace/ext/language_tools';
 import ace from 'brace';
-import { areArraysShallowEqual } from '../../reduxUtils';
-import sqlKeywords from '../utils/sqlKeywords';
+import { areArraysShallowEqual } from 'src/reduxUtils';
+import sqlKeywords from '../../utils/sqlKeywords';
 import {
   SCHEMA_AUTOCOMPLETE_SCORE,
   TABLE_AUTOCOMPLETE_SCORE,
   COLUMN_AUTOCOMPLETE_SCORE,
   SQL_FUNCTIONS_AUTOCOMPLETE_SCORE,
-} from '../constants';
+} from '../../constants';

Review comment:
       src alias might help here too.




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] ktmud commented on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
ktmud commented on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-669414805


   I implemented the feature where long table names [auto-expand](https://github.com/apache/incubator-superset/blob/428ad70aac150e988a5729ade22b72d9e318333f/superset-frontend/src/components/Select/styles.tsx#L167-L168) the dropdown select. This is done only for non-virtualized list because it was easier. Didn't follow up to fix it for the virtualized list because once users start typing and narrow the list down to < 100 items, it becomes a non-virtualized list and will auto-expand anyway.
   
   We can potentially slightly increase the `windowThreshold` (currently defaults to 100) on [Select](https://github.com/apache/incubator-superset/blob/671461d0d03ccc7ac1d7bef9cf1a5d9c1f39fdeb/superset-frontend/src/components/TableSelector.jsx#L367) to make table name truncating less frequent for users.
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] rusackas commented on a change in pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
rusackas commented on a change in pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#discussion_r465490537



##########
File path: superset-frontend/src/SqlLab/components/AceEditorWrapper/index.tsx
##########
@@ -22,14 +22,15 @@ import 'brace/mode/sql';
 import 'brace/theme/github';
 import 'brace/ext/language_tools';
 import ace from 'brace';
-import { areArraysShallowEqual } from '../../reduxUtils';
-import sqlKeywords from '../utils/sqlKeywords';
+import { areArraysShallowEqual } from 'src/reduxUtils';
+import sqlKeywords from '../../utils/sqlKeywords';

Review comment:
       This could use the src alias too, if it helps avoid future shufflin'
   ```suggestion
   import sqlKeywords from 'src/SqlLab/utils/sqlKeywords';
   ```




----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] codecov-commenter edited a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
codecov-commenter edited a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-671162509


   # [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=h1) Report
   > Merging [#10518](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=desc) into [master](https://codecov.io/gh/apache/incubator-superset/commit/16459ad401d916d0ce7ca6ffa6775fdcb8a37ae8&el=desc) will **decrease** coverage by `4.63%`.
   > The diff coverage is `70.16%`.
   
   [![Impacted file tree graph](https://codecov.io/gh/apache/incubator-superset/pull/10518/graphs/tree.svg?width=650&height=150&src=pr&token=KsB0fHcx6l)](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree)
   
   ```diff
   @@            Coverage Diff             @@
   ##           master   #10518      +/-   ##
   ==========================================
   - Coverage   70.74%   66.11%   -4.64%     
   ==========================================
     Files         604      605       +1     
     Lines       32391    32421      +30     
     Branches     3282     3426     +144     
   ==========================================
   - Hits        22916    21436    -1480     
   - Misses       9363    10795    +1432     
   - Partials      112      190      +78     
   ```
   
   | Flag | Coverage Ξ” | |
   |---|---|---|
   | #cypress | `?` | |
   | #javascript | `59.94% <93.33%> (+0.22%)` | :arrow_up: |
   | #python | `70.43% <66.97%> (+0.13%)` | :arrow_up: |
   
   Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags#carryforward-flags-in-the-pull-request-comment) to find out more.
   
   | [Impacted Files](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=tree) | Coverage Ξ” | |
   |---|---|---|
   | [superset-frontend/src/components/TableSelector.jsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2NvbXBvbmVudHMvVGFibGVTZWxlY3Rvci5qc3g=) | `79.08% <ΓΈ> (-5.89%)` | :arrow_down: |
   | [...rontend/src/explore/components/PropertiesModal.tsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL2V4cGxvcmUvY29tcG9uZW50cy9Qcm9wZXJ0aWVzTW9kYWwudHN4) | `14.92% <0.00%> (-2.99%)` | :arrow_down: |
   | [...et-frontend/src/views/CRUD/dataset/DatasetList.tsx](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQtZnJvbnRlbmQvc3JjL3ZpZXdzL0NSVUQvZGF0YXNldC9EYXRhc2V0TGlzdC50c3g=) | `73.18% <ΓΈ> (ΓΈ)` | |
   | [superset/cli.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY2xpLnB5) | `39.73% <0.00%> (+0.13%)` | :arrow_up: |
   | [superset/connectors/druid/views.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvY29ubmVjdG9ycy9kcnVpZC92aWV3cy5weQ==) | `69.86% <0.00%> (+0.47%)` | :arrow_up: |
   | [superset/dashboards/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvZGFzaGJvYXJkcy9zY2hlbWFzLnB5) | `98.50% <ΓΈ> (ΓΈ)` | |
   | [superset/queries/schemas.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvcXVlcmllcy9zY2hlbWFzLnB5) | `100.00% <ΓΈ> (ΓΈ)` | |
   | [superset/sql\_lab.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvc3FsX2xhYi5weQ==) | `78.69% <0.00%> (+0.77%)` | :arrow_up: |
   | [superset/views/datasource.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdmlld3MvZGF0YXNvdXJjZS5weQ==) | `93.44% <ΓΈ> (ΓΈ)` | |
   | [superset/utils/core.py](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree#diff-c3VwZXJzZXQvdXRpbHMvY29yZS5weQ==) | `88.99% <25.00%> (-0.40%)` | :arrow_down: |
   | ... and [190 more](https://codecov.io/gh/apache/incubator-superset/pull/10518/diff?src=pr&el=tree-more) | |
   
   ------
   
   [Continue to review full report at Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=continue).
   > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
   > `Ξ” = absolute <relative> (impact)`, `ΓΈ = not affected`, `? = missing data`
   > Powered by [Codecov](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=footer). Last update [5bb8b97...29f1a2d](https://codecov.io/gh/apache/incubator-superset/pull/10518?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
   


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] suddjian edited a comment on pull request #10518: fix(sqllab): Handle long table names in SQL Lab

Posted by GitBox <gi...@apache.org>.
suddjian edited a comment on pull request #10518:
URL: https://github.com/apache/incubator-superset/pull/10518#issuecomment-671454643


   @ktmud I believe that's exactly what I tried. Got the intellisense completion and everything. Maybe I did something subtly wrong somewhere.
   
   I changed to `title` attribute as suggested. I think optimization around the select component could be implemented in another PR.


----------------------------------------------------------------
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org