-
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
[Monitoring] [Pipeline Viewer] Remove obsolete code #20122
[Monitoring] [Pipeline Viewer] Remove obsolete code #20122
Conversation
💚 Build Succeeded |
@ycombinator @mattapperson should be good to review now, thanks |
💚 Build Succeeded |
font-size: 13px; | ||
stroke: none; | ||
} | ||
|
||
.lspvEdge { |
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.
Are the rest of the classes here still needed?
I think its not as obvious but there's some obsolete code in the models folder as well, for example: Lines 22 to 24 in 937d141
|
I did find this but I was under the impression that it's not obsolete because it's used in the
Same question as above. |
I think it depends. IMO, the only code that should be left in the |
Yeah, that sounds good, I'll revisit this. 👍 |
9a88661
to
c6c0445
Compare
@ycombinator should be good for another 👀 |
This is looking good. Found one more area that you can clean up: I think this object key can go, including the methods used to generate it's value: kibana/x-pack/plugins/monitoring/public/components/logstash/pipeline_viewer/models/graph/vertex.js Line 61 in 8fc0fca
In fact, once you remove the There's a similar area in the And remember the corresponding unit test code as well. |
@ycombinator e8fa994 should address the |
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 pending green CI. Great to see all the old code being removed from the codebase ❤️.
💔 Build Failed |
141176e
to
36f369e
Compare
💚 Build Succeeded |
@ycombinator can you please have a 👀 at 36f369e If that LGTY then I think we are good to merge |
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 after changes made to make CI go green.
* Remove PipelineViewer component, replace with Config Viewer as index export. * Remove tests for obsolete component. * Remove obsolete code. * Remove obsolete CSS. * Remove old SVG class for graph edges. * Remove more graph rendering code. * Remove obsolete properties from graph classes. * Remove unused constants. * Remove obsolete keys from subtitle props. * Fix broken unit tests.
Backported to: |
* Remove PipelineViewer component, replace with Config Viewer as index export. * Remove tests for obsolete component. * Remove obsolete code. * Remove obsolete CSS. * Remove old SVG class for graph edges. * Remove more graph rendering code. * Remove obsolete properties from graph classes. * Remove unused constants. * Remove obsolete keys from subtitle props. * Fix broken unit tests.
Motivation
As part of our revamp of the Pipeline Viewer, we have replaced a significant amount of visualization code. The old code may be useful in the future, but for the time being we have no plans to use it, so we are going to remove it from the active codebase and let it live in history for possible future reuse.
Closes #19736
Testing This PR
As the code we're removing is no longer in use, testing is a little obscure. The best procedure is making sure it passes CI, and running the view itself.
a. Click a plugin name to ensure
DetailDrawer
renders properlyb. Collapse/expand your branch repeatedly
c. Ensure no errors/warnings are logged to the dev console