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

fix: Dashboard time grain in Table #24746

Merged

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Fixes a bug in the Table chart when reacting to dashboard Time Grain changes.

Follow-up of #24665

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before: The time grain is incorrectly calculated and you can see duplicated quarters.

Screen.Recording.2023-07-19.at.09.44.16.mov

After: The time grain is applied correctly and there's no duplication anymore.

Screen.Recording.2023-07-19.at.09.49.33.mov

TESTING INSTRUCTIONS

Make sure Table charts works as expected when reacting to dashboard Time Grain changes.

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

@michael-s-molina michael-s-molina added the v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch label Jul 19, 2023
@michael-s-molina
Copy link
Member Author

michael-s-molina commented Jul 19, 2023

@unnyns-307 @yousoph

@codecov
Copy link

codecov bot commented Jul 19, 2023

Codecov Report

Merging #24746 (0d0b94c) into master (11bb8c3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 0d0b94c differs from pull request most recent head 541ae1d. Consider uploading reports for the commit 541ae1d to get more accurate results

@@           Coverage Diff           @@
##           master   #24746   +/-   ##
=======================================
  Coverage   68.89%   68.89%           
=======================================
  Files        1901     1901           
  Lines       73927    73928    +1     
  Branches     8183     8184    +1     
=======================================
+ Hits        50932    50935    +3     
+ Misses      20874    20871    -3     
- Partials     2121     2122    +1     
Flag Coverage Δ
javascript 55.71% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
...ntend/plugins/plugin-chart-table/src/buildQuery.ts 60.00% <100.00%> (+3.75%) ⬆️

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

@michael-s-molina michael-s-molina merged commit 317aa98 into apache:master Jul 20, 2023
jinghua-qa pushed a commit to preset-io/superset that referenced this pull request Jul 21, 2023
michael-s-molina added a commit that referenced this pull request Jul 26, 2023
@mistercrunch mistercrunch added 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.1.0 labels Mar 8, 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/M v3.0 Label added by the release manager to track PRs to be included in the 3.0 branch 🍒 3.0.0 🍒 3.0.1 🍒 3.0.2 🍒 3.0.3 🍒 3.0.4 🚢 3.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants