Skip to content
Snippets Groups Projects
Commit d0c1eabb authored by Hanna Führ's avatar Hanna Führ
Browse files

Merge branch 'Issue/2464-invalidateMeta' into 'dev'

Fix: Invalidate Metadata

See merge request !94
parents b459a2f9 7c5f3821
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