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] Remove unneccessary indexPatterns call causing Anomaly Explorer to fail #30494

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Feb 8, 2019

Summary

This was missed during the recent migrations to React of Anomaly Explorer in #28750. It removes the now unnecessary $scope.indexPatterns.

Also fixes an issues where the call to getFromSavedObject to obtain the list of index patterns could cause the Anomaly Explorer to fail to render properly on opening with a syntax error reported when trying to parse the JSON:

anomaly_explorer_error

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers


Part of #18553.

@walterra walterra added non-issue Indicates to automation that a pull request should not appear in the release notes v7.0.0 :ml Feature:ml-results legacy - do not use v8.0.0 v6.7.0 v7.2.0 labels Feb 8, 2019
@walterra walterra self-assigned this Feb 8, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui

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.

LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@jgowdyelastic jgowdyelastic left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -75,7 +74,6 @@ module.controller('MlExplorerController', function (
// $scope should only contain what's actually still necessary for the angular part.
// For the moment that's the job selector and the (hidden) filter bar.
$scope.jobs = [];
$scope.indexPatterns = $route.current ? $route.current.locals.indexPatterns.map(getFromSavedObject) : [];
Copy link
Member

Choose a reason for hiding this comment

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

is indexPatterns: loadIndexPatterns, needed in the uiRoutes resolve object still?

Copy link
Member

Choose a reason for hiding this comment

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

i think it is, as getIndexPatterns is used later on. so ignore this :)

@walterra walterra merged commit 3e64808 into elastic:master Feb 8, 2019
@walterra walterra deleted the ml-fix-deprecated-indexpattern branch February 8, 2019 14:36
walterra added a commit to walterra/kibana that referenced this pull request Feb 8, 2019
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
walterra added a commit to walterra/kibana that referenced this pull request Feb 8, 2019
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
walterra added a commit to walterra/kibana that referenced this pull request Feb 8, 2019
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
lukeelmers pushed a commit to lukeelmers/kibana that referenced this pull request Feb 8, 2019
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
@alvarezmelissa87
Copy link
Contributor

👍

peteharverson pushed a commit that referenced this pull request Feb 12, 2019
This was missed during the recent migrations to React of Anomaly Explorer in #28750. It removes the now unnecessary `$scope.indexPatterns`.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@peteharverson peteharverson changed the title [ML] Removes deprecated $scope.indexPatterns. [ML] Remove unneccessary indexPatterns call causing Anomaly Explorer to fail Feb 13, 2019
peteharverson pushed a commit that referenced this pull request Feb 13, 2019
This was missed during the recent migrations to React of Anomaly Explorer in #28750. It removes the now unnecessary `$scope.indexPatterns`.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sophiec20 sophiec20 added the Feature:Anomaly Detection ML anomaly detection label Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker Feature:Anomaly Detection ML anomaly detection Feature:ml-results legacy - do not use :ml non-issue Indicates to automation that a pull request should not appear in the release notes v6.7.0 v7.0.0 v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants