rename all variants of naming that hold an AyaType value to "aType" (parameter) / "AType" (not parameter) everywhere front and back; "ayType", "objectType", "oType" all are used in various areas
This commit is contained in:
@@ -326,7 +326,7 @@ namespace AyaNova.Biz
|
||||
|
||||
//Open object url
|
||||
//### NOTE: If this is required anywhere else, move it to a central BizUtils class in Biz folder callable from here and there
|
||||
private static string OpenObjectUrlBuilder(AyaType otype, long id, NotifyEventType net)
|
||||
private static string OpenObjectUrlBuilder(AyaType aType, long id, NotifyEventType net)
|
||||
{
|
||||
var ServerUrl = ServerGlobalOpsSettingsCache.Notify.AyaNovaServerURL;
|
||||
if (string.IsNullOrWhiteSpace(ServerUrl))
|
||||
@@ -344,7 +344,7 @@ namespace AyaNova.Biz
|
||||
|
||||
|
||||
//Might not have a type or id in which case nothing directly to open
|
||||
if (otype == AyaType.NoType || id == 0)
|
||||
if (aType == AyaType.NoType || id == 0)
|
||||
{
|
||||
return ServerUrl;
|
||||
}
|
||||
@@ -353,11 +353,11 @@ namespace AyaNova.Biz
|
||||
{
|
||||
//goto event log for item
|
||||
// path: "/history/:ayatype/:recordid/:userlog?",
|
||||
return $"{ServerUrl}/history/{(int)otype}/{id}";
|
||||
return $"{ServerUrl}/history/{(int)aType}/{id}";
|
||||
}
|
||||
|
||||
//default is to open the object in question directly
|
||||
return $"{ServerUrl}/open/{(int)otype}/{id}";
|
||||
return $"{ServerUrl}/open/{(int)aType}/{id}";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -116,7 +116,7 @@ namespace AyaNova.Biz
|
||||
{
|
||||
//OPSMETRIC
|
||||
await JobsBiz.LogJobAsync(j.GId, "LT:JobFailed LT:TimedOut");
|
||||
log.LogError($"Job found job stuck in running status and set to failed: deadline={dtRunningDeadline.ToString()}, jobId={j.GId.ToString()}, jobname={j.Name}, jobtype={j.JobType.ToString()}, jobObjectType={j.ObjectType.ToString()}, jobObjectId={j.ObjectId.ToString()}");
|
||||
log.LogError($"Job found job stuck in running status and set to failed: deadline={dtRunningDeadline.ToString()}, jobId={j.GId.ToString()}, jobname={j.Name}, jobtype={j.JobType.ToString()}, jobAType={j.AType.ToString()}, jobObjectId={j.ObjectId.ToString()}");
|
||||
await JobsBiz.UpdateJobStatusAsync(j.GId, JobStatus.Failed);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user