Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ curl -v http://localhost:8080/actuator/userbeans/graph | json_pp > ./docs/graph.
curl -v http://localhost:8080/actuator/userbeans/graph-combo | json_pp
curl -v http://localhost:8080/actuator/userbeans/graph-combo | json_pp > ./docs/graph-combo.json
curl -v "http://localhost:8080/actuator/userbeans/graph?dependency=UNKNOWN" | json_pp
curl -v "http://localhost:8080/actuator/userbeans/graph?dependency=micrometer-observation-1.11.0.jar" | json_pp
```

# External tests
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[
{
"dependency" : "jackson-databind-2.15.0.jar"
},
{
"dependency" : "jackson-module-parameter-names-2.15.0.jar"
},
{
"dependency" : "micrometer-core-1.11.0.jar"
},
{
"dependency" : "micrometer-observation-1.11.0.jar"
},
{
"dependency" : "spring-boot-3.1.0.jar"
},
{
"dependency" : "spring-boot-actuator-3.1.0.jar"
},
{
"dependency" : "spring-boot-actuator-autoconfigure-3.1.0.jar"
},
{
"dependency" : "spring-boot-autoconfigure-3.1.0.jar"
},
{
"dependency" : "spring-context-6.0.9.jar"
},
{
"dependency" : "spring-core-6.0.9.jar"
},
{
"dependency" : "spring-web-6.0.9.jar"
},
{
"dependency" : "spring-webmvc-6.0.9.jar"
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@
}))
.filter((link) => link.target !== null);

//console.log("Printing links")
//console.log(links)
console.log("Printing links")
console.log(links)

linksRaw = data.edges
.map((d) => ({
Expand All @@ -217,6 +217,16 @@
...linksRaw.map((d) => d.target)
]);

/*
//New way
const nodes = data.nodes.map((d, index) => ({
id: d.beanName,
name: d.beanName,
package: d.beanPackage,
dependency: d.dependency
}));
*/

nodes = Array.from(nodesSet)
.filter((d) => d !== null) //TODO Clue that it is possible to improve the Graph generation
.map((d) => ({
Expand Down
Loading