-
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
[Monitoring] NP migration: Local angular module #51823
Conversation
💔 Build Failed
|
x-pack/legacy/plugins/monitoring/public/np_imports/angular/index.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/monitoring/public/np_imports/angular/index.ts
Outdated
Show resolved
Hide resolved
@igoristic are you going to merge this branch and work on TODO from the title in the following PRs? I'd recommend this way instead of a long-lived branch. We can start testing earlier. |
@restrry I agree 👍 I will first address your feedback, and also fix all the tests (and linting) |
Hi @igoristic. I am just checking on this. Is there anything blocking this besides incorporating the review feedback, the tests, and the linting? |
No |
Pinging @elastic/stack-monitoring (Team:Monitoring) |
Great job, @igoristic! I will look at this ASAP. |
💔 Build Failed
|
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 will leave a thorough review of the code changes up to others but I went through the functionality of the application with this PR and I couldn't find any issues.
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 think this is looking great! Definitely a ton of work to get this all working and I'm super excited to start moving forward with this effort!
I left a few comments and will take another pass later this week
x-pack/legacy/plugins/monitoring/public/np_imports/angular/index.ts
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/monitoring/public/np_imports/angular/modules.ts
Outdated
Show resolved
Hide resolved
60f2182
to
2c14b5b
Compare
Yeah, actually I was already aware of that bug, and thought I merged the branch that fixed it. But, since there was a conflict I guess it was ignored. |
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.
Functionally, this LGTM! Great work! I don't know much about the NP migration guidelines, so I'll defer that to @restrry
ack: will check the problem tomorrow |
I didn't manage to reproduce the problem. how tested:
|
}, | ||
|
||
postInit(server: Server) { | ||
const { infra } = server.plugins as Partial<typeof server.plugins> & { infra?: InfraPlugin }; |
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.
shouldn't you declare dependency on infra
plugin?
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.
Do you mean through kibana.json
? We'll do that in the next phase when we move the client outside the legacy
directory
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.
not only, you declare dependencies on other plugins https://github.com/elastic/kibana/pull/51823/files#diff-3450f9bd06407cda6d6d9e26ddeb0e11R31-R35
'monitoring.ui.elasticsearch.hosts', | ||
'monitoring.ui.elasticsearch', | ||
'monitoring.xpack_api_polling_frequency_millis', | ||
'server.uuid', |
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.
you can already start consuming them from server.newPlatform.setup.core.http.getServerInfo
and server.newPlatform.setup.core.uuid.getInstanceUuid
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 think this will also be in the next phase, when we start using np alternatives and whitelisting config properties
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.
fair enough
@elasticmachine merge upstream |
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* master: (34 commits) [Index management] Server-side NP ready (elastic#56829) Webhook action - make user and password secrets optional (elastic#56823) [DOCS] Removes reference to IRC (elastic#57245) [Monitoring] NP migration: Local angular module (elastic#51823) [SIEM] Adds ECS link to help menu (elastic#57104) Ensure http interceptors are shares across lifecycle methods (elastic#57150) [Remote clusters] Migrate server code out of legacy (elastic#56781) fixes render bug in alert list (elastic#57152) siem 7.6 updates (elastic#57169) Make the update alert API key API work when AAD is out of sync (elastic#56640) fix(NA): MaxListenersExceededWarning on getLoggerStream (elastic#57133) [Metrics UI] Setup commonly used time ranges in timepicker (elastic#56701) [Maps] set filter.meta.key to geoFieldName so query passes filterMatchesIndex when ignoreFilterIfFieldNotInIndex is true (elastic#56692) Create plugin mock for event log plugin (elastic#57048) fix ts error on master (elastic#57236) Don't create API key for disabled alerts when calling create API (elastic#57041) Fix enable and disable API to still work when AAD is out of sync (elastic#56634) [DOCS] Canvas embed objects (elastic#57156) Delete autocomplete namespace (elastic#57187) Security - Inject logout url (elastic#57201) ...
* resolve conflicts * Update index.ts Co-authored-by: Elastic Machine <[email protected]>
Backport: |
This PR includes
ui/routes
andui/modules
globalState
andtimefilter
isolated and shimmedTODO:
legacy
directory. Next priority as of: RemovegetInjectedVar
from injected metadata #54376home.featureCatalogue.register
core.__LEGACY
instead of importingplugins/monitoring/*
aliasui/*
imports