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

feat(core): add support for empty results and refresh indicator #1121

Merged
merged 3 commits into from
May 18, 2021

Conversation

villebro
Copy link
Contributor

🏆 Enhancements

Add support for empty datasets without rendering the "No Results" placeholder text and an flag to notify the chart that it's refreshing data without being forced to use the default spinner. Needed to be able to add support for "Search all filter options" feature in Select Filter.

See below an example of the native select filter with the feature turned on (the chart loading times have been exaggerated by placing a sleep on the backend):
https://user-images.githubusercontent.com/33317356/118638272-5402ed00-b7df-11eb-9a2c-a9e78b297c63.mp4

@villebro villebro requested a review from a team as a code owner May 18, 2021 10:46
@vercel
Copy link

vercel bot commented May 18, 2021

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/GANMb36WyU9MWbiPxgDukbxoxmB5
✅ Preview: https://superset-ui-git-fork-preset-io-villebro-refresh-superset.vercel.app

Copy link
Contributor

@kgabryje kgabryje left a comment

Choose a reason for hiding this comment

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

LGTM

@codecov
Copy link

codecov bot commented May 18, 2021

Codecov Report

Merging #1121 (0b6965e) into master (122460b) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1121      +/-   ##
==========================================
+ Coverage   28.99%   29.02%   +0.03%     
==========================================
  Files         462      462              
  Lines        9208     9212       +4     
  Branches     1452     1453       +1     
==========================================
+ Hits         2670     2674       +4     
  Misses       6334     6334              
  Partials      204      204              
Impacted Files Coverage Δ
...perset-ui-core/src/chart/components/SuperChart.tsx 100.00% <100.00%> (ø)
...superset-ui-core/src/chart/models/ChartMetadata.ts 100.00% <100.00%> (ø)
...es/superset-ui-core/src/chart/models/ChartProps.ts 100.00% <100.00%> (ø)

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 122460b...0b6965e. Read the comment docs.

Copy link
Contributor

@kgabryje kgabryje left a comment

Choose a reason for hiding this comment

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

Re-review - LGTM again!

@villebro villebro merged commit 8ba35a7 into apache-superset:master May 18, 2021
@villebro villebro deleted the villebro/refresh branch May 18, 2021 16:02
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.

2 participants