Skip to content

Commit 8ec37f5

Browse files
committed
1 parent 0997398 commit 8ec37f5

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

x-pack/plugins/dashboard_enhanced/public/services/drilldowns/actions/flyout_create_drilldown/flyout_create_drilldown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class FlyoutCreateDrilldownAction implements ActionByType<typeof OPEN_FLY
7171
),
7272
{
7373
ownFocus: true,
74-
'data-test-subj': 'dashboardCreateDrilldownFlyout',
74+
'data-test-subj': 'createDrilldownFlyout',
7575
}
7676
);
7777
}

x-pack/plugins/dashboard_enhanced/public/services/drilldowns/actions/flyout_edit_drilldown/flyout_edit_drilldown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class FlyoutEditDrilldownAction implements ActionByType<typeof OPEN_FLYOU
6969
),
7070
{
7171
ownFocus: true,
72-
'data-test-subj': 'dashboardEditDrilldownFlyout',
72+
'data-test-subj': 'editDrilldownFlyout',
7373
}
7474
);
7575
}

x-pack/plugins/dashboard_enhanced/public/services/drilldowns/dashboard_to_dashboard_drilldown/components/collect_config_container.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ interface CollectConfigContainerState {
4949
searchString?: string;
5050
isLoading: boolean;
5151
selectedDashboard?: EuiComboBoxOptionOption<string>;
52-
error: string | null;
52+
error?: string;
5353
}
5454

5555
export class CollectConfigContainer extends React.Component<
@@ -62,7 +62,7 @@ export class CollectConfigContainer extends React.Component<
6262
isLoading: false,
6363
searchString: undefined,
6464
selectedDashboard: undefined,
65-
error: null,
65+
error: undefined,
6666
};
6767

6868
constructor(props: CollectConfigProps) {
@@ -94,7 +94,7 @@ export class CollectConfigContainer extends React.Component<
9494
onDashboardSelect={dashboardId => {
9595
onConfig({ ...config, dashboardId });
9696
if (this.state.error) {
97-
this.setState({ error: null });
97+
this.setState({ error: undefined });
9898
}
9999
}}
100100
onSearchChange={this.debouncedLoadDashboards}

x-pack/plugins/dashboard_enhanced/public/services/drilldowns/dashboard_to_dashboard_drilldown/components/dashboard_drilldown_config/dashboard_drilldown_config.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export interface DashboardDrilldownConfigProps {
2222
onKeepRangeToggle?: () => void;
2323
onSearchChange: (searchString: string) => void;
2424
isLoading: boolean;
25-
error?: string | null;
25+
error?: string;
2626
}
2727

2828
export const DashboardDrilldownConfig: React.FC<DashboardDrilldownConfigProps> = ({

x-pack/plugins/dashboard_enhanced/public/services/drilldowns/dashboard_to_dashboard_drilldown/drilldown.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe('.execute() & getHref', () => {
164164
expect(href).toEqual(expect.stringContaining(`dashboard/${testDashboardId}`));
165165
});
166166

167-
test('query is removed with query if filters are disabled', async () => {
167+
test('query is removed if filters are disabled', async () => {
168168
const queryString = 'querystring';
169169
const queryLanguage = 'kuery';
170170
const { href } = await setupTestBed(

x-pack/test/functional/services/dashboard/drilldowns_manage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import { FtrProviderContext } from '../../ftr_provider_context';
88

9-
const CREATE_DRILLDOWN_FLYOUT_DATA_TEST_SUBJ = 'dashboardCreateDrilldownFlyout';
10-
const MANAGE_DRILLDOWNS_FLYOUT_DATA_TEST_SUBJ = 'dashboardEditDrilldownFlyout';
9+
const CREATE_DRILLDOWN_FLYOUT_DATA_TEST_SUBJ = 'createDrilldownFlyout';
10+
const MANAGE_DRILLDOWNS_FLYOUT_DATA_TEST_SUBJ = 'editDrilldownFlyout';
1111
const DASHBOARD_TO_DASHBOARD_ACTION_LIST_ITEM =
1212
'actionFactoryItem-DASHBOARD_TO_DASHBOARD_DRILLDOWN';
1313
const DASHBOARD_TO_DASHBOARD_ACTION_WIZARD =

0 commit comments

Comments
 (0)