diff --git a/OdhApiCore/Controllers/api/OdhTagController.cs b/OdhApiCore/Controllers/api/OdhTagController.cs index 837d7c9e..0b769884 100644 --- a/OdhApiCore/Controllers/api/OdhTagController.cs +++ b/OdhApiCore/Controllers/api/OdhTagController.cs @@ -203,7 +203,8 @@ private Task GetSingle(string id, string? language, string[] fiel var query = QueryFactory.Query("smgtags") .Select("data") - .Where("id", id.ToLower()) + //.Where("id", id.ToLower()) + .Where("id", "ILIKE", id) .When(!String.IsNullOrEmpty(additionalfilter), q => q.FilterAdditionalDataByCondition(additionalfilter)) .FilterDataByAccessRoles(UserRolesToFilter); @@ -225,7 +226,7 @@ private Task GetSingle(string id, string? language, string[] fiel [ApiExplorerSettings(IgnoreApi = true)] [InvalidateCacheOutput(nameof(GetODHTagsAsync))] //[Authorize(Roles = "DataWriter,DataCreate,ODHTagManager,ODHTagCreate")] - [AuthorizeODH(PermissionAction.Delete)] + [AuthorizeODH(PermissionAction.Create)] [HttpPost, Route("ODHTag")] public Task Post([FromBody] ODHTagLinked odhtag) { @@ -249,7 +250,7 @@ public Task Post([FromBody] ODHTagLinked odhtag) [ApiExplorerSettings(IgnoreApi = true)] [InvalidateCacheOutput(nameof(GetODHTagsAsync))] //[Authorize(Roles = "DataWriter,DataModify,ODHTagManager,ODHTagModify,ODHTagUpdate")] - [AuthorizeODH(PermissionAction.Delete)] + [AuthorizeODH(PermissionAction.Update)] [HttpPut, Route("ODHTag/{id}")] public Task Put(string id, [FromBody] ODHTagLinked odhtag) { diff --git a/OdhApiImporter/Controllers/UpdateApiController.cs b/OdhApiImporter/Controllers/UpdateApiController.cs index ed1550e4..a7f28008 100644 --- a/OdhApiImporter/Controllers/UpdateApiController.cs +++ b/OdhApiImporter/Controllers/UpdateApiController.cs @@ -999,7 +999,7 @@ public async Task ImportLTSEventTagsToODHTags( CancellationToken cancellationToken = default) { UpdateDetail updatedetail = default(UpdateDetail); - string operation = "Import LTS Events Tags"; + string operation = "Import LTS Events Tags To ODH Tags"; string updatetype = GetUpdateType(null); string source = "lts"; string otherinfo = "events.tags"; diff --git a/OdhApiImporter/Helpers/LTSAPI/event/LTSApiEventTagsToODHTagImportHelper.cs b/OdhApiImporter/Helpers/LTSAPI/event/LTSApiEventTagsToODHTagImportHelper.cs index e0fdaab7..69ac8ace 100644 --- a/OdhApiImporter/Helpers/LTSAPI/event/LTSApiEventTagsToODHTagImportHelper.cs +++ b/OdhApiImporter/Helpers/LTSAPI/event/LTSApiEventTagsToODHTagImportHelper.cs @@ -116,6 +116,7 @@ private async Task SaveEventTagsToPG(List ltsdata) //Push Data if changed //push modified data to all published Channels + //TODO adding the push status to the response result.pushed = await ImportUtils.CheckIfObjectChangedAndPush(OdhPushnotifier, result, result.id, result.odhtype); newimportcounter = newimportcounter + result.created ?? 0;