Skip to content

Commit

Permalink
Fixes a problem with a "check box to email all users from the model .…
Browse files Browse the repository at this point in the history
… It allows the database and the model to become in sync and allows for a future release to add code functionality for this checkbox.
  • Loading branch information
AndreRSanchez committed Apr 3, 2019
1 parent 21602f2 commit e8eb4fe
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
10 changes: 9 additions & 1 deletion MOE.Common/MOE.Common.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\MSTest.TestAdapter.1.1.18\build\net45\MSTest.TestAdapter.props" Condition="Exists('..\packages\MSTest.TestAdapter.1.1.18\build\net45\MSTest.TestAdapter.props')" />
<PropertyGroup>
Expand Down Expand Up @@ -549,6 +549,10 @@
<Compile Include="Migrations\201808171744257_AggreationLongsForId.Designer.cs">
<DependentUpon>201808171744257_AggreationLongsForId.cs</DependentUpon>
</Compile>
<Compile Include="Migrations\201810301701213_WatchDogEmailAllErrors.cs" />
<Compile Include="Migrations\201810301701213_WatchDogEmailAllErrors.Designer.cs">
<DependentUpon>201810301701213_WatchDogEmailAllErrors.cs</DependentUpon>
</Compile>
<Compile Include="Models\Application.cs" />
<Compile Include="Models\ApplicationSettings.cs" />
<Compile Include="Models\PhasePedAggregation.cs" />
Expand Down Expand Up @@ -924,6 +928,9 @@
<Content Include="App.config">
<SubType>Designer</SubType>
</Content>
<EmbeddedResource Include="Migrations\201810301701213_WatchDogEmailAllErrors.resx">
<DependentUpon>201810301701213_WatchDogEmailAllErrors.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Migrations\VerboseStatus.sql" />
<EmbeddedResource Include="Migrations\InsertValues.sql" />
<EmbeddedResource Include="Migrations\PhysicalFileName.sql" />
Expand Down Expand Up @@ -1068,6 +1075,7 @@
</EmbeddedResource>
<EmbeddedResource Include="Migrations\201803301713324_DatabaseArchiveProcessedPartitions.resx">
<DependentUpon>201803301713324_DatabaseArchiveProcessedPartitions.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion MOE.Common/Migrations/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
);

Expand Down
12 changes: 6 additions & 6 deletions MOE.Common/Models/WatchDogApplicationSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit e8eb4fe

Please sign in to comment.