Bulk is out Batch is in

This commit is contained in:
2020-12-10 18:27:31 +00:00
parent 75bf3d4bcc
commit 1fc4247149
10 changed files with 33 additions and 33 deletions

View File

@@ -424,7 +424,7 @@ namespace AyaNova.Api.Controllers
}
/// <summary>
/// Bulk delete attachments
/// Batch delete attachments
///
/// </summary>
/// <returns>No content</returns>
@@ -459,7 +459,7 @@ namespace AyaNova.Api.Controllers
return NoContent();
}
/// <summary>
/// Bulk move attachments
/// Batch move attachments
///
/// </summary>
/// <returns>No content</returns>

View File

@@ -191,7 +191,7 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Bulk DELETE list of object id's specified
/// Batch DELETE list of object id's specified
/// </summary>
/// <param name="dataListSelection"></param>
/// <returns>Job Id</returns>
@@ -215,7 +215,7 @@ namespace AyaNova.Api.Controllers
if (dataListSelection.SelectedRowIds.Length == 0)
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_REQUIRED, null, "List of ids"));
var JobName = $"LT:BatchOperation: DELETE on {dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength} specified)";
var JobName = $"LT:BatchDeleteJob - LT:{dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength})";
JObject o = JObject.FromObject(new
{
idList = dataListSelection.SelectedRowIds

View File

@@ -77,7 +77,7 @@ namespace AyaNova.Api.Controllers
//
/// <summary>
/// Bulk add tags to list of object id's specified
/// Batch add tags to list of object id's specified
/// </summary>
/// <param name="tag"></param>
/// <param name="dataListSelection"></param>
@@ -107,7 +107,7 @@ namespace AyaNova.Api.Controllers
if (dataListSelection.SelectedRowIds.Length == 0)
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_REQUIRED, null, "List of ids"));
var JobName = $"Bulk operation: Add tag \"{tag}\" on {dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength} specified)";
var JobName = $"Batch job: Add tag \"{tag}\" on {dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength} specified)";
JObject o = JObject.FromObject(new
{
idList = dataListSelection.SelectedRowIds,
@@ -127,7 +127,7 @@ namespace AyaNova.Api.Controllers
}
/// <summary>
/// Bulk add tags to all objects of type specified
/// Batch add tags to all objects of type specified
/// </summary>
/// <param name="ayaType"></param>
/// <param name="tag"></param>
@@ -148,7 +148,7 @@ namespace AyaNova.Api.Controllers
if (string.IsNullOrWhiteSpace(tag))
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_REQUIRED, null, "tag"));
var JobName = $"Bulk operation: Add tag \"{tag}\" on any {ayaType}";
var JobName = $"Batch job: Add tag \"{tag}\" on any {ayaType}";
JObject o = JObject.FromObject(new
{
tag = tag
@@ -167,7 +167,7 @@ namespace AyaNova.Api.Controllers
}
/// <summary>
/// Bulk remove tags to list of object id's specified
/// Batch remove tags to list of object id's specified
/// </summary>
/// <param name="tag"></param>
/// <param name="dataListSelection"></param>
@@ -197,7 +197,7 @@ namespace AyaNova.Api.Controllers
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_REQUIRED, null, "List of ids"));
var JobName = $"Bulk operation: Remove tag \"{tag}\" from {dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength} specified)";
var JobName = $"Batch job: Remove tag \"{tag}\" from {dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength} specified)";
JObject o = JObject.FromObject(new
{
idList = dataListSelection.SelectedRowIds,
@@ -218,7 +218,7 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Bulk remove tags to all objects of type specified
/// Batch remove tags to all objects of type specified
/// </summary>
/// <param name="ayaType"></param>
/// <param name="tag"></param>
@@ -239,7 +239,7 @@ namespace AyaNova.Api.Controllers
if (string.IsNullOrWhiteSpace(tag))
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_REQUIRED, null, "tag"));
var JobName = $"Bulk operation: Remove tag \"{tag}\" from any {ayaType}";
var JobName = $"Batch job: Remove tag \"{tag}\" from any {ayaType}";
JObject o = JObject.FromObject(new
{
tag = tag
@@ -259,7 +259,7 @@ namespace AyaNova.Api.Controllers
/// <summary>
/// Bulk replace tags to list of object id's specified
/// Batch replace tags to list of object id's specified
/// </summary>
/// <param name="fromTag"></param>
/// <param name="toTag"></param>
@@ -288,7 +288,7 @@ namespace AyaNova.Api.Controllers
if (dataListSelection.SelectedRowIds.Length == 0)
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_REQUIRED, null, "List of ids"));
var JobName = $"Bulk operation: Replace tag \"{fromTag}\" with tag \"{toTag}\" on {dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength} specified)";
var JobName = $"Batch job: Replace tag \"{fromTag}\" with tag \"{toTag}\" on {dataListSelection.ObjectType} ({dataListSelection.SelectedRowIds.LongLength} specified)";
JObject o = JObject.FromObject(new
{
idList = dataListSelection.SelectedRowIds,
@@ -309,7 +309,7 @@ namespace AyaNova.Api.Controllers
}
/// <summary>
/// Bulk replace tags to all objects of type specified
/// Batch replace tags to all objects of type specified
/// </summary>
/// <param name="ayaType"></param>
/// <param name="fromTag"></param>
@@ -335,7 +335,7 @@ namespace AyaNova.Api.Controllers
if (string.IsNullOrWhiteSpace(toTag))
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_REQUIRED, null, "toTag"));
var JobName = $"Bulk operation: Replace tag \"{fromTag}\" with tag \"{toTag}\" on any {ayaType}";
var JobName = $"Batch job: Replace tag \"{fromTag}\" with tag \"{toTag}\" on any {ayaType}";
JObject o = JObject.FromObject(new
{
tag = fromTag,