From 5848e4cd6891908aa2bdefd331b170f4833c9c41 Mon Sep 17 00:00:00 2001 From: Peter Streef Date: Mon, 15 Jul 2024 09:22:25 +0200 Subject: [PATCH 1/2] feat: Add configurable name for DevCenter security recipe Can be used in cases where the recipe display name is not sufficient. For example when the same recipe is used with different options. --- src/main/resources/schema/moderne-organizations.graphqls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/resources/schema/moderne-organizations.graphqls b/src/main/resources/schema/moderne-organizations.graphqls index 6b8b0e2..4092123 100644 --- a/src/main/resources/schema/moderne-organizations.graphqls +++ b/src/main/resources/schema/moderne-organizations.graphqls @@ -106,6 +106,10 @@ type DevCenterRecipeCard { } type DevCenterRecipe { + """ + Optional name used for displaying on the DevCenter. Defaults to the recipe display name. + """ + name: String recipeId: String! options: [Option!]! } From b9da633235c5b4c6f051ae6247f34e58f5d56633 Mon Sep 17 00:00:00 2001 From: Peter Streef Date: Mon, 15 Jul 2024 09:24:04 +0200 Subject: [PATCH 2/2] generate --- .../moderne/organizations/DgsConstants.java | 2 + .../organizations/types/DevCenterRecipe.java | 42 ++++++++++++++++--- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/src/main/java/io/moderne/organizations/DgsConstants.java b/src/main/java/io/moderne/organizations/DgsConstants.java index 884b15a..550bc9a 100644 --- a/src/main/java/io/moderne/organizations/DgsConstants.java +++ b/src/main/java/io/moderne/organizations/DgsConstants.java @@ -130,6 +130,8 @@ public static class DEVCENTERRECIPECARD { public static class DEVCENTERRECIPE { public static final String TYPE_NAME = "DevCenterRecipe"; + public static final String Name = "name"; + public static final String RecipeId = "recipeId"; public static final String Options = "options"; diff --git a/src/main/java/io/moderne/organizations/types/DevCenterRecipe.java b/src/main/java/io/moderne/organizations/types/DevCenterRecipe.java index 0425aec..a253be8 100644 --- a/src/main/java/io/moderne/organizations/types/DevCenterRecipe.java +++ b/src/main/java/io/moderne/organizations/types/DevCenterRecipe.java @@ -6,6 +6,11 @@ import java.util.List; public class DevCenterRecipe { + /** + * Optional name used for displaying on the DevCenter. Defaults to the recipe display name. + */ + private String name; + private String recipeId; private List