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: drill by display chart #23524

Merged
merged 9 commits into from
Apr 4, 2023
Merged

Conversation

lilykuang
Copy link
Member

@lilykuang lilykuang commented Mar 29, 2023

SUMMARY

  • Displaying a chart in the drill by modal using the original chart's form data

BEFORE/AFTER SCREENSHOTS OR ANIMATE

Screen.Recording.2023-03-31.at.11.10.10.AM.mov

TESTING INSTRUCTIONS

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

@lilykuang lilykuang requested a review from kgabryje March 29, 2023 22:33
@lilykuang lilykuang changed the title feat[drill-by]: display chart (WIP) feat(drill-by): display chart (WIP) Mar 29, 2023
@lilykuang lilykuang changed the title feat(drill-by): display chart (WIP) feat: drill by display chart (WIP) Mar 29, 2023
>
{chartDataResult ? (
<SuperChart
behaviors={[Behavior.INTERACTIVE_CHART]}
Copy link
Member

Choose a reason for hiding this comment

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

INTERACTIVE_CHART is for cross filters, and in the drill by modal we only want to support further drill by... but let's leave it for a separate pr to clean up 🙂

@lilykuang lilykuang requested a review from kgabryje April 3, 2023 05:11
@lilykuang lilykuang changed the title feat: drill by display chart (WIP) feat: drill by display chart Apr 3, 2023
@lilykuang lilykuang marked this pull request as ready for review April 3, 2023 05:13
@codecov
Copy link

codecov bot commented Apr 3, 2023

Codecov Report

Merging #23524 (16d814e) into master (ee9ef24) will decrease coverage by 0.07%.
The diff coverage is 74.73%.

❗ Current head 16d814e differs from pull request most recent head 2a4f26c. Consider uploading reports for the commit 2a4f26c to get more accurate results

@@            Coverage Diff             @@
##           master   #23524      +/-   ##
==========================================
- Coverage   67.68%   67.62%   -0.07%     
==========================================
  Files        1914     1916       +2     
  Lines       73962    74009      +47     
  Branches     8029     8038       +9     
==========================================
- Hits        50064    50046      -18     
- Misses      21852    21913      +61     
- Partials     2046     2050       +4     
Flag Coverage Δ
hive ?
javascript 53.93% <69.56%> (+0.02%) ⬆️

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

Impacted Files Coverage Δ
...nd/plugins/plugin-chart-table/src/controlPanel.tsx 53.03% <0.00%> (-0.82%) ⬇️
...tend/src/components/Chart/DrillBy/DrillByModal.tsx 90.90% <ø> (ø)
...nd/src/components/Chart/MenuItemWithTruncation.tsx 100.00% <ø> (ø)
...rset-frontend/src/components/Chart/chartReducer.ts 26.00% <0.00%> (+0.50%) ⬆️
...d/components/DashboardBuilder/DashboardBuilder.tsx 74.00% <ø> (-0.26%) ⬇️
...set-frontend/src/explore/actions/hydrateExplore.ts 51.06% <0.00%> (-6.08%) ⬇️
...re/controlUtils/getFormDataWithDashboardContext.ts 79.03% <ø> (+0.95%) ⬆️
superset/charts/api.py 85.71% <ø> (ø)
superset/constants.py 100.00% <ø> (ø)
.../src/components/Chart/DrillBy/DrillByMenuItems.tsx 85.24% <25.00%> (-4.23%) ⬇️
... and 17 more

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

'glob:*api/v1/chart/data?form_data=%7B%22slice_id%22%3A18%7D';

const chart = chartQueries[sliceId];
// const fetchWithData = () => {
Copy link
Member

Choose a reason for hiding this comment

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

Could you remove commented code?

expect(await screen.findByText('No Results')).toBeInTheDocument();
});

// test('should render SuperChart', async () => {
Copy link
Member

Choose a reason for hiding this comment

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

Should this test be fixed/uncommented before merging or should it be removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

I couldn't get the test to work. i will remove it

@kgabryje kgabryje merged commit 4452a65 into apache:master Apr 4, 2023
@kgabryje kgabryje deleted the lily/drill-by-chart branch April 4, 2023 11:35
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.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 size/L 🚢 3.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants