Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BlobApi
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
backend
apis
BlobApi
Commits
7c5f3821
Commit
7c5f3821
authored
2 years ago
by
Benedikt Heinrichs
Committed by
Hanna Führ
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Invalidate Metadata
parent
b459a2f9
No related branches found
No related tags found
2 merge requests
!95
Release: Sprint/2023 07 :robot:
,
!94
Fix: Invalidate Metadata
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Blob/Controllers/BlobController.cs
+8
-0
8 additions, 0 deletions
src/Blob/Controllers/BlobController.cs
with
8 additions
and
0 deletions
src/Blob/Controllers/BlobController.cs
+
8
−
0
View file @
7c5f3821
...
@@ -320,6 +320,14 @@ namespace Coscine.Api.Blob.Controllers
...
@@ -320,6 +320,14 @@ namespace Coscine.Api.Blob.Controllers
return
BadRequest
(
$"No provider for: \"
{
resource
.
Type
.
DisplayName
}
\"."
);
return
BadRequest
(
$"No provider for: \"
{
resource
.
Type
.
DisplayName
}
\"."
);
}
}
await
resourceTypeDefinition
.
DeleteEntry
(
resource
.
Id
.
ToString
(),
path
);
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
);
LogAnalytics
(
"Delete File"
,
resourceId
,
path
,
user
);
return
NoContent
();
return
NoContent
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment