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)

@zhaoyongjie zhaoyongjie force-pushed the datapane_in_dashboard branch from 493b719 to 1005c44 Compare May 26, 2022 11:10
@zhaoyongjie zhaoyongjie force-pushed the datapane_in_dashboard branch from 0203dd4 to eb1ec85 Compare May 26, 2022 14:29
@pull-request-size pull-request-size bot added size/L and removed size/M labels May 31, 2022
@zhaoyongjie zhaoyongjie force-pushed the datapane_in_dashboard branch from 4caf378 to 0036284 Compare June 1, 2022 12:52
@pull-request-size pull-request-size bot added size/M and removed size/L labels Jun 1, 2022
@jinghua-qa jinghua-qa added the need:qa-review Requires QA review label Jun 2, 2022
@zhaoyongjie zhaoyongjie force-pushed the datapane_in_dashboard branch from 0036284 to ebb6f63 Compare June 3, 2022 01:54
@zhaoyongjie zhaoyongjie marked this pull request as ready for review June 3, 2022 01:55
@zhaoyongjie zhaoyongjie requested review from kgabryje, rusackas, a team and jinghua-qa June 3, 2022 01:56
@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 force-pushed the datapane_in_dashboard branch from 06da194 to 5f4a5a0 Compare June 5, 2022 13:51
@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.

7 participants