mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat(native-filters): Hide filters which don't affect any visible charts (#15063)
* feat(native-filters): Hide filters which don't affect any visible charts * Fix lint errors * Add comments * Code review fix * Fix tests * Refactor logic in FilterControls
This commit is contained in:
committed by
GitHub
parent
5e825cf063
commit
51f0d4fd98
@@ -50,21 +50,21 @@ jest.mock('src/dashboard/actions/dashboardState');
|
||||
|
||||
describe('DashboardBuilder', () => {
|
||||
let favStarStub;
|
||||
let focusedTabStub;
|
||||
let activeTabsStub;
|
||||
|
||||
beforeAll(() => {
|
||||
// this is invoked on mount, so we stub it instead of making a request
|
||||
favStarStub = sinon
|
||||
.stub(dashboardStateActions, 'fetchFaveStar')
|
||||
.returns({ type: 'mock-action' });
|
||||
focusedTabStub = sinon
|
||||
.stub(dashboardStateActions, 'setLastFocusedTab')
|
||||
activeTabsStub = sinon
|
||||
.stub(dashboardStateActions, 'setActiveTabs')
|
||||
.returns({ type: 'mock-action' });
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
favStarStub.restore();
|
||||
focusedTabStub.restore();
|
||||
activeTabsStub.restore();
|
||||
});
|
||||
|
||||
function setup(overrideState = {}, overrideStore) {
|
||||
|
||||
Reference in New Issue
Block a user