Skip to content
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] DF Analytics results: ensure View link is only enabled when job has successfully completed #73539

Merged

Conversation

alvarezmelissa87
Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 commented Jul 28, 2020

Summary

Fixes #73118

This PR disables the View link for DF analytics jobs lists (including ML overview page and Kibana management page) is only enabled if the job has successfully completed. This prevents any crashes due to the destination index missing.

Job did not start:

image

Job incomplete:

Screen Shot 2020-07-28 at 2 40 10 PM

Job failed:

image

This PR also fixes the case of an empty destination index with invalid mappings:

Before:

Blank page with console error:

image

After:

image

Checklist

Delete any items that are not applicable to this PR.

@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@alvarezmelissa87 alvarezmelissa87 added bug Fixes for quality problems that affect the customer experience v7.10.0 v7.9.0 v8.0.0 labels Jul 28, 2020
@lcawl
Copy link
Contributor

lcawl commented Jul 28, 2020

The text looks great, thanks!

@qn895
Copy link
Member

qn895 commented Jul 28, 2020

LGTM

@alvarezmelissa87
Copy link
Contributor Author

retest

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested against scenarios listed in #73118 and LGTM.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

page load bundle size

id value diff baseline
ml 4.3MB +1.7KB 4.3MB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@alvarezmelissa87 alvarezmelissa87 merged commit 2dca40a into elastic:master Jul 29, 2020
alvarezmelissa87 added a commit to alvarezmelissa87/kibana that referenced this pull request Jul 29, 2020
…b has successfully completed (elastic#73539)

* disable view link if job is incomplete or failed

* ensure hooks run before return to avoid react error
alvarezmelissa87 added a commit to alvarezmelissa87/kibana that referenced this pull request Jul 29, 2020
…b has successfully completed (elastic#73539)

* disable view link if job is incomplete or failed

* ensure hooks run before return to avoid react error
@alvarezmelissa87 alvarezmelissa87 deleted the ml-dfanalytics-results-fix branch July 29, 2020 15:22
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 29, 2020
* master: (126 commits)
  [ML] Disabling ML if license feature is disabled (elastic#73187)
  [ML] Fixing old _xpack style es endpoint paths (elastic#73667)
  [DOCS] [Lens] 7.9 docs refresh (elastic#72301)
  [ML] DF Analytics results: ensure `View` link is only enabled when job has successfully completed (elastic#73539)
  Set timeRange to default to trigger the error message (elastic#73629)
  [ML] Functional tests - stabilize DFA navigation and index pattern handling (elastic#73660)
  [ILM] Add links to "Snapshot and Restore" from ILM "wait for snapshot policy" (elastic#72473)
  [kbn-storybook] Update Storybook to 5.3.19 (elastic#73320)
  [Metrics UI] Fix hasData call to ensure it has data not just indices (elastic#72969)
  [Uptime] Use `service.name` to link from Uptime -> APM where available (elastic#73618)
  allow others to update `URL.revokeObjectURL` property if needed (elastic#73639)
  regen docs (elastic#73650)
  [Visualize] Fix inspector download filename issue when saving in-place (elastic#72605)
  [Data] Query Input String manager (elastic#72093)
  [Security Solutions] Add tooltips (elastic#73436)
  Do not render descriptionless actions within an EuiCard (elastic#73611)
  [Security Solution][Detections] Value Lists Modal supports multiple exports (elastic#73532)
  [Security Solution][Resolver] Handle disabled process collection (elastic#73592)
  [Security_Solution][Bug] Fix user name/domain to ECS structure (elastic#73530)
  [Security Solution][Exceptions] - Update rule.exceptions_list to include exception list list_id (elastic#73349)
  ...
alvarezmelissa87 added a commit to alvarezmelissa87/kibana that referenced this pull request Jul 29, 2020
…b has successfully completed (elastic#73539)

* disable view link if job is incomplete or failed

* ensure hooks run before return to avoid react error
alvarezmelissa87 added a commit that referenced this pull request Jul 29, 2020
…b has successfully completed (#73539) (#73686)

* disable view link if job is incomplete or failed

* ensure hooks run before return to avoid react error
alvarezmelissa87 added a commit to alvarezmelissa87/kibana that referenced this pull request Jul 29, 2020
…b has successfully completed (elastic#73539)

* disable view link if job is incomplete or failed

* ensure hooks run before return to avoid react error
alvarezmelissa87 added a commit that referenced this pull request Jul 29, 2020
…b has successfully completed (#73539) (#73685)

* disable view link if job is incomplete or failed

* ensure hooks run before return to avoid react error
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jul 30, 2020
…ibana into actions/webhook-remove-header

* 'actions/webhook-remove-header' of github.com:gmmorris/kibana: (86 commits)
  [maps] rename GisMap to MapContainer and convert to TS (elastic#73690)
  [APM] docs: remove watcher documentation  (elastic#73485)
  [Maps] fix fit to data for Point to Point layer (elastic#73563)
  [Metrics UI] Fix No Data in Inventory alerts/Snapshot API (elastic#72513)
  [ML] Disabling ML if license feature is disabled (elastic#73187)
  [ML] Fixing old _xpack style es endpoint paths (elastic#73667)
  [DOCS] [Lens] 7.9 docs refresh (elastic#72301)
  [ML] DF Analytics results: ensure `View` link is only enabled when job has successfully completed (elastic#73539)
  Set timeRange to default to trigger the error message (elastic#73629)
  [ML] Functional tests - stabilize DFA navigation and index pattern handling (elastic#73660)
  [ILM] Add links to "Snapshot and Restore" from ILM "wait for snapshot policy" (elastic#72473)
  [kbn-storybook] Update Storybook to 5.3.19 (elastic#73320)
  [Metrics UI] Fix hasData call to ensure it has data not just indices (elastic#72969)
  [Uptime] Use `service.name` to link from Uptime -> APM where available (elastic#73618)
  allow others to update `URL.revokeObjectURL` property if needed (elastic#73639)
  regen docs (elastic#73650)
  [Visualize] Fix inspector download filename issue when saving in-place (elastic#72605)
  [Data] Query Input String manager (elastic#72093)
  [Security Solutions] Add tooltips (elastic#73436)
  Do not render descriptionless actions within an EuiCard (elastic#73611)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Data Frame Analytics ML data frame analytics features :ml release_note:fix v7.9.0 v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] View DFA results causes page crash if destination index is missing or invalid
6 participants