Open jabrena opened 1 year ago
{
"edges" : [
{
"source" : {
"beanName" : "ChatGTPProvider",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "ChatGTPMapper",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "MultipartConfigElement",
"beanPackage" : "jakarta.servlet",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "MultipartAutoConfiguration",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "MyController",
"beanPackage" : "info.jab.ms",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "myService",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "UserBeansDependencyService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "UserBeansService",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "UserBeansEndpoint",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "UserBeansGraphService",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "UserBeansEndpoint",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "UserBeansExplanationService",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "UserBeansExplanationService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "ChatGTPProvider",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "UserBeansGraphService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "UserBeansDependencyService",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
},
{
"source" : {
"beanName" : "UserBeansService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
"target" : {
"beanName" : "beansEndpoint",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
}
],
"nodes" : [
{
"beanName" : "ChatGTPConfig",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "ChatGTPProvider",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MainApplication",
"beanPackage" : "info.jab.ms",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MultipartConfigElement",
"beanPackage" : "jakarta.servlet",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MyController",
"beanPackage" : "info.jab.ms",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MyService",
"beanPackage" : "info.jab.ms",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansDependencyService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansEndpoint",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansExplanationService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansGraphService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
}
]
}
Fix the tests tomorrow
I’m the edges, it is not necessary to maintain the package & dependency
curl -v "http://localhost:8080/actuator/userbeans/graph2?dependency=UNKNOWN" | json_pp
{
"edges" : [
{
"source" : {
"beanName" : "ChatGTPProvider"
},
"target" : {
"beanName" : "ChatGTPMapper"
}
},
{
"source" : {
"beanName" : "MultipartConfigElement"
},
"target" : {
"beanName" : "MultipartAutoConfiguration"
}
},
{
"source" : {
"beanName" : "MyController"
},
"target" : {
"beanName" : "myService"
}
},
{
"source" : {
"beanName" : "UserBeansDependencyService"
},
"target" : {
"beanName" : "UserBeansService"
}
},
{
"source" : {
"beanName" : "UserBeansEndpoint"
},
"target" : {
"beanName" : "UserBeansGraphService"
}
},
{
"source" : {
"beanName" : "UserBeansEndpoint"
},
"target" : {
"beanName" : "UserBeansExplanationService"
}
},
{
"source" : {
"beanName" : "UserBeansExplanationService"
},
"target" : {
"beanName" : "ChatGTPProvider"
}
},
{
"source" : {
"beanName" : "UserBeansGraphService"
},
"target" : {
"beanName" : "UserBeansDependencyService"
}
},
{
"source" : {
"beanName" : "UserBeansService"
},
"target" : {
"beanName" : "beansEndpoint"
}
}
],
"nodes" : [
{
"beanName" : "ChatGTPConfig",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "ChatGTPProvider",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MainApplication",
"beanPackage" : "info.jab.ms",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MultipartConfigElement",
"beanPackage" : "jakarta.servlet",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MyController",
"beanPackage" : "info.jab.ms",
"dependency" : "UNKNOWN"
},
{
"beanName" : "MyService",
"beanPackage" : "info.jab.ms",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansDependencyService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansEndpoint",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansExplanationService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansGraphService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
},
{
"beanName" : "UserBeansService",
"beanPackage" : "io.github.jabrena.userbeans",
"dependency" : "UNKNOWN"
}
]
}
curl -v "http://localhost:8080/actuator/userbeans/graph?dependency=micrometer-observation-1.11.0.jar" | json_pp
Improve nodes:
{
"edges" : [
{
"source" : {
"beanName" : "SimpleObservationRegistry",
"beanPackage" : "io.micrometer.observation",
"dependency" : "micrometer-observation-1.11.0.jar"
},
"target" : {
"beanName" : "ObservationAutoConfiguration",
"beanPackage" : "UNKNOWN",
"dependency" : "UNKNOWN"
}
}
],
"nodes" : [
{
"beanName" : "SimpleObservationRegistry",
"beanPackage" : "io.micrometer.observation",
"dependency" : "micrometer-observation-1.11.0.jar"
}
]
}
I need to find a good test strategy
Currently, the Graph based on D3.js only use information about Edge to recreate Nodes. Besides, few Edges are false Edges because target is null. With a better Graph representation should be better.
===