Skip to content

Commit

Permalink
Merge pull request #471 from noi-techpark/main
Browse files Browse the repository at this point in the history
lowercase fix
  • Loading branch information
RudiThoeni authored Nov 19, 2024
2 parents 56a259e + 43a7bbc commit 2de946c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions OdhApiCore/Controllers/api/OdhTagController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ private Task<IActionResult> 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);

Expand All @@ -225,7 +226,7 @@ private Task<IActionResult> 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<IActionResult> Post([FromBody] ODHTagLinked odhtag)
{
Expand All @@ -249,7 +250,7 @@ public Task<IActionResult> 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<IActionResult> Put(string id, [FromBody] ODHTagLinked odhtag)
{
Expand Down
2 changes: 1 addition & 1 deletion OdhApiImporter/Controllers/UpdateApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ public async Task<IActionResult> 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";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ private async Task<UpdateDetail> SaveEventTagsToPG(List<JObject> 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;
Expand Down

0 comments on commit 2de946c

Please sign in to comment.