Skip to content

Commit c547a81

Browse files
Remove legacy ui-apps-mixin (#76604)
* remove ui_nav_links * remove remove-ui-apps-mixin Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
1 parent c402e51 commit c547a81

File tree

13 files changed

+6
-1015
lines changed

13 files changed

+6
-1015
lines changed

src/legacy/server/kbn_server.d.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ import { HomeServerPluginSetup } from '../../plugins/home/server';
5050
// lot of legacy code was assuming this type only had these two methods
5151
export type KibanaConfig = Pick<LegacyConfig, 'get' | 'has'>;
5252

53-
export interface UiApp {
54-
getId(): string;
55-
}
56-
5753
// Extend the defaults with the plugins and server methods we need.
5854
declare module 'hapi' {
5955
interface PluginProperties {
@@ -66,13 +62,6 @@ declare module 'hapi' {
6662
interface Server {
6763
config: () => KibanaConfig;
6864
savedObjects: SavedObjectsLegacyService;
69-
injectUiAppVars: (pluginName: string, getAppVars: () => { [key: string]: any }) => void;
70-
getHiddenUiAppById(appId: string): UiApp;
71-
addScopedTutorialContextFactory: (
72-
scopedTutorialContextFactory: (...args: any[]) => any
73-
) => void;
74-
getInjectedUiAppVars: (pluginName: string) => { [key: string]: any };
75-
getUiNavLinks(): Array<{ _id: string }>;
7665
logWithMetadata: (tags: string[], message: string, meta: Record<string, any>) => void;
7766
newPlatform: KbnServer['newPlatform'];
7867
}
@@ -82,10 +71,6 @@ declare module 'hapi' {
8271
getBasePath(): string;
8372
getUiSettingsService(): IUiSettingsClient;
8473
}
85-
86-
interface ResponseToolkit {
87-
renderAppWithDefaultConfig(app: UiApp): ResponseObject;
88-
}
8974
}
9075

9176
type KbnMixinFunc = (kbnServer: KbnServer, server: Server, config: any) => Promise<any> | void;

src/legacy/ui/ui_apps/__snapshots__/ui_apps_mixin.test.js.snap

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

0 commit comments

Comments
 (0)