-
Notifications
You must be signed in to change notification settings - Fork 712
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
Add connection tables to details panel #1017
Conversation
5c0bb2e
to
5388fab
Compare
remotes[key] = remotes[key] + 1 | ||
} | ||
} | ||
} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
How about making connections a toplevel node field:
|
@davkal I eventually want the rows to link to other objects in the topology (ie link to the other container talking to this one) like the other children tables. Links will always be within the current view. Can you update your datastructure for this? I'm hoping links will always be possible, but you might want to make them optional. |
Alternatively we can model connections as a nodes table, i.e. wrapping ports as metadata (typed as int to make it sortable as a number) and counts wrapped as a metric:
|
68523c1
to
999dfaf
Compare
|
0495ffb
to
7b98683
Compare
@@ -54,27 +54,6 @@ func TestAll(t *testing.T) { | |||
} | |||
} | |||
|
|||
func TestAPITopologyContainers(t *testing.T) { | |||
ts := topologyServer() |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
remotePortKey = "Remote Port" | ||
localPortKey = "Local Port" | ||
countKey = "Count" | ||
numberWang = "number" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
still quite a bit of tricky string-munging code shared between the incoming connections and outgoing connection aggregators. |
I guess no luck on converting the endpoints to their respective nodes in the relevant topology? |
Time constraint I'm afraid. Will do it next sprint. |
Aside from a few naming things and refactoring (if possible), this LGTM. |
2362e46
to
297d080
Compare
@paulbellamy I think I've addressed all the feedback, and got it working for the internet node. Its a bit of a hack. I think we should punt this form 0.13 and finish it properly. Thoughts? |
7a96ce3
to
be0784f
Compare
Also: - Make metadata fields sortable as numbers - Sort by selected metadata column
e9eb7fe
to
2fd23a3
Compare
2fd23a3
to
f154e7a
Compare
// MakePseudoEndpointID makes a pseudo endpoint node ID for rendered nodes. | ||
func MakePseudoEndpointID(hostID, addr, port string) string { | ||
return makeID("pseudo-endpoint", hostID, addr, port) | ||
} |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
General approach seems fine. A couple naming and tidiness things. |
Add connection tables to details panel
ID: "foo", | ||
Value: row.localAddr, | ||
Datatype: number, | ||
}) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
Part of #680, Fixes #378, Fixes #1111
This change also:
Puts pseudo nodes back into the container's view (makes more sense to show connections now we have shapes)(This needed more work - Put pseudo nodes back into the container's view #1123)TODO:
use reverse dns info(Use reverse DNS info #1121)