From e8eb4febc91785b7f34e48642a0d6e990094ffac Mon Sep 17 00:00:00 2001 From: Andre Sanchez Date: Wed, 3 Apr 2019 15:43:53 -0600 Subject: [PATCH] Fixes a problem with a "check box to email all users from the model . It allows the database and the model to become in sync and allows for a future release to add code functionality for this checkbox. --- MOE.Common/MOE.Common.csproj | 10 +++++++++- MOE.Common/Migrations/Configuration.cs | 2 +- MOE.Common/Models/WatchDogApplicationSettings.cs | 12 ++++++------ 3 files changed, 16 insertions(+), 8 deletions(-) diff --git a/MOE.Common/MOE.Common.csproj b/MOE.Common/MOE.Common.csproj index b64ecbfd..9c0b113c 100644 --- a/MOE.Common/MOE.Common.csproj +++ b/MOE.Common/MOE.Common.csproj @@ -1,4 +1,4 @@ - + @@ -549,6 +549,10 @@ 201808171744257_AggreationLongsForId.cs + + + 201810301701213_WatchDogEmailAllErrors.cs + @@ -924,6 +928,9 @@ Designer + + 201810301701213_WatchDogEmailAllErrors.cs + @@ -1068,6 +1075,7 @@ 201803301713324_DatabaseArchiveProcessedPartitions.cs + Designer diff --git a/MOE.Common/Migrations/Configuration.cs b/MOE.Common/Migrations/Configuration.cs index 446329f8..bb0c5afc 100644 --- a/MOE.Common/Migrations/Configuration.cs +++ b/MOE.Common/Migrations/Configuration.cs @@ -1034,7 +1034,7 @@ We estimate that each signal will generate 11.4 MB of data per day. ScanDayStartHour = 1, WeekdayOnly = true, MaximumPedestrianEvents = 200, - // EmailAllErrors = false + EmailAllErrors = false } ); diff --git a/MOE.Common/Models/WatchDogApplicationSettings.cs b/MOE.Common/Models/WatchDogApplicationSettings.cs index 12958f8d..dc6d549c 100644 --- a/MOE.Common/Models/WatchDogApplicationSettings.cs +++ b/MOE.Common/Models/WatchDogApplicationSettings.cs @@ -48,12 +48,12 @@ public class WatchDogApplicationSettings : ApplicationSettings [Display(Name = "Ped Actuations Threshold (Ped Alarm)")] public int MaximumPedestrianEvents { get; set; } - //[Display(Name = "Email All Watch Dog Errors")] - //public bool EmailAllErrors { get; set; } + [Display(Name = "Email All Watch Dog Errors")] + public bool EmailAllErrors { get; set; } - //public WatchDogApplicationSettings() - //{ - // EmailAllErrors = false; - //} + public WatchDogApplicationSettings() + { + EmailAllErrors = false; + } } } \ No newline at end of file