Skip to content

Commit

Permalink
Remove notifications service from kibana_logic
Browse files Browse the repository at this point in the history
It is not needed anymore since we're initializing security components with notifications already provided
  • Loading branch information
yakhinvadim committed Jun 8, 2021
1 parent ebc2753 commit 140cd91
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import { mockHistory } from './react_router_history.mock';

import { notificationServiceMock } from '../../../../../../src/core/public/mocks';
import { chartPluginMock } from '../../../../../../src/plugins/charts/public/mocks';
import { securityMock } from '../../../../security/public/mocks';

Expand All @@ -20,7 +19,6 @@ export const mockKibanaValues = {
},
history: mockHistory,
navigateToUrl: jest.fn(),
notifications: notificationServiceMock.createStartContract(),
security: securityMock.createStart(),
setBreadcrumbs: jest.fn(),
setChromeIsVisible: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const renderApp = (
cloud: plugins.cloud || {},
history: params.history,
navigateToUrl: core.application.navigateToUrl,
notifications: core.notifications,
security: plugins.security || {},
setBreadcrumbs: core.chrome.setBreadcrumbs,
setChromeIsVisible: core.chrome.setIsVisible,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import { FC } from 'react';
import { History } from 'history';
import { kea, MakeLogicType } from 'kea';

import {
ApplicationStart,
ChromeBreadcrumb,
NotificationsStart,
} from '../../../../../../../src/core/public';
import { ApplicationStart, ChromeBreadcrumb } from '../../../../../../../src/core/public';
import { ChartsPluginStart } from '../../../../../../../src/plugins/charts/public';
import { CloudSetup } from '../../../../../cloud/public';
import { SecurityPluginStart } from '../../../../../security/public';
Expand All @@ -28,7 +24,6 @@ interface KibanaLogicProps {
cloud: Partial<CloudSetup>;
charts: ChartsPluginStart;
navigateToUrl: ApplicationStart['navigateToUrl'];
notifications: NotificationsStart;
security: Partial<SecurityPluginStart>;
setBreadcrumbs(crumbs: ChromeBreadcrumb[]): void;
setChromeIsVisible(isVisible: boolean): void;
Expand All @@ -54,7 +49,6 @@ export const KibanaLogic = kea<MakeLogicType<KibanaValues>>({
},
{},
],
notifications: [props.notifications, {}],
security: [props.security || {}, {}],
setBreadcrumbs: [props.setBreadcrumbs, {}],
setChromeIsVisible: [props.setChromeIsVisible, {}],
Expand Down

0 comments on commit 140cd91

Please sign in to comment.