-
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
[Discover] Inline state modifying function to react #89543
[Discover] Inline state modifying function to react #89543
Conversation
…-28-deangularize-state-functions
…-28-deangularize-state-functions
Pinging @elastic/kibana-app (Team:KibanaApp) |
@elasticmachine merge upstream |
…ithub.com:kertal/kibana into kertal-pr-2021-01-28-deangularize-state-functions
💚 Build SucceededMetrics [docs]Module Count
Async chunks
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.
Tested this in Chrome on Mac OSX for basic Discover functionality:
- adding/removing columns
- switching index patterns
- saving a search
- adding a search to dashboard
- zooming in on histogram
- adding/removing filters
All works as expected. I didn't dig too deep into code changes, as it's a lot of moving code around.
@@ -752,65 +702,6 @@ function discoverController($route, $scope, Promise) { | |||
return Promise.resolve(); | |||
}; | |||
|
|||
$scope.setSortOrder = function setSortOrder(sort) { |
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.
🎉
@@ -8,27 +8,16 @@ | |||
hits="hits" | |||
index-pattern="indexPattern" | |||
minimum-visible-rows="minimumVisibleRows" | |||
on-add-column="addColumn" |
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.
🎉
Summary
This PR moves several function from discover angular controller to react components. Improving memoizing and therefore improving performance.
Part of #86166
Checklist