-
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
[ML][Maps] Adds link to maps in charts section of Anomaly Explorer #128697
[ML][Maps] Adds link to maps in charts section of Anomaly Explorer #128697
Conversation
Pinging @elastic/ml-ui (:ml) |
@@ -17,7 +17,8 @@ export const plugin: PluginInitializer<MapsPluginSetup, MapsPluginStart> = ( | |||
return new MapsPlugin(initContext); | |||
}; | |||
|
|||
export { MAP_SAVED_OBJECT_TYPE } from '../common/constants'; |
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.
Instead of exporting APP_ID in maps/public/index, an ML just import from maps/common
. You will have to add APP_ID
to maps/common/index.ts
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.
Good catch - moved to export from /common in 3bfae94
x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_charts_container.js
Show resolved
Hide resolved
@@ -191,6 +265,23 @@ function ExplorerChartContainer({ | |||
</EuiButtonEmpty> | |||
</EuiToolTip> | |||
)} | |||
{chartType === CHART_TYPE.GEO_MAP && mapsLink ? ( | |||
<EuiToolTip position="top" content={openInMapsPluginMessage}> |
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 needed for this PR, but would be great to add a View in Maps
item to the Actions menu in the anomalies table, similar to the View series
link for time series anomalies which is available for the anomaly charts and the anomalies table.
x-pack/plugins/ml/public/application/explorer/explorer_charts/explorer_charts_container.js
Outdated
Show resolved
Hide resolved
|
||
if (meta?.areResultsTrimmed) { | ||
return { | ||
tooltipContent: i18n.translate('xpack.ml.maps.resultsTrimmedMsg', { |
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.
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.
maps changes LGTM, changes to anomaly_source.tsx areResultsTrimmed LGTM
code review.
Tested latest changes and LGTM but might be worth testing it some more with where partition fields contain special characters |
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.
Tested latest changes and LGTM
Added tests for the query creation and added use of |
💚 Build SucceededMetrics [docs]Public APIs missing comments
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
Related meta issue: #123492
This PR adds a link in the anomaly explorer embedded maps to the Maps plugin for displaying the anomalies for that job id.
Links to:
Checklist
Delete any items that are not applicable to this PR.