From a2e34a878959d8eb5de70d8b0d17622eb0bcbd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20B=C4=85czek?= <74410956+kamilbaczek@users.noreply.github.com> Date: Tue, 14 Nov 2023 07:03:08 +0100 Subject: [PATCH] refactor: update app settings and solution file Changes have been made in various configurations both on the application and development level. On the appsettings files, "Offers", "Passes", and "Reports" features and connection strings have been removed. Furthermore, the LogLevel has been changed from "Information" to "Debug". In the solution file, the "Fitnet.Common.Infrastructure" project has been removed. --- .../Src/Fitnet.Contracts/appsettings.Development.json | 8 +------- .../Src/Fitnet.Contracts/appsettings.json | 8 +------- Chapter-3-microservice-extraction/Fitnet/Src/Fitnet.sln | 6 ------ .../Fitnet/Src/Fitnet/appsettings.json | 2 +- 4 files changed, 3 insertions(+), 21 deletions(-) diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.Development.json b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.Development.json index c2bcef81..534a0365 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.Development.json +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.Development.json @@ -7,15 +7,9 @@ }, "FeatureManagement": { "Contracts": true, - "Offers": true, - "Passes": true, - "Reports": true }, "ConnectionStrings": { - "Passes": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword", - "Contracts": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword", - "Reports": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword", - "Offers": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword" + "Contracts": "Host=postgres:5432;Database=fitnet;Username=postgres;Password=mysecretpassword" }, "EventBus": { "Uri": "rabbitmq", diff --git a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.json b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.json index 3099945b..23f9b410 100644 --- a/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.json +++ b/Chapter-3-microservice-extraction/Fitnet.Contracts/Src/Fitnet.Contracts/appsettings.json @@ -8,15 +8,9 @@ "AllowedHosts": "*", "FeatureManagement": { "Contracts": true, - "Offers": true, - "Passes": true, - "Reports": true }, "ConnectionStrings": { - "Passes": "", - "Contracts": "", - "Reports": "", - "Offers": "" + "Contracts": "" }, "ExternalEventBus": { "Uri": "localhost", diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet.sln b/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet.sln index 19caa500..7523a1f5 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet.sln +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet.sln @@ -32,8 +32,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Reports.IntegrationT EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Reports", "Reports\Fitnet.Reports\Fitnet.Reports.csproj", "{76B919C8-0434-4A54-AFD3-07F817CCEC38}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Fitnet.Common.Infrastructure", "..\..\Fitnet.Common\Fitnet.Common.Infrastructure\Fitnet.Common.Infrastructure.csproj", "{2A6F3FB5-F3E0-45E6-991E-7BC5E9E0D0A6}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -80,10 +78,6 @@ Global {76B919C8-0434-4A54-AFD3-07F817CCEC38}.Debug|Any CPU.Build.0 = Debug|Any CPU {76B919C8-0434-4A54-AFD3-07F817CCEC38}.Release|Any CPU.ActiveCfg = Release|Any CPU {76B919C8-0434-4A54-AFD3-07F817CCEC38}.Release|Any CPU.Build.0 = Release|Any CPU - {2A6F3FB5-F3E0-45E6-991E-7BC5E9E0D0A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2A6F3FB5-F3E0-45E6-991E-7BC5E9E0D0A6}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2A6F3FB5-F3E0-45E6-991E-7BC5E9E0D0A6}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2A6F3FB5-F3E0-45E6-991E-7BC5E9E0D0A6}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {B834E435-6093-4174-9AC1-10D2E7398D31} = {732AD772-11C2-4DCC-B6DC-D59EABEF335B} diff --git a/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet/appsettings.json b/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet/appsettings.json index 58996272..95d81b34 100644 --- a/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet/appsettings.json +++ b/Chapter-3-microservice-extraction/Fitnet/Src/Fitnet/appsettings.json @@ -1,7 +1,7 @@ { "Logging": { "LogLevel": { - "Default": "Information", + "Default": "Debug", "Microsoft.AspNetCore": "Warning" } },