-
Notifications
You must be signed in to change notification settings - Fork 513
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
DAG View Migration to Plexus #1921
DAG View Migration to Plexus #1921
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1921 +/- ##
==========================================
- Coverage 96.54% 95.90% -0.65%
==========================================
Files 256 258 +2
Lines 7604 7660 +56
Branches 1978 1987 +9
==========================================
+ Hits 7341 7346 +5
- Misses 263 314 +51 ☔ View full report in Codecov by Sentry. |
@prathamesh-mutkure so reading through some of the comments, I think
|
4f1c2df
to
4e8b522
Compare
packages/jaeger-ui/src/components/DependencyGraph/_DAG_DirectedGraph.tsx
Show resolved
Hide resolved
{...customProps} | ||
/> | ||
|
||
<text x={labelX - xOffset} y={labelY} fill="#000" fontSize="1rem" fontWeight="bold"> |
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.
fontSize="1rem" fontWeight="bold"
is this something that can be expressed via stylesheet? How do we style the content of the nodes? Maybe label
should also be a DOM content, not a plain text?
If too much work, ok to keep as plain text in the first iteration, but I'd still like to know the answer to the styling question.
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.
The code here is for the edge/arrow, nodes can be customised using renderNode
property which is already being used for this graph, if you're talking about similar customization for edges then the documentation says it can be expensive
We can still try a renderEdge
method and see how it affects the performance
markerStart={markerStart} | ||
{...customProps} | ||
/> | ||
<g> |
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.
what does <g>
do?
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.
It's there to group <path>
and <text>
, just for semantics, similar to <> ... </>
@@ -15,6 +15,8 @@ | |||
import * as React from 'react'; | |||
|
|||
type TProps = Record<string, any> & { | |||
id: string; |
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.
do we need to change anything under deprecated DirectedGraph/..
? Can your PR work without that?
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.
Yes, that was for when I tried DirectedGraph
, similar changes have been made to Diagraph
, so we can skip these
b3a1fe0
to
2ed8624
Compare
superseded by #1981 |
Which problem is this PR solving?
This is a draft PR for migrating the
DAG
view from Cytoscape to PlexusDescription of the changes
System Architecture
page,DAG_DirectedGraph
andDAG_Diagraph
DirectedGraph
component for migrationDigraph
component for migrationWhy migration using two components?
callCount
I'll try my best to migrate the previous implementation, we'll go with the component that gives the best results
How was this change tested?
NA
Checklist
jaeger
:make lint test
jaeger-ui
:yarn lint
andyarn test