From 9b66891dc4d1e5d9d31573350103484226fa5c10 Mon Sep 17 00:00:00 2001 From: Jonas Dyrlie Date: Wed, 22 Jan 2025 11:07:28 +0100 Subject: [PATCH] fix: add endpoints accessing datamodel schema to sync endpoints (#14427) Co-authored-by: JamalAlabdullah <90609090+JamalAlabdullah@users.noreply.github.com> --- .../EndpointNameSyncEvaluator.cs | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs b/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs index 36cc15d842b..8c8bce1ebae 100644 --- a/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs +++ b/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs @@ -31,15 +31,16 @@ public class EndpointNameSyncEvaluator : IRequestSyncEvaluator { TrimmedControllerName(nameof(AppDevelopmentController)), GenerateFrozenSet( + nameof(AppDevelopmentController.AddLayoutSet), + nameof(AppDevelopmentController.DeleteFormLayout), + nameof(AppDevelopmentController.DeleteLayoutSet), + nameof(AppDevelopmentController.GetModelMetadata), nameof(AppDevelopmentController.SaveFormLayout), - nameof(AppDevelopmentController.UpdateFormLayoutName), nameof(AppDevelopmentController.SaveLayoutSettings), - nameof(AppDevelopmentController.SaveRuleHandler), nameof(AppDevelopmentController.SaveRuleConfig), - nameof(AppDevelopmentController.AddLayoutSet), - nameof(AppDevelopmentController.UpdateLayoutSetName), - nameof(AppDevelopmentController.DeleteFormLayout), - nameof(AppDevelopmentController.DeleteLayoutSet) + nameof(AppDevelopmentController.SaveRuleHandler), + nameof(AppDevelopmentController.UpdateFormLayoutName), + nameof(AppDevelopmentController.UpdateLayoutSetName) ) }, { @@ -75,6 +76,19 @@ public class EndpointNameSyncEvaluator : IRequestSyncEvaluator GenerateFrozenSet( nameof(DeploymentsController.Create) ) + }, + { + TrimmedControllerName(nameof(DatamodelsController)), + GenerateFrozenSet( + nameof(DatamodelsController.Get), + nameof(DatamodelsController.PutDatamodel) + ) + }, + { + TrimmedControllerName(nameof(PreviewController)), + GenerateFrozenSet( + nameof(PreviewController.Datamodel) + ) } }.ToFrozenDictionary();