-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Infra server NP shim + config/routing API adoption #45299
Merged
jasonrhodes
merged 84 commits into
elastic:master
from
jasonrhodes:logs-ui-server-np-shim
Dec 6, 2019
Merged
Changes from all commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
735f57e
Basic cleanup before refactoring for shim work
jasonrhodes d46a6ab
shim WIP
jasonrhodes 6407924
Removes the configuration adapter
jasonrhodes 51fc360
WIP more stuff
jasonrhodes dd83941
WIP refactoring of shimming work
jasonrhodes 0ad3df3
WIP continues
jasonrhodes c5eb8cc
Logging UI now runs on top of new platform shim
jasonrhodes b9413b2
WIP continues
jasonrhodes cda2d41
Removes unused imports and variables
jasonrhodes 49b0d7e
Basic infra NP server shim in place
jasonrhodes 1ef3408
Reimplemented graphql http error handling for infra NP server shim
jasonrhodes 9d01529
Adds new platform infra plugin to handle NP config for legacy server …
jasonrhodes daea0e6
Basic cleanup before refactoring for shim work
jasonrhodes 3cacf78
shim WIP
jasonrhodes 188e947
Removes the configuration adapter
jasonrhodes 222d7e5
WIP more stuff
jasonrhodes f599939
WIP refactoring of shimming work
jasonrhodes b594898
WIP continues
jasonrhodes 8502516
Logging UI now runs on top of new platform shim
jasonrhodes 51b5e8f
WIP continues
jasonrhodes e12cbbd
Removes unused imports and variables
jasonrhodes b07fcf3
Basic infra NP server shim in place
jasonrhodes bdc1c31
Reimplemented graphql http error handling for infra NP server shim
jasonrhodes a73b778
Adds new platform infra plugin to handle NP config for legacy server …
jasonrhodes 8e00bfd
Adds comment about duplicating full config for NP config
jasonrhodes 42cf3e5
Use New Platform features plugin to registerFeature()
Kerry350 f3bd21d
Fixing merge conflicts from collaboration
jasonrhodes 9982b9f
Re-arranging and relying on request context as uch as possible
jasonrhodes 4b7a649
Refactors KibanaRequest for RequestHandlerContext
jasonrhodes 645fa97
fixes types for callWithRequest
jasonrhodes 208dadf
Moves callWithRequest method override types directly into class to ge…
jasonrhodes 07ad280
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
jasonrhodes 2cd167a
Fixes callWithRequest framework types
jasonrhodes f530de1
Removes a few NP_TODO comments
jasonrhodes c19a066
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 1f0e119
Fix broken imports
Kerry350 d9e6162
Ensure GraphQL resolvers are actually passed requestContext and not t…
Kerry350 de9610e
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 6319c1d
Remove the legacy traces of the savedObjects plugin
Kerry350 4979eab
Fixes TSVB access with NP raw requests and requestContext
Kerry350 dbcc3aa
Remove unused getUiSettingsService (moved to requestContext)
Kerry350 3ebba32
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 dce7b93
Migrate to new Spaces plugin
Kerry350 96d8940
Fix calculateMetricInterval after merged changes
Kerry350 c18b71d
Reinstate and migrate the infrastructure metadata route
Kerry350 01fb737
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 eb1d0a2
Fix various type check errors
Kerry350 b9565ed
Amend InfraSources lib unit tests
Kerry350 fa8ddba
Amend MetricsExplorer API response
Kerry350 4ffa82d
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 d3f23b7
Remove GraphQLI references from feature controls tests
Kerry350 410fd43
Remove other GraphiQL references
Kerry350 5d76435
Fix security / access issue
Kerry350 5ca1e3b
Add a framework level registerRoute method which always adds access t…
Kerry350 1805b06
*Temp* disable test
Kerry350 476734e
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 f76b126
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 f8723b4
Merge branch 'master' into logs-ui-server-np-shim
elasticmachine 9267618
Merge branch 'logs-ui-server-np-shim' of github.com:jasonrhodes/kiban…
Kerry350 67d6083
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 32588c9
Migrate the log rate validation endpoint to the new platform
Kerry350 ec8bc6d
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 7028227
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
jasonrhodes 2d2df6d
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 733e62a
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 e0c8c1d
Amend types
Kerry350 eab1272
Merge branch 'logs-ui-server-np-shim' of github.com:jasonrhodes/kiban…
jasonrhodes 17c6990
Example of how to expose APM get indices method in NP
jasonrhodes 521d245
Fix calls to TSVB bug caused by object mutation
Kerry350 294ffef
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 3a41dd8
Converts getApmIndices function to accept saved object client, implem…
jasonrhodes 21a6cee
Merge branch 'logs-ui-server-np-shim' of github.com:jasonrhodes/kiban…
jasonrhodes a384c5e
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 79051b0
Merge branch 'logs-ui-server-np-shim' of github.com:jasonrhodes/kiban…
Kerry350 85fae62
Fix APM setup_request tests
Kerry350 5e0cd63
Fixes some unused references for linting
jasonrhodes 7271327
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 6373386
Migrate all work from #50730 to NP
Kerry350 46591d0
Remove duplicate declaration files for rison_node and add a single so…
Kerry350 c122f94
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
jasonrhodes caba63f
Merge remote-tracking branch 'upstream/master' into logs-ui-server-np…
Kerry350 e03770f
Moved type file back into infra plugin to bypass strange break
jasonrhodes 78150b4
Merge branch 'logs-ui-server-np-shim' of github.com:jasonrhodes/kiban…
jasonrhodes 6f37fec
Updates apm indices method signature per feedback from @elastic/apm-ui
jasonrhodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 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 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 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,65 @@ | ||
/* | ||
* 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 { i18n } from '@kbn/i18n'; | ||
|
||
export const METRICS_FEATURE = { | ||
id: 'infrastructure', | ||
name: i18n.translate('xpack.infra.featureRegistry.linkInfrastructureTitle', { | ||
defaultMessage: 'Infrastructure', | ||
}), | ||
icon: 'infraApp', | ||
navLinkId: 'infra:home', | ||
app: ['infra', 'kibana'], | ||
catalogue: ['infraops'], | ||
privileges: { | ||
all: { | ||
api: ['infra'], | ||
savedObject: { | ||
all: ['infrastructure-ui-source'], | ||
read: ['index-pattern'], | ||
}, | ||
ui: ['show', 'configureSource', 'save'], | ||
}, | ||
read: { | ||
api: ['infra'], | ||
savedObject: { | ||
all: [], | ||
read: ['infrastructure-ui-source', 'index-pattern'], | ||
}, | ||
ui: ['show'], | ||
}, | ||
}, | ||
}; | ||
|
||
export const LOGS_FEATURE = { | ||
id: 'logs', | ||
name: i18n.translate('xpack.infra.featureRegistry.linkLogsTitle', { | ||
defaultMessage: 'Logs', | ||
}), | ||
icon: 'loggingApp', | ||
navLinkId: 'infra:logs', | ||
app: ['infra', 'kibana'], | ||
catalogue: ['infralogging'], | ||
privileges: { | ||
all: { | ||
api: ['infra'], | ||
savedObject: { | ||
all: ['infrastructure-ui-source'], | ||
read: [], | ||
}, | ||
ui: ['show', 'configureSource', 'save'], | ||
}, | ||
read: { | ||
api: ['infra'], | ||
savedObject: { | ||
all: [], | ||
read: ['infrastructure-ui-source'], | ||
}, | ||
ui: ['show'], | ||
}, | ||
}, | ||
}; |
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll clean this up on the followup branch we have 👍