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: hide time_grain when x_axis value is undefined #21464

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

zhaoyongjie
Copy link
Member

@zhaoyongjie zhaoyongjie commented Sep 14, 2022

SUMMARY

The Time Grain Control will be hidden when the value of X_Axis is undefined. Previously, when x_axis is undefined the Time Grain Control would be shown.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

After

image

Before

image

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

@codecov
Copy link

codecov bot commented Sep 14, 2022

Codecov Report

Merging #21464 (074bc87) into master (6e8cad3) will not change coverage.
The diff coverage is 0.00%.

❗ Current head 074bc87 differs from pull request most recent head cd9892e. Consider uploading reports for the commit cd9892e to get more accurate results

@@           Coverage Diff           @@
##           master   #21464   +/-   ##
=======================================
  Coverage   66.59%   66.59%           
=======================================
  Files        1791     1791           
  Lines       68554    68554           
  Branches     7319     7319           
=======================================
  Hits        45653    45653           
  Misses      21008    21008           
  Partials     1893     1893           
Flag Coverage Δ
javascript 52.76% <0.00%> (ø)

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

Impacted Files Coverage Δ
...et-ui-chart-controls/src/shared-controls/index.tsx 48.43% <0.00%> (ø)

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

if (xAxisValue === undefined || isAdhocColumn(xAxisValue)) {
if (isAdhocColumn(xAxisValue)) {
Copy link
Member

@villebro villebro Sep 14, 2022

Choose a reason for hiding this comment

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

Just to double check, does this work with the FF disabled? I assume this is why that check was put there.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it does. Line 329 returns true when FF is disabled.

Copy link
Member

Choose a reason for hiding this comment

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

Oh right, thanks for clarifying!

Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

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

LGTM

if (xAxisValue === undefined || isAdhocColumn(xAxisValue)) {
if (isAdhocColumn(xAxisValue)) {
Copy link
Member

Choose a reason for hiding this comment

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

Oh right, thanks for clarifying!

@zhaoyongjie zhaoyongjie merged commit ae6d2cf into apache:master Sep 14, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 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/XS 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants