Change: Job Queue Description not required
This commit is contained in:
@@ -126,9 +126,9 @@
|
||||
<Compile Include="Migrations\201310282325491_DBv11.Designer.cs">
|
||||
<DependentUpon>201310282325491_DBv11.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\201401270857381_DBv12.cs" />
|
||||
<Compile Include="Migrations\201401270857381_DBv12.Designer.cs">
|
||||
<DependentUpon>201401270857381_DBv12.cs</DependentUpon>
|
||||
<Compile Include="Migrations\201402032322432_DBv12.cs" />
|
||||
<Compile Include="Migrations\201402032322432_DBv12.Designer.cs">
|
||||
<DependentUpon>201402032322432_DBv12.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Migrations\Configuration.cs" />
|
||||
<Compile Include="Migrations\DiscoDataMigrator.cs" />
|
||||
@@ -178,8 +178,8 @@
|
||||
<EmbeddedResource Include="Migrations\201310282325491_DBv11.resx">
|
||||
<DependentUpon>201310282325491_DBv11.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Migrations\201401270857381_DBv12.resx">
|
||||
<DependentUpon>201401270857381_DBv12.cs</DependentUpon>
|
||||
<EmbeddedResource Include="Migrations\201402032322432_DBv12.resx">
|
||||
<DependentUpon>201402032322432_DBv12.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
@@ -194,7 +194,7 @@
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<UserProperties BuildVersion_BuildAction="Both" BuildVersion_UseGlobalSettings="False" BuildVersion_DetectChanges="False" BuildVersion_StartDate="2011/7/1" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_UpdateFileVersion="True" />
|
||||
<UserProperties BuildVersion_UpdateFileVersion="True" BuildVersion_UpdateAssemblyVersion="True" BuildVersion_BuildVersioningStyle="None.DeltaBaseYear.MonthAndDayStamp.TimeStamp" BuildVersion_StartDate="2011/7/1" BuildVersion_DetectChanges="False" BuildVersion_UseGlobalSettings="False" BuildVersion_BuildAction="Both" />
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -11,7 +11,7 @@ namespace Disco.Data.Migrations
|
||||
|
||||
string IMigrationMetadata.Id
|
||||
{
|
||||
get { return "201401270857381_DBv12"; }
|
||||
get { return "201402032322432_DBv12"; }
|
||||
}
|
||||
|
||||
string IMigrationMetadata.Source
|
||||
+1
-1
@@ -39,7 +39,7 @@ namespace Disco.Data.Migrations
|
||||
{
|
||||
Id = c.Int(nullable: false, identity: true),
|
||||
Name = c.String(nullable: false, maxLength: 100),
|
||||
Description = c.String(nullable: false, maxLength: 500),
|
||||
Description = c.String(maxLength: 500),
|
||||
Icon = c.String(nullable: false, maxLength: 25),
|
||||
IconColour = c.String(nullable: false, maxLength: 10),
|
||||
DefaultSLAExpiry = c.Int(),
|
||||
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@ namespace Disco.Models.Repository
|
||||
public int Id { get; set; }
|
||||
[Required, StringLength(100)]
|
||||
public string Name { get; set; }
|
||||
[Required, StringLength(500), DataType(DataType.MultilineText)]
|
||||
[StringLength(500), DataType(DataType.MultilineText)]
|
||||
public string Description { get; set; }
|
||||
[Required, StringLength(25)]
|
||||
public string Icon { get; set; }
|
||||
|
||||
@@ -36,8 +36,6 @@ namespace Disco.Services.Jobs.JobQueues
|
||||
// Verify
|
||||
if (string.IsNullOrWhiteSpace(JobQueue.Name))
|
||||
throw new ArgumentException("The Job Queue Name is required");
|
||||
if (string.IsNullOrWhiteSpace(JobQueue.Description))
|
||||
throw new ArgumentException("The Job Queue Description is required");
|
||||
|
||||
// Name Unique
|
||||
if (_cache.GetQueues().Count(q => q.JobQueue.Name == JobQueue.Name) > 0)
|
||||
@@ -65,8 +63,6 @@ namespace Disco.Services.Jobs.JobQueues
|
||||
// Verify
|
||||
if (string.IsNullOrWhiteSpace(JobQueue.Name))
|
||||
throw new ArgumentException("The Job Queue Name is required");
|
||||
if (string.IsNullOrWhiteSpace(JobQueue.Description))
|
||||
throw new ArgumentException("The Job Queue Description is required");
|
||||
|
||||
// Name Unique
|
||||
if (_cache.GetQueues().Count(q => q.JobQueue.Id != JobQueue.Id && q.JobQueue.Name == JobQueue.Name) > 0)
|
||||
|
||||
@@ -64,7 +64,14 @@
|
||||
else
|
||||
{
|
||||
<pre>
|
||||
@if (string.IsNullOrEmpty(Model.Token.JobQueue.Description))
|
||||
{
|
||||
<text><None></text>
|
||||
}
|
||||
else
|
||||
{
|
||||
@Model.Token.JobQueue.Description
|
||||
}
|
||||
</pre>
|
||||
}
|
||||
</td>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1567,10 +1567,10 @@
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>Create_Redirect.generated.cs</LastGenOutput>
|
||||
</None>
|
||||
<Content Include="Views\Job\JobParts\Queues.cshtml">
|
||||
<None Include="Views\Job\JobParts\Queues.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>Queues.generated.cs</LastGenOutput>
|
||||
</Content>
|
||||
</None>
|
||||
<None Include="Views\Job\JobParts\_Subject.cshtml">
|
||||
<Generator>RazorGenerator</Generator>
|
||||
<LastGenOutput>_Subject.generated.cs</LastGenOutput>
|
||||
|
||||
Reference in New Issue
Block a user