Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: type FilterableTable #10073

Conversation

etr2460
Copy link
Member

@etr2460 etr2460 commented Jun 16, 2020

SUMMARY

As titled. Related to #10004

TEST PLAN

  • CI
  • run a query in sql lab and see the results
  • run a query with a very wide table and see the column widths set properly and scrolling working
  • run a query with json object results and see clicking on the results to expand the blob working

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

to: @ktmud @nytai @graceguo-supercat

@codecov-commenter
Copy link

codecov-commenter commented Jun 16, 2020

Codecov Report

Merging #10073 into master will increase coverage by 0.01%.
The diff coverage is 64.28%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10073      +/-   ##
==========================================
+ Coverage   70.49%   70.51%   +0.01%     
==========================================
  Files         585      585              
  Lines       31073    31096      +23     
  Branches     3185     3191       +6     
==========================================
+ Hits        21905    21927      +22     
  Misses       9058     9058              
- Partials      110      111       +1     
Flag Coverage Δ
#cypress 53.85% <2.50%> (-0.05%) ⬇️
#javascript 59.55% <64.28%> (+0.05%) ⬆️
#python 70.07% <ø> (+<0.01%) ⬆️
Impacted Files Coverage Δ
...src/components/FilterableTable/FilterableTable.tsx 81.37% <64.28%> (ø)
.../src/dashboard/components/gridComponents/Chart.jsx 88.76% <0.00%> (-1.13%) ⬇️
superset/views/core.py 76.35% <0.00%> (+0.01%) ⬆️
superset-frontend/src/SqlLab/actions/sqlLab.js 66.81% <0.00%> (+0.65%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3a9ce5...80ce615. Read the comment docs.

Copy link
Member

@ktmud ktmud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some minor suggestion and questions

this.setState({ sortBy, sortDirection });
}

fitTableToWidthIfNeeded() {
const containerWidth = this.container.clientWidth;
const containerWidth = this.container.current!.clientWidth;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.container was the same createRef before. Does this mean this code used to not work?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unclear to be honest. I think I should trust TypeScript's typing here though, and not having current threw an error

@etr2460 etr2460 force-pushed the erik-ritter--type-src-components-filterabletable branch from 80ce615 to 1c2a409 Compare June 19, 2020 03:41
@etr2460 etr2460 merged commit 2e76fbb into apache:master Jun 19, 2020
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants