From ecdae1fe1dfcdbff5f8957f379083b5e184b35ad Mon Sep 17 00:00:00 2001 From: Mirko Sekulic Date: Wed, 13 Nov 2024 12:00:22 +0100 Subject: [PATCH 1/2] Add more AppDevelopmentController endpoints to whitelist sync list --- .../RequestSyncEvaluators/EndpointNameSyncEvaluator.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs b/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs index 498e6d1b859..24f1b91a67f 100644 --- a/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs +++ b/backend/src/Designer/Middleware/UserRequestSynchronization/Services/RequestSyncEvaluators/EndpointNameSyncEvaluator.cs @@ -30,7 +30,15 @@ public class EndpointNameSyncEvaluator : IRequestSyncEvaluator { nameof(AppDevelopmentController).Replace(RemoveControllerSuffix, string.Empty), GenerateFrozenSet( - nameof(AppDevelopmentController.SaveLayoutSettings) + 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) ) }, { From 58bab6a82a093f2037d962157d6f6bb1e3ee1edb Mon Sep 17 00:00:00 2001 From: Mirko Sekulic Date: Wed, 13 Nov 2024 12:04:46 +0100 Subject: [PATCH 2/2] fix tests --- .../AppDevelopmentController/SaveRuleHandlerTests.cs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/SaveRuleHandlerTests.cs b/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/SaveRuleHandlerTests.cs index 323f46e85e3..605e3eccda3 100644 --- a/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/SaveRuleHandlerTests.cs +++ b/backend/tests/Designer.Tests/Controllers/AppDevelopmentController/SaveRuleHandlerTests.cs @@ -23,13 +23,6 @@ public SaveRuleHandlerTests(WebApplicationFactory factory) : base(facto { } - protected override void ConfigureTestServices(IServiceCollection services) - { - services.Configure(c => - c.RepositoryLocation = TestRepositoriesLocation); - services.AddSingleton(); - } - [Theory] [InlineData("ttd", "app-with-layoutsets", "testUser", "layoutSet1", "TestData/App/ui/changename/RuleHandler.js")] [InlineData("ttd", "app-with-layoutsets", "testUser", "layoutSet1", "TestData/App/ui/datalist/RuleHandler.js")]