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

feat: showing results pane in dashboard #20144

Merged
merged 2 commits into from
Jun 5, 2022

Conversation

zhaoyongjie
Copy link
Member

@zhaoyongjie zhaoyongjie commented May 20, 2022

SUMMARY

This PR has finally come to the end after completing these PRs:

Show ResultsPane in Dashboard and keep all functions as ResultsPane on explore page.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Mulitple charts

data.pane.in.dashboard.mov

Results data copy to clipboard and formatted time switching

results.pane.in.Dashboard.2.mov

TESTING INSTRUCTIONS

  1. The functionality in ResultsPane should same between Dashboard and Explore
  2. The HTTP request should not resend if chart not apply new filter on Dashboard. (for example, the results data will be cached until apply a new native filter)
  3. Should correctly copy results data to clipboard both in Dashboard and Explore

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@rusackas
Copy link
Member

Loving this!!

Capturing a few UI/UX change requests that have come up in design feedback (CC @kasiazjc ❤️ )

  • In the modal header, instead of "View Results" maybe we could get more specific, like one of these:
    • {Name} Data
    • {Name} Results
    • Chart Data: {Name}
    • ... or others?
  • In the footer of the modal, can we add two buttons?
    • (left/secondary button) "Open in Explore" (or is this "Edit chart" now?)
    • (right/primary button) "Close"

@kasiazjc
Copy link
Contributor

kasiazjc commented May 23, 2022

Loving this!!

Capturing a few UI/UX change requests that have come up in design feedback (CC @kasiazjc ❤️ )

  • In the modal header, instead of "View Results" maybe we could get more specific, like one of these:

    • {Name} Data
    • {Name} Results
    • Chart Data: {Name}
    • ... or others?
  • In the footer of the modal, can we add two buttons?

    • (left/secondary button) "Open in Explore" (or is this "Edit chart" now?)
    • (right/primary button) "Close"

Thanks @rusackas for adding those and @zhaoyongjie for working on it ❤️

Following up:

  1. I think we should definitely add a footer, the secondary button would be "edit chart"
  2. The best title would probably be your third idea "Chart data: {Name}", because if the chart has a still long name users will still be able to see the context as it's right at the beginning!

@villebro
Copy link
Member

I also really love this feature! This will also be the perfect mechanism for showing raw data underlying a highlighted slice on a chart (project Drill Down)

@codecov
Copy link

codecov bot commented Jun 3, 2022

Codecov Report

Merging #20144 (d50e809) into master (7faf874) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head d50e809 differs from pull request most recent head 5f4a5a0. Consider uploading reports for the commit 5f4a5a0 to get more accurate results

@@           Coverage Diff           @@
##           master   #20144   +/-   ##
=======================================
  Coverage   66.64%   66.64%           
=======================================
  Files        1729     1729           
  Lines       64903    64904    +1     
  Branches     6841     6842    +1     
=======================================
+ Hits        43255    43257    +2     
  Misses      19897    19897           
+ Partials     1751     1750    -1     
Flag Coverage Δ
javascript 51.56% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...dashboard/components/SliceHeaderControls/index.tsx 64.28% <100.00%> (+0.43%) ⬆️
superset-frontend/src/components/Modal/Modal.tsx 88.05% <0.00%> (+1.49%) ⬆️

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 7faf874...5f4a5a0. Read the comment docs.

@zhaoyongjie
Copy link
Member Author

/testenv up

@github-actions
Copy link
Contributor

github-actions bot commented Jun 3, 2022

@zhaoyongjie Ephemeral environment spinning up at http://35.167.214.140:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

Copy link
Member

@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!

@jinghua-qa
Copy link
Member

LGTM!

Copy link
Member

@jinghua-qa jinghua-qa left a comment

Choose a reason for hiding this comment

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

QA tested and LGTM

rebase master

change title

remove unused
@zhaoyongjie zhaoyongjie merged commit 41f33a3 into apache:master Jun 5, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jun 5, 2022

Ephemeral environment shutdown and build artifacts deleted.

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 labels Mar 13, 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 need:qa-review Requires QA review size/M 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants