-
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
[Maps][ML] Integration: part 1 POC extended #113857
[Maps][ML] Integration: part 1 POC extended #113857
Conversation
@@ -9,14 +9,19 @@ export { | |||
AGG_TYPE, | |||
COLOR_MAP_TYPE, | |||
ES_GEO_FIELD_TYPE, | |||
FieldFormatter, | |||
FIELD_ORIGIN, |
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.
@thomasneirynck - looks like we need these exported here so ML can access them
@thomasneirynck - ran into some issues with the changes from #112465 I'm now always getting this failure (and a blank screen when I try to navigate to maps): Looks like the failure is coming from the lazy load here https://github.com/elastic/kibana/blob/master/x-pack/plugins/maps/public/api/register.ts#L18 when Looks like it's occurring when everything is being imported from The contents in the file dependent on coreStart can't be accessed in the plugin setup right now. It would work if we moved these functions back to (or expose them from both) the start function but it does seem they should be in the setup. Happy to discuss other potential solutions but as of now it won't work without some changes on the maps side. cc @spalger as we discussed some of this. |
@alvarezmelissa87 Thanks for identifying the issues with registerSource in setup. I have opened #114150 to fix the problem. |
ed7b2d7
to
a9787f5
Compare
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
References to deprecated APIs
History
To update your PR or re-run it, just comment with: |
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.
This is really great. The main advantage of course is that it will allow ML-users to actually view their spatial-based ML jobs on a map. This will also help us internally. There is potential (e.g. "impossible travel"). Having the ability to easily map an ML-job will be invaluable to troubleshoot.
The register-source API should provide ordering
The ML-card now shows first. Which is cool :) . But inconsistent with the other soltion-cards, like the RUM or SIEM layers. imho Maps needs to introduce better ordering
^ ML card should be added with the other solution-cards here.
This is on the Maps-plugin end, not the ML-end.
The card should be disabled when the user does not have access to ML
The ML card is always enabled. It should not be when the functionality is not accessible . This check, should be at least the for checking enteprise-license. e.g.
For an example, see
kibana/x-pack/plugins/maps/public/classes/sources/es_geo_line_source/layer_wizard.tsx
Lines 24 to 28 in a9ee83c
disabledReason: REQUIRES_GOLD_LICENSE_MSG, | |
icon: TracksLayerIcon, | |
getIsDisabled: () => { | |
return !getIsGoldPlus(); | |
}, |
This could also include other checks. (e.g. the Observability-layers check whether APM is configured)
Because the card is enabled, there is now a bug after clicking when the user does not hve an enterprise-license.
Uncaught (in promise) Error: Forbidden
at Fetch.fetchResponse (:5601/dam/9007199254740991/bundles/core/core.entry.js:13463)
at async interceptResponse (:5601/dam/9007199254740991/bundles/core/core.entry.js:13819)
at async :5601/dam/9007199254740991/bundles/core/core.entry.js:13360
and an empty wizard.
Are tooltips useful?
The tooltips only include the record-score. I am wondering if there are other fields would be valuable.
e.g.
- Document id
- Fields used in the config (e.g. influencers, part of detectors arguments (?))
- partition-field values
The preconfigured color-ramps is not being picked up by the Maps-UX
^ this is a bug in Maps likely. Maps-team should provide guidance here on how to resolve.
Handle empty state in wizard
When there are no ML jobs available for selection in the wizard, maybe we should not show the combo-box, and instead show some exaplanation/hyperlink. E.g. a link to the ML anomaly explorer.
Enable time filtering
While I don't think full support for KQL is not necessary, it would be nice the ML-layer syncs with the time-picker.
Can we link out from the ML app to a pre-configured Maps app?
Anytime a job is "mappable", can we provide a hyperlink in the ML-app, something like "Explore in maps".
a9787f5
to
6a68aa7
Compare
6a68aa7
to
af56f4e
Compare
af56f4e
to
38a897e
Compare
b1c8037
to
47e9e34
Compare
38df4ba
to
aee2671
Compare
…ized (elastic#120031) * Drop requests for overview page data when the value for the es filters has not been initially set. * Update to not wait when no filters are defined. * Add tests and clean up some files. * Delete unneeded code. * Reduce check condition to single boolean value to avoid triggering effect multiple times. * Simplify implementation, fix race. Update tests and fix types. * Make `useOverviewFilterCheck` consider kuery search as well. Co-authored-by: Kibana Machine <[email protected]>
…1535) * chore(NA): splits types from code on @kbn/rule-data-utils * chore(NA): remove old style imports for this pkg * chore(NA): eslint fix Co-authored-by: Kibana Machine <[email protected]>
…tic#121411) * Fix custom url special characters * Use double quotes instead * Fix to using for automatic links Co-authored-by: Kibana Machine <[email protected]>
…4404) * Added Component Integration Test for Opening A closed Index. * Fixed open index test and changed the structure of the tests to consolidate boilerplate. * Fixed PR based on feedback. Co-authored-by: Kibana Machine <[email protected]>
…stic#121255) Co-authored-by: Ece Ozalp <[email protected]> Co-authored-by: Ying Mao <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
…c#121687) Co-authored-by: Kibana Machine <[email protected]>
…states (elastic#122238) * Display backbutton for empty states * Remove eui spacer when empty state
…tic#121353) * [ML] File data visualizer reduce chunk size for slow processors * adding constant Co-authored-by: Kibana Machine <[email protected]>
…ment of a task list when empty (elastic#122242) * fix: fixes the issue where the last element of a task list would not render properly * test: update test
* Moved pie_vis to the other. * Removed not used types. * Changed docs. * Fixed labels. * Fixed more translation labels. * Changed types of buildExpressionFunction. * Added limits and extraPublicDir. * Fixed i18n checks. * Fixed translations checks. * Added codeowners to expression_pie. Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
…r to the policy flyout (elastic#121964) * Displays assignable artifact list and allow selection. Also displays empty state message * Adds mutation to update event filters with new tags * Shows confirm toast when action has ben done correctly * Fix ui/ux loading states and added unit test for flyout * Remove customqueryId * Use new object reference befor update it * Fixes unit test Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
Co-authored-by: Kibana Machine <[email protected]>
….js test (elastic#122276) * [maps] fix x-pack/test/functional/apps/maps/documents_source/top_hits·js test * eslint
* Implementing the alert count metrics * Fixing type errors * Fixing tests * Building new aggregation function in alert service * Fleshing out compute for alert details * Adding tests for handler * Refactoring the types and adding another test * Removing dead code * Removing unused snapshots * Refactoring to only call handlers once * Refactoring aggregations * some code cleanup * Addressing review feedback Co-authored-by: Kibana Machine <[email protected]>
…a87/kibana into ml-maps-integration-part-1
💔 Build FailedFailed CI StepsMetrics [docs]Module Count
Public APIs missing comments
Async chunks
Public APIs missing exports
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Closing in lieu of #122862 |
Summary
Extends and updates #90497
Incorporates latest maps changes (#112465, #112333) into initial draft PR (#111228)
Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers