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: Table time comparison breaking after form data update #29525

Merged
merged 2 commits into from
Jul 9, 2024

Conversation

kgabryje
Copy link
Member

@kgabryje kgabryje commented Jul 9, 2024

SUMMARY

PR #28312 introduced an issue in time comparison feature in Table viz plugin.
This PR swaps visibility to hidden in time comparison controls, so that their values would not get removed from form data.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

Screen.Recording.2024-07-09.at.11.52.53.mov

After:

Screen.Recording.2024-07-09.at.11.51.19.mov

TESTING INSTRUCTIONS

  1. Create a table chart with time comparison
  2. Change time comparison
  3. Verify that time comparison columns are still present.

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

@dosubot dosubot bot added the viz:charts:table Related to the Table chart label Jul 9, 2024
@@ -203,4 +203,60 @@ describe('ControlPanelsContainer', () => {
'percent_metrics',
);
});

test('hidden state of controls is correctly applied', async () => {

Choose a reason for hiding this comment

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

❤️

Copy link
Member

@Antonio-RiveroMartnez Antonio-RiveroMartnez left a comment

Choose a reason for hiding this comment

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

Great!

@kgabryje kgabryje merged commit 3d06651 into apache:master Jul 9, 2024
34 checks passed
@michael-s-molina michael-s-molina added the review:checkpoint Last PR reviewed during the daily review standup label Jul 9, 2024
@rusackas rusackas removed the review:checkpoint Last PR reviewed during the daily review standup label Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages size/M viz:charts:table Related to the Table chart
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants