Skip to content
Snippets Groups Projects
Commit 7c5f3821 authored by Benedikt Heinrichs's avatar Benedikt Heinrichs Committed by Hanna Führ
Browse files

Fix: Invalidate Metadata

parent b459a2f9
No related branches found
No related tags found
2 merge requests!95Release: Sprint/2023 07 :robot:,!94Fix: Invalidate Metadata
......@@ -320,6 +320,14 @@ namespace Coscine.Api.Blob.Controllers
return BadRequest($"No provider for: \"{resource.Type.DisplayName}\".");
}
await resourceTypeDefinition.DeleteEntry(resource.Id.ToString(), path);
var userGraphName = $"{_rdfStoreConnector.UserUrlPrefix}/{user.Id}";
if (resourceTypeDefinition.ResourceTypeConfiguration.SpecificType?.Type != "linked")
{
_rdfStoreConnector.SetInvalidation(resource.Id.ToString(), path, "data", new Uri(userGraphName));
}
_rdfStoreConnector.SetInvalidation(resource.Id.ToString(), path, "metadata", new Uri(userGraphName));
LogAnalytics("Delete File", resourceId, path, user);
return NoContent();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment