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(table): Table with Time Comparison #28057

Conversation

Antonio-RiveroMartnez
Copy link
Member

@Antonio-RiveroMartnez Antonio-RiveroMartnez commented Apr 16, 2024

SUMMARY

As part of the Time Comparison efforts, we are adding the new controls to the table viz.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

  1. Set up a table viz using the new time comparison controls

ADDITIONAL INFORMATION

  • Has associated issue: [SIP-119] Table Visualizations with Time Comparison Data #27432
  • 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

@Smallhi
Copy link

Smallhi commented Apr 19, 2024

@Antonio-RiveroMartnez can this feature support PIVOT TABLE ? I tested and found not.

@Antonio-RiveroMartnez
Copy link
Member Author

@Antonio-RiveroMartnez can this feature support PIVOT TABLE ? I tested and found not.

Hey @Smallhi , so far it's not part of the pivot table as you pointed out. Once merged we can consider bringing this to other visualizations like pivot etc, thanks for asking.

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://34.217.78.9:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://35.91.233.244:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@lilykuang
Copy link
Member

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@lilykuang Ephemeral environment spinning up at http://34.219.209.117:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://35.94.33.211:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://34.219.149.143:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://34.219.156.16:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@lilykuang lilykuang force-pushed the table-time-comparison-offset branch 3 times, most recently from 7ebe84d to 1ffef74 Compare April 26, 2024 04:21
@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://54.218.71.76:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@codecov-commenter
Copy link

codecov-commenter commented Apr 30, 2024

Codecov Report

Attention: Patch coverage is 42.90844% with 318 lines in your changes missing coverage. Please review.

Project coverage is 67.19%. Comparing base (76d897e) to head (7c262ef).
Report is 302 commits behind head on master.

Files Patch % Lines
...d/plugins/plugin-chart-table/src/transformProps.ts 22.58% 83 Missing and 13 partials ⚠️
...tend/plugins/plugin-chart-table/src/TableChart.tsx 24.24% 62 Missing and 13 partials ⚠️
.../explore/components/controls/TimeOffsetControl.tsx 1.42% 69 Missing ⚠️
...plore/components/controls/ComparisonRangeLabel.tsx 13.63% 19 Missing ⚠️
...ntend/plugins/plugin-chart-table/src/buildQuery.ts 45.16% 10 Missing and 7 partials ⚠️
...nd/plugins/plugin-chart-table/src/controlPanel.tsx 15.38% 10 Missing and 1 partial ⚠️
...Number/BigNumberPeriodOverPeriod/transformProps.ts 0.00% 9 Missing ⚠️
...onalFormattingControl/FormattingPopoverContent.tsx 10.00% 9 Missing ⚠️
.../BigNumber/BigNumberPeriodOverPeriod/buildQuery.ts 0.00% 7 Missing ⚠️
...ins/plugin-chart-table/src/DataTable/DataTable.tsx 25.00% 0 Missing and 3 partials ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #28057      +/-   ##
==========================================
+ Coverage   60.48%   67.19%   +6.70%     
==========================================
  Files        1931     1957      +26     
  Lines       76236    77825    +1589     
  Branches     8568     8940     +372     
==========================================
+ Hits        46114    52293    +6179     
+ Misses      28017    23342    -4675     
- Partials     2105     2190      +85     
Flag Coverage Δ
hive ?
javascript 57.78% <42.90%> (+0.06%) ⬆️
presto ?
unit ?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up

@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://34.215.152.130:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

- Handle nullish case when parsing dates so we can fix test cases
@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://34.210.222.153:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

- Handle relative single dates
- Adjust tests
@Antonio-RiveroMartnez
Copy link
Member Author

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@Antonio-RiveroMartnez Ephemeral environment spinning up at http://52.89.241.120:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

# Conflicts:
#	superset-frontend/src/explore/components/controls/ConditionalFormattingControl/FormattingPopoverContent.tsx
@lilykuang lilykuang force-pushed the table-time-comparison-offset branch from 918c6cd to fdcaea4 Compare June 10, 2024 16:53
Antonio-RiveroMartnez and others added 6 commits June 10, 2024 21:59
- Fix Relatives dates
- Reset Custom date picker when date is invalid after switching from inherit
- Handle custom ranges
- Add tests to changes in shift calculation
- Use timezone-mock so we can use different timezones in our tests and be certain things are working as expected

Note:

This is duplicating a method from controls, we must replace it entirely it and move to ui-core instead, but that should probably be a follow up commit
# Conflicts:
#	superset-frontend/plugins/plugin-chart-table/src/transformProps.ts
- fix lint
- move all customTimeRangeDecode references to superset-ui
@lilykuang lilykuang force-pushed the table-time-comparison-offset branch from 3da32e7 to 7c262ef Compare June 12, 2024 02:08
@lilykuang
Copy link
Member

/testenv up FEATURE_CHART_PLUGINS_EXPERIMENTAL=true

Copy link
Contributor

@lilykuang Ephemeral environment spinning up at http://34.220.222.238:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@Antonio-RiveroMartnez Antonio-RiveroMartnez merged commit 7ddea62 into apache:master Jun 14, 2024
39 checks passed
Copy link
Contributor

Ephemeral environment shutdown and build artifacts deleted.

eschutho pushed a commit that referenced this pull request Jul 24, 2024
Co-authored-by: Lily Kuang <[email protected]>
Co-authored-by: lilykuang <[email protected]>
Co-authored-by: Kamil Gabryjelski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants