Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Problem with updating cache after deleting comments (DEV-508) #2060

Merged
merged 3 commits into from May 10, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -3581,9 +3581,8 @@ class OntologyResponderV2(responderData: ResponderData) extends Responder(respon
}

// Update the ontology cache using the new class definition.
newReadClassInfo: ReadClassInfoV2 = ReadClassInfoV2(
entityInfoContent = loadedClassDef,
allBaseClasses = classToUpdate.allBaseClasses
newReadClassInfo: ReadClassInfoV2 = classToUpdate.copy(
entityInfoContent = classDefWithoutComment
)

updatedOntologyMetadata: OntologyMetadataV2 = ontology.ontologyMetadata.copy(
Expand Down
Expand Up @@ -60,6 +60,8 @@ WHERE {
?ontology rdf:type owl:Ontology ;
knora-base:lastModificationDate "@lastModificationDate"^^xsd:dateTime .

?class ?p ?o .

OPTIONAL {
?class <@predicateToUpdate> ?oldObj .
}
Expand Down