-
Notifications
You must be signed in to change notification settings - Fork 16.1k
feat(Chart): Save Chart State globally #35343
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(Chart): Save Chart State globally #35343
Conversation
…andrusoare/feat/chart-state-save
|
Based on your review schedule, I'll hold off on reviewing this PR until it's marked as ready for review. If you'd like me to take a look now, comment
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #35343 +/- ##
===========================================
+ Coverage 0 71.04% +71.04%
===========================================
Files 0 605 +605
Lines 0 44224 +44224
Branches 0 4785 +4785
===========================================
+ Hits 0 31420 +31420
- Misses 0 11559 +11559
- Partials 0 1245 +1245
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…andrusoare/feat/chart-state-save
…andrusoare/feat/chart-state-save
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
| Category | Issue | Status |
|---|---|---|
| High Redux State Coupling ▹ view | ✅ Fix detected | |
| Missing default value for is_ag_grid_chart boolean field ▹ view | ✅ Fix detected | |
| Chart state tightly coupled to AgGrid ▹ view | ✅ Fix detected | |
| Violation of Single Responsibility Principle ▹ view | ✅ Fix detected | |
| Unused gridRef prop creates broken external API access ▹ view | ||
| Missing parameter validation in updateChartState ▹ view | ||
| Unwired chart state callback ▹ view | ✅ Fix detected |
Files scanned
| File Path | Reviewed |
|---|---|
| superset/dashboards/permalink/types.py | ✅ |
| superset/dashboards/permalink/schemas.py | ✅ |
| superset-frontend/src/dashboard/types/chartState.ts | ✅ |
| superset-frontend/src/embedded/api.tsx | ✅ |
| superset-frontend/src/dashboard/components/menu/ShareMenuItems/index.tsx | ✅ |
| superset-frontend/src/dashboard/components/URLShortLinkButton/index.tsx | ✅ |
| superset-frontend/plugins/plugin-chart-ag-grid-table/src/types.ts | ✅ |
| superset-frontend/src/utils/urlUtils.ts | ✅ |
| superset-frontend/src/dashboard/types.ts | ✅ |
| superset-frontend/src/visualizations/presets/MainPreset.js | ✅ |
| superset-frontend/src/dashboard/reducers/dashboardState.js | ✅ |
| superset-frontend/src/embedded/index.tsx | ✅ |
| superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTableChart.tsx | ✅ |
| superset-frontend/src/dashboard/containers/DashboardPage.tsx | ✅ |
| superset-frontend/src/components/Chart/Chart.tsx | ✅ |
| superset-frontend/src/dashboard/actions/hydrate.js | ✅ |
| superset-frontend/src/components/Chart/ChartRenderer.jsx | ✅ |
| superset-frontend/plugins/plugin-chart-ag-grid-table/src/buildQuery.ts | ✅ |
| superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx | ✅ |
| superset-frontend/plugins/plugin-chart-ag-grid-table/src/transformProps.ts | ✅ |
| superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.jsx | ✅ |
| superset-frontend/src/dashboard/actions/dashboardState.js | ✅ |
| superset/charts/schemas.py | ✅ |
| superset/connectors/sqla/models.py | ✅ |
| superset/models/helpers.py | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
superset-frontend/src/dashboard/components/URLShortLinkButton/index.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-ag-grid-table/src/buildQuery.ts
Outdated
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.jsx
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.jsx
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/menu/ShareMenuItems/index.tsx
Outdated
Show resolved
Hide resolved
…andrusoare/feat/chart-state-save
superset-frontend/plugins/plugin-chart-ag-grid-table/src/AgGridTable/index.tsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.jsx
Outdated
Show resolved
Hide resolved
superset-frontend/src/dashboard/components/gridComponents/Chart/Chart.jsx
Outdated
Show resolved
Hide resolved
|
🎪 Showtime deployed environment on GHA for bc1a717 • Environment: http://35.166.24.243:8080 (admin/admin) |
|
@kgabryje This workflow is deprecated! Please use the new Superset Showtime system instead:
Processing your ephemeral environment request here. Action: up. More information on how to use or configure ephemeral environments |
|
@kgabryje Ephemeral environment spinning up at http://50.112.177.10:8080. Credentials are 'admin'/'admin'. Please allow several minutes for bootstrapping and startup. |
I am not able to add a video as there a current limit of 10MB of video uploads, I uploaded some screenshots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well
|
LGTM !! |
SUMMARY
The changes you do in a dashboard for a chart (reorder columns, hide columns, filters etc) should be saved.
FEATURE_AG_GRID_TABLE_ENABLED=true
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
BEFORE
AFTER
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION