From 42565b4b4b8bd06a4e6ce90e640f17429dc550d3 Mon Sep 17 00:00:00 2001 From: Maximilian Vorbrodt Date: Mon, 28 Nov 2022 11:10:21 +0100 Subject: [PATCH 1/3] change default maxDepth value Signed-off-by: Maximilian Vorbrodt --- .../components/EntityRelationsGraph/EntityRelationsGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/catalog-graph/src/components/EntityRelationsGraph/EntityRelationsGraph.tsx b/plugins/catalog-graph/src/components/EntityRelationsGraph/EntityRelationsGraph.tsx index 72ec4b4aed..67aa230ce2 100644 --- a/plugins/catalog-graph/src/components/EntityRelationsGraph/EntityRelationsGraph.tsx +++ b/plugins/catalog-graph/src/components/EntityRelationsGraph/EntityRelationsGraph.tsx @@ -89,7 +89,7 @@ export const EntityRelationsGraph = (props: { }) => { const { rootEntityNames, - maxDepth = Number.POSITIVE_INFINITY, + maxDepth = 2, unidirectional = true, mergeRelations = true, kinds, From 454f2e90db179c7923f64c5ca4516abe7bcc1cd5 Mon Sep 17 00:00:00 2001 From: Maximilian Vorbrodt Date: Mon, 28 Nov 2022 11:20:49 +0100 Subject: [PATCH 2/3] add changeset Signed-off-by: Maximilian Vorbrodt --- .changeset/shy-cycles-add.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/shy-cycles-add.md diff --git a/.changeset/shy-cycles-add.md b/.changeset/shy-cycles-add.md new file mode 100644 index 0000000000..8a5e893684 --- /dev/null +++ b/.changeset/shy-cycles-add.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog-graph': patch +--- + +Set the default max depth in entity relations graph to a smaller value to provide better readability. From 6bbad5e113a5ea30691af574cff8d7767d44c829 Mon Sep 17 00:00:00 2001 From: Maximilian Vorbrodt <64839037+vorbrodt@users.noreply.github.com> Date: Wed, 30 Nov 2022 09:13:49 +0100 Subject: [PATCH 3/3] Update .changeset/shy-cycles-add.md Co-authored-by: Johan Haals Signed-off-by: Maximilian Vorbrodt <64839037+vorbrodt@users.noreply.github.com> --- .changeset/shy-cycles-add.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/shy-cycles-add.md b/.changeset/shy-cycles-add.md index 8a5e893684..2c70f2a8eb 100644 --- a/.changeset/shy-cycles-add.md +++ b/.changeset/shy-cycles-add.md @@ -2,4 +2,4 @@ '@backstage/plugin-catalog-graph': patch --- -Set the default max depth in entity relations graph to a smaller value to provide better readability. +Set the default `maxDepth` prop for `EntityRelationsGraph` to a smaller value to provide better readability.