Lock :display when using 'zoom' in Dashboard (#38496)
* Use proper :display when using 'zoom' in Dashboard
Fixes: #38307
WIP, I want to change at a different call site so that defaults are still used in case there is no :display set.
* Lock Display so that drill through doesn't overwrite it with defaults
* Lock display only when drill action coming from a dashboard
* Use isDashboard properly
* Add test to confirm Display is locked from Dashboards
* minor changes to the test
* Lock Display specifically for zoom-in-binning and timeseries
* Fix wrong string quotes
* Try a simple change to see if the e2e test will pass in CI
* Fix test
* Minor refactor
* Wait for dashcard queries in e2e test
* Wait for loading spinner to be gone
* Fix type errors
* Fix incorrect dashboard ID used in test
---------
Co-authored-by:
Anton Kulyk <kuliks.anton@gmail.com>
Showing
- e2e/test/scenarios/dashboard-cards/dashboard-drill.cy.spec.js 36 additions, 0 deletions...test/scenarios/dashboard-cards/dashboard-drill.cy.spec.js
- frontend/src/metabase/querying/utils/drills/zoom-in-binning-drill/zoom-in-binning-drill.ts 8 additions, 1 deletion...ils/drills/zoom-in-binning-drill/zoom-in-binning-drill.ts
- frontend/src/metabase/querying/utils/drills/zoom-in-timeseries-drill/zoom-in-timeseries-drill.ts 9 additions, 4 deletions...ills/zoom-in-timeseries-drill/zoom-in-timeseries-drill.ts
Please register or sign in to comment