-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Uptime] Migrate client to New Platform #55086
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
justinkambic
merged 58 commits into
elastic:master
from
justinkambic:uptime_migrate-client-to-np
Apr 29, 2020
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
84d3941
Move uptime legacy server to plugins directory.
justinkambic 77f0186
Merge branch 'master' into uptime_migrate-server-to-np
justinkambic a6caa0c
Re-add feature registration code.
justinkambic 66873c1
Move uptime legacy server to plugins directory.
justinkambic 4660e36
Re-add feature registration code.
justinkambic a9764c4
Move all files.
justinkambic c5bd00f
Merge branch 'master' into uptime_migrate-server-to-np
justinkambic e885abd
Merge branch 'master' into uptime_migrate-server-to-np
justinkambic 8d8e77e
Merge branch 'uptime_migrate-server-to-np' into uptime_migrate-client…
justinkambic a1d53d9
Merge master.
justinkambic 64bc7e4
Merge master.
justinkambic 824647c
WIP fixing things.
justinkambic ab9d5c9
WIP fixing things.
justinkambic b322a18
WIP fixing things.
justinkambic 9565e6a
Finished fixing server.
justinkambic 6300206
Fix alert type registration glitch.
justinkambic c50e949
Remove obsolete file.
justinkambic 5cd39dc
Fix unwanted revisions, uncomment previously un-migrated code, delete…
justinkambic 4b35b4e
More cleanup.
justinkambic d190e42
Fix all non-maps unit tests.
justinkambic ce96694
Get functional tests working.
justinkambic 805661f
Delete misplaced file.
justinkambic 624c0c4
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic 1e02b8f
Merge master.
justinkambic 49f9d25
Merge master.
justinkambic 1380d69
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic ece7b4c
Add uptime CODEOWNERS entry.
justinkambic d61f1c0
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic f3ded76
Merge master.
justinkambic 9019d1b
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic 55da8c0
Get map working in Uptime app on NP.
justinkambic f7c7830
Update CODEOWNERS to remove legacy entry.
justinkambic 1a75ae0
Update server imports.
justinkambic 9a72af4
Delete and clean up unused or redundant code/comments.
justinkambic 38c4553
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic ba164ce
Move new files from legacy to NP to fix merge error.
justinkambic d98cafb
Fix broken import.
justinkambic 21bdffc
Delete obsolete test snapshots.
justinkambic 484c3ed
Clean up imports and types, delete obsolete code.
justinkambic 8794013
Clean up redundant common imports.
justinkambic 3da60f4
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic 1c42cc8
Delete obsolete translation keys.
justinkambic 93e421c
Add additional explicit typing to plugin class.
justinkambic 159e66c
Combine redundant common imports.
justinkambic f9aee04
Delete unneeded optionalPlugin entry.
justinkambic a792b57
Merge branch 'master' into uptime_migrate-client-to-np
elasticmachine 365b915
Merge branch 'master' into uptime_migrate-client-to-np
elasticmachine d77978f
Revert "Combine redundant common imports."
justinkambic 3b9dfb2
Update a translation description.
justinkambic d9cd2f5
Merge branch 'uptime_migrate-client-to-np' of github.com:justinkambic…
justinkambic 7fff70f
Revert "Clean up redundant common imports."
justinkambic 04ce6cc
Remove new common index file and revert imports from only common to m…
justinkambic 4db4d9c
Fix broken imports in `~/x-pack/test`.
justinkambic 2c30f34
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic 8fc53eb
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic eaa40e9
Merge branch 'master' into uptime_migrate-client-to-np
justinkambic b11b4e6
Move new file from legacy to NP location.
justinkambic e467d5a
Merge branch 'master' into uptime_migrate-client-to-np
elasticmachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License; | ||
| * you may not use this file except in compliance with the Elastic License. | ||
| */ | ||
| import { LegacyCoreStart, AppMountParameters } from 'src/core/public'; | ||
| import { CoreSetup, CoreStart, Plugin, PluginInitializerContext } from 'kibana/public'; | ||
| import { UMFrontendLibs } from '../lib/lib'; | ||
| import { PLUGIN } from '../../common/constants'; | ||
| import { FeatureCatalogueCategory } from '../../../../../src/plugins/home/public'; | ||
| import { getKibanaFrameworkAdapter } from '../lib/adapters/framework/new_platform_adapter'; | ||
| import { HomePublicPluginSetup } from '../../../../../src/plugins/home/public'; | ||
| import { EmbeddableStart } from '../../../../../src/plugins/embeddable/public'; | ||
| import { TriggersAndActionsUIPublicPluginSetup } from '../../../triggers_actions_ui/public'; | ||
| import { DataPublicPluginSetup } from '../../../../../src/plugins/data/public'; | ||
|
|
||
| export interface StartObject { | ||
| core: LegacyCoreStart; | ||
| plugins: any; | ||
| } | ||
|
|
||
| export interface ClientPluginsSetup { | ||
| data: DataPublicPluginSetup; | ||
| home: HomePublicPluginSetup; | ||
| triggers_actions_ui: TriggersAndActionsUIPublicPluginSetup; | ||
| } | ||
|
|
||
| export interface ClientPluginsStart { | ||
| embeddable: EmbeddableStart; | ||
| } | ||
|
|
||
| export class UptimePlugin implements Plugin<void, void, ClientPluginsSetup, ClientPluginsStart> { | ||
| constructor(_context: PluginInitializerContext) {} | ||
|
|
||
| public async setup( | ||
| core: CoreSetup<ClientPluginsStart, unknown>, | ||
| plugins: ClientPluginsSetup | ||
| ): Promise<void> { | ||
| if (plugins.home) { | ||
| plugins.home.featureCatalogue.register({ | ||
| id: PLUGIN.ID, | ||
| title: PLUGIN.TITLE, | ||
| description: PLUGIN.DESCRIPTION, | ||
| icon: 'uptimeApp', | ||
| path: '/app/uptime#/', | ||
| showOnHomePage: true, | ||
| category: FeatureCatalogueCategory.DATA, | ||
| }); | ||
| } | ||
|
|
||
| core.application.register({ | ||
| appRoute: '/app/uptime#/', | ||
| id: PLUGIN.ID, | ||
| euiIconType: 'uptimeApp', | ||
| order: 8900, | ||
| title: PLUGIN.TITLE, | ||
| async mount(params: AppMountParameters) { | ||
| const [coreStart, corePlugins] = await core.getStartServices(); | ||
| const { element } = params; | ||
| const libs: UMFrontendLibs = { | ||
| framework: getKibanaFrameworkAdapter(coreStart, plugins, corePlugins), | ||
| }; | ||
| libs.framework.render(element); | ||
| return () => {}; | ||
| }, | ||
| }); | ||
| } | ||
|
|
||
| public start(_start: CoreStart, _plugins: {}): void {} | ||
|
|
||
| public stop(): void {} | ||
| } |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.