Fix: Managed Job List Subscription
Modified properties are now never 'null'
This commit is contained in:
@@ -37,10 +37,9 @@ namespace Disco.BI.JobBI
|
||||
n.EntityType == typeof(JobMetaInsurance) ||
|
||||
(n.EventType == RepositoryMonitorEventType.Modified && (
|
||||
(n.EntityType == typeof(DeviceProfile) && n.ModifiedProperties.Contains("DefaultOrganisationAddress")) ||
|
||||
(n.EntityType == typeof(DeviceModel) && n.ModifiedProperties.Contains("Description"))
|
||||
)) ||
|
||||
(n.EntityType == typeof(Device) && n.ModifiedProperties.Contains("DeviceProfileId") || n.ModifiedProperties.Contains("DeviceModelId"))
|
||||
)
|
||||
(n.EntityType == typeof(DeviceModel) && n.ModifiedProperties.Contains("Description")) ||
|
||||
(n.EntityType == typeof(Device) && n.ModifiedProperties.Contains("DeviceProfileId") || n.ModifiedProperties.Contains("DeviceModelId"))
|
||||
)))
|
||||
.Subscribe(JobNotification);
|
||||
|
||||
return this;
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0509.1622")]
|
||||
[assembly: AssemblyFileVersion("1.2.0509.1622")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0509.1618")]
|
||||
[assembly: AssemblyFileVersion("1.2.0509.1618")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
@@ -110,9 +110,11 @@ namespace Disco.Data.Repository.Monitor
|
||||
|
||||
entityType = EntityTypeFromProxy(entryState.Entity.GetType());
|
||||
|
||||
// Only pass modified properties on Modified Event (Ignore Added/Deleted)
|
||||
// Only pass modified properties on Modified Event
|
||||
if (eventType == RepositoryMonitorEventType.Modified)
|
||||
modifiedProperties = entryState.GetModifiedProperties().ToArray();
|
||||
else
|
||||
modifiedProperties = new string[] { }; // Empty array for Added/Deleted.
|
||||
|
||||
// Don't pass entity key when entity newly added
|
||||
if (eventType != RepositoryMonitorEventType.Added)
|
||||
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
@@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
|
||||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1327")]
|
||||
[assembly: AssemblyVersion("1.2.0513.1342")]
|
||||
[assembly: AssemblyFileVersion("1.2.0513.1342")]
|
||||
Reference in New Issue
Block a user