Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

fix(legacy-plugin-chart-table): parse numeric pageLength #522

Merged
merged 1 commit into from
May 21, 2020

Conversation

ktmud
Copy link
Contributor

@ktmud ktmud commented May 21, 2020

🐛 Bug Fix

Pagination for table chart had stopped working because pageLength param somehow is not string any more.

This fix makes transformProps handle both numeric and string values and added unit tests.

@ktmud ktmud requested a review from a team as a code owner May 21, 2020 22:23
@vercel
Copy link

vercel bot commented May 21, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/superset/superset-ui/bju3sdtoy
✅ Preview: https://superset-ui-git-fork-ktmud-fix-table-page-length.superset.now.sh

@ktmud
Copy link
Contributor Author

ktmud commented May 21, 2020

git bisect says bug was introduced in apache/superset#9757

@kristw
Copy link
Contributor

kristw commented May 21, 2020

Hmm. Not sure what was changed in that mass bump.

@codecov
Copy link

codecov bot commented May 21, 2020

Codecov Report

Merging #522 into master will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #522      +/-   ##
==========================================
+ Coverage   22.51%   22.52%   +0.01%     
==========================================
  Files         285      285              
  Lines        6729     6729              
  Branches      651      651              
==========================================
+ Hits         1515     1516       +1     
  Misses       5175     5175              
+ Partials       39       38       -1     
Impacted Files Coverage Δ
plugins/legacy-plugin-chart-table/test/testData.ts 83.33% <ø> (ø)
...ns/legacy-plugin-chart-table/src/transformProps.ts 51.85% <100.00%> (+3.70%) ⬆️

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 ef667f4...fcadf45. Read the comment docs.

@ktmud ktmud merged commit 4831f7f into apache-superset:master May 21, 2020
@ktmud ktmud deleted the fix-table-page-length branch May 21, 2020 23:42
ktmud added a commit to ktmud/superset that referenced this pull request May 22, 2020
Bump @superset-ui/legacy-preset-chart-table to fix disabled
page length support.

See apache-superset/superset-ui#522
john-bodley pushed a commit to apache/superset that referenced this pull request May 22, 2020
Bump @superset-ui/legacy-preset-chart-table to fix disabled
page length support.

See apache-superset/superset-ui#522
john-bodley pushed a commit to airbnb/superset-fork that referenced this pull request May 22, 2020
Bump @superset-ui/legacy-preset-chart-table to fix disabled
page length support.

See apache-superset/superset-ui#522

(cherry picked from commit 6d4e236)
pkdotson pushed a commit to preset-io/superset that referenced this pull request May 26, 2020
Bump @superset-ui/legacy-preset-chart-table to fix disabled
page length support.

See apache-superset/superset-ui#522
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
Bump @superset-ui/legacy-preset-chart-table to fix disabled
page length support.

See apache-superset/superset-ui#522
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants