Skip to content

Commit

Permalink
fix: Disable broken upgrade plugins
Browse files Browse the repository at this point in the history
When using more than the built-in graphs the RepositoryUpdater fails to append data in the downloaded files.
Until this is resolved we need to disable the plugins and remain on knora-base version 28.
  • Loading branch information
seakayone committed Mar 14, 2024
1 parent e563ab9 commit 1862fff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion webapi/src/main/resources/knora-ontologies/knora-base.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
rdf:type owl:Ontology ;
rdfs:label "The Knora base ontology"@en ;
:attachedToProject knora-admin:SystemProject ;
:ontologyVersion "knora-base v30" .
:ontologyVersion "knora-base v28" .


#################################################################
Expand Down
2 changes: 1 addition & 1 deletion webapi/src/main/scala/org/knora/webapi/package.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package object webapi {
* The version of `knora-base` and of the other built-in ontologies that this version of Knora requires.
* Must be the same as the object of `knora-base:ontologyVersion` in the `knora-base` ontology being used.
*/
val KnoraBaseVersion: String = "knora-base v30"
val KnoraBaseVersion: String = "knora-base v28"

Check warning on line 14 in webapi/src/main/scala/org/knora/webapi/package.scala

View check run for this annotation

Codecov / codecov/patch

webapi/src/main/scala/org/knora/webapi/package.scala#L14

Added line #L14 was not covered by tests

/**
* `IRI` is a synonym for `String`, used to improve code readability.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package org.knora.webapi.store.triplestore.upgrade
import com.typesafe.scalalogging.Logger

import org.knora.webapi.messages.store.triplestoremessages.RdfDataObject
import org.knora.webapi.store.triplestore.upgrade.plugins.UpgradePluginPR3110
import org.knora.webapi.store.triplestore.upgrade.plugins.*

/**
Expand Down Expand Up @@ -64,8 +63,8 @@ object RepositoryUpdatePlan {
PluginForKnoraBaseVersion(versionNumber = 26, plugin = new MigrateOnlyBuiltInGraphs), // PR 3003
PluginForKnoraBaseVersion(versionNumber = 27, plugin = new MigrateOnlyBuiltInGraphs), // PR 3026
PluginForKnoraBaseVersion(versionNumber = 28, plugin = new MigrateOnlyBuiltInGraphs), // PR 3038
PluginForKnoraBaseVersion(versionNumber = 29, plugin = new UpgradePluginPR3110()),
PluginForKnoraBaseVersion(versionNumber = 30, plugin = new UpgradePluginPR3111()),
// PluginForKnoraBaseVersion(versionNumber = 29, plugin = new UpgradePluginPR3110()),
// PluginForKnoraBaseVersion(versionNumber = 30, plugin = new UpgradePluginPR3111()),
// KEEP IT ON THE BOTTOM
// From "versionNumber = 6" don't use prBasedVersionString!
)
Expand Down

0 comments on commit 1862fff

Please sign in to comment.