This commit is contained in:
@@ -1,7 +1,12 @@
|
|||||||
PRIORITY - ALWAYS Lowest level stuff first
|
PRIORITY - ALWAYS Lowest level stuff first
|
||||||
=-=-=-=-
|
=-=-=-=-
|
||||||
|
{
|
||||||
|
"login": "manager",
|
||||||
|
"password": "l3tm3in"
|
||||||
|
}
|
||||||
|
|
||||||
todo: apiokresponse returns readonly value every time, but I check it anyway at the client and biz object itself doesn't set it I don't think, so...should it be removed?
|
|
||||||
|
//TODO: Does this need to create an event so we know which user created the job?
|
||||||
todo: Is there a log that records past jobs, how long can they be viewed?
|
todo: Is there a log that records past jobs, how long can they be viewed?
|
||||||
todo: Rename the link to AyaNova App on the server page to just "AyaNova"
|
todo: Rename the link to AyaNova App on the server page to just "AyaNova"
|
||||||
todo: translation cjkindex, no way to set this value currently
|
todo: translation cjkindex, no way to set this value currently
|
||||||
@@ -12,6 +17,8 @@ todo: OPS routes (SERVER AND CLIENT)
|
|||||||
- Backup, restore https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3369
|
- Backup, restore https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3369
|
||||||
- These need to be done fairly early on in order to have shit to play with for testing etc
|
- These need to be done fairly early on in order to have shit to play with for testing etc
|
||||||
BACKUP & related stuff that should be in v.initial release https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3369
|
BACKUP & related stuff that should be in v.initial release https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/3369
|
||||||
|
todo: OPS notification created for failed jobs
|
||||||
|
also maybe direct immediate email bypassing generator?
|
||||||
todo: (BREAK THIS OUT INTO LATER/NOW/CASES) there are several outstanding AUTHENTICATION related cases in rockfish for RAVEN
|
todo: (BREAK THIS OUT INTO LATER/NOW/CASES) there are several outstanding AUTHENTICATION related cases in rockfish for RAVEN
|
||||||
e.g. https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1924
|
e.g. https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1924
|
||||||
https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1835
|
https://rockfish.ayanova.com/default.htm#!/rfcaseEdit/1835
|
||||||
|
|||||||
@@ -230,6 +230,9 @@ namespace AyaNova.Api.Controllers
|
|||||||
j.Name = "TestWidgetJob";
|
j.Name = "TestWidgetJob";
|
||||||
j.JobType = JobType.TestWidgetJob;
|
j.JobType = JobType.TestWidgetJob;
|
||||||
await JobsBiz.AddJobAsync(j, ct);
|
await JobsBiz.AddJobAsync(j, ct);
|
||||||
|
//Log
|
||||||
|
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserIdFromContext.Id(HttpContext.Items), 0, AyaType.ServerJob, AyaEvent.Created, $"{j.JobType} {j.Name}"), ct);
|
||||||
|
|
||||||
return Accepted(new { JobId = j.GId });//202 accepted
|
return Accepted(new { JobId = j.GId });//202 accepted
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,8 +141,7 @@ namespace AyaNova.Biz
|
|||||||
/// <param name="ct"></param>
|
/// <param name="ct"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
internal static async Task<OpsJob> AddJobAsync(OpsJob newJob, AyContext ct)
|
internal static async Task<OpsJob> AddJobAsync(OpsJob newJob, AyContext ct)
|
||||||
{
|
{
|
||||||
//TODO: Does this need to create an event so we know which user created the job?
|
|
||||||
await ct.OpsJob.AddAsync(newJob);
|
await ct.OpsJob.AddAsync(newJob);
|
||||||
await ct.SaveChangesAsync();
|
await ct.SaveChangesAsync();
|
||||||
return newJob;
|
return newJob;
|
||||||
|
|||||||
@@ -1,15 +1,8 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Collections.Generic;
|
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
|
||||||
|
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using EnumsNET;
|
|
||||||
using AyaNova.Util;
|
|
||||||
using AyaNova.Api.ControllerHelpers;
|
|
||||||
using AyaNova.Biz;
|
|
||||||
using AyaNova.Models;
|
using AyaNova.Models;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user