-
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] Remove unneccessary indexPatterns call causing Anomaly Explorer to fail #30494
[ML] Remove unneccessary indexPatterns call causing Anomaly Explorer to fail #30494
Conversation
Pinging @elastic/ml-ui |
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.
LGTM
💚 Build Succeeded |
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.
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) : []; |
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.
is indexPatterns: loadIndexPatterns,
needed in the uiRoutes
resolve
object still?
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 it is, as getIndexPatterns
is used later on. so ignore this :)
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
This was missed during the recent migrations to React of Anomaly Explorer in elastic#28750. It removes the now unnecessary `$scope.indexPatterns`.
👍 |
💚 Build Succeeded |
💚 Build Succeeded |
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:Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.This was checked for cross-browser compatibility, including a check against IE11Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsUnit or functional tests were updated or added to match the most common scenariosThis was checked for keyboard-only and screenreader accessibilityFor maintainers
This was checked for breaking API changes and was labeled appropriatelyThis includes a feature addition or change that requires a release note and was labeled appropriatelyPart of #18553.