optimize loading questions only for active tab (#31578)
* only load cards and metadata for current dashboard tab
* add e2e test
* refactor
* more refactoring
* fix filters not working
* update e2e test
* fix bug with x-rays
* add dashboard_tab_id to automagic-dashboard response
* use schema check instead
* fix on public dashboards
* remove FE x-ray fix now that BE is fixed
* add test for public dashboards
* fix duplicate request for public dashboards
* fix notification bug
* fix failing unit tests in `reducers.unit.spec.js`
---------
Co-authored-by:
Ngoc Khuat <qn.khuat@gmail.com>
Showing
- e2e/support/helpers/e2e-misc-helpers.js 7 additions, 1 deletione2e/support/helpers/e2e-misc-helpers.js
- e2e/test/scenarios/dashboard/tabs.cy.spec.js 66 additions, 0 deletionse2e/test/scenarios/dashboard/tabs.cy.spec.js
- frontend/src/metabase/dashboard/actions/data-fetching.js 42 additions, 6 deletionsfrontend/src/metabase/dashboard/actions/data-fetching.js
- frontend/src/metabase/dashboard/components/Dashboard/Dashboard.jsx 12 additions, 1 deletion...src/metabase/dashboard/components/Dashboard/Dashboard.jsx
- frontend/src/metabase/dashboard/reducers.js 19 additions, 16 deletionsfrontend/src/metabase/dashboard/reducers.js
- frontend/src/metabase/dashboard/reducers.unit.spec.js 1 addition, 1 deletionfrontend/src/metabase/dashboard/reducers.unit.spec.js
- frontend/src/metabase/public/containers/PublicDashboard.jsx 9 additions, 1 deletionfrontend/src/metabase/public/containers/PublicDashboard.jsx
- src/metabase/automagic_dashboards/comparison.clj 29 additions, 28 deletionssrc/metabase/automagic_dashboards/comparison.clj
- src/metabase/automagic_dashboards/populate.clj 31 additions, 22 deletionssrc/metabase/automagic_dashboards/populate.clj
- test/metabase/api/automagic_dashboards_test.clj 18 additions, 1 deletiontest/metabase/api/automagic_dashboards_test.clj
Loading
Please register or sign in to comment