Skip to content

Commit 736ad8e

Browse files
[Background search] Remove unused code (#240405)
## Summary Closes #240226 - Removes connected_search_session_indicator as it has been replaced by the flyout + send to background button. - Removes the documentation link as it's no longer used. - Replaces the EuiIconBackgroundTask from the background-search package for the backgroundTask icon from EUI ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) - [x] Review the [backport guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing) and apply applicable `backport:*` labels. --------- Co-authored-by: kibanamachine <[email protected]>
1 parent 50186a4 commit 736ad8e

File tree

33 files changed

+5
-1935
lines changed

33 files changed

+5
-1935
lines changed

src/platform/packages/shared/kbn-background-search/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
*/
99

1010
export { BackgroundSearchRestoredCallout } from './src/components';
11-
export { EuiIconBackgroundTask } from './src/components';

src/platform/packages/shared/kbn-background-search/src/components/eui_icon_background_task.tsx

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/platform/packages/shared/kbn-background-search/src/components/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
*/
99

1010
export { BackgroundSearchRestoredCallout } from './background_search_restored_callout';
11-
export { EuiIconBackgroundTask } from './eui_icon_background_task';

src/platform/plugins/shared/dashboard/public/dashboard_app/top_nav/use_dashboard_menu_items.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import type { TopNavMenuData } from '@kbn/navigation-plugin/public';
1515
import { useBatchedPublishingSubjects } from '@kbn/presentation-publishing';
1616

1717
import useObservable from 'react-use/lib/useObservable';
18-
import { EuiIconBackgroundTask } from '@kbn/background-search';
1918
import { UI_SETTINGS } from '../../../common/constants';
2019
import { useDashboardApi } from '../../dashboard_api/use_dashboard_api';
2120
import { confirmDiscardUnsavedChanges } from '../../dashboard_listing/confirm_overlays';
@@ -195,8 +194,7 @@ export const useDashboardMenuItems = ({
195194
backgroundSearch: {
196195
...topNavStrings.backgroundSearch,
197196
id: 'backgroundSearch',
198-
// TODO: Replace when the backgroundTask icon is available in EUI
199-
iconType: EuiIconBackgroundTask,
197+
iconType: 'backgroundTask',
200198
iconOnly: true,
201199
testId: 'openBackgroundSearchFlyoutButton',
202200
run: () =>

src/platform/plugins/shared/dashboard/tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@
9191
"@kbn/controls-schemas",
9292
"@kbn/controls-constants",
9393
"@kbn/presentation-util",
94-
"@kbn/background-search",
9594
"@kbn/react-query"
9695
],
9796
"exclude": ["target/**/*"]

src/platform/plugins/shared/data/public/search/session/search_sessions_deprecation_message.tsx

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)