-
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] Migrates single metric viewer to React. #41739
[ML] Migrates single metric viewer to React. #41739
Conversation
Pinging @elastic/ml-ui |
💔 Build Failed |
457c1b5
to
d9b6dec
Compare
💔 Build Failed |
💔 Build Failed |
retest |
💚 Build Succeeded |
Code LGTM but I'd like to give it a final test and take a look at the latest commits on Monday. No need to wait if you get the other two green checks, though. |
…meseriesviewer-react
💔 Build Failed |
retest |
💚 Build Succeeded |
💚 Build Succeeded |
@peteharverson fixed the display of entity counts: |
💚 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
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.
Latest edits LGTM!
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.
Latest changes LGTM
Migrates the overall page of Single Metric Viewer to React.
Summary
Part of #18374.
Migrates the overall page of Single Metric Viewer to React.
timeseriesexplorer_controller.js
andtimeseriesexplorer.html
timeseriesexplorer_route.js
timeseriescontroller_directive.js
.Please keep the following in mind when reviewing this: A lot of the lines that show up as new in the diffs are methods moved from angular scope to react state. The main goal was to make this migration work and I did not put an emphasis on updating every single line of code to the newest and shiniest type of code we've adopted since the original single metric viewer was created. The aim of this PR is a strict focus to migrate from angularjs to React with minimal risk of regressions. That's why the existing React code was not changed to e.g. use hooks, TypeScript or remove some other bits we consider legacy (e.g. lodash). Nonetheless I'm thankful for any suggestions for future improvements!
Todos:
*
exports 04f2d4aChecklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.Any text added follows EUI's writing guidelines, uses sentence case text and includes i18n supportDocumentation was added for features that require explanation or tutorialsFor maintainers