From b8d77e4310cbb0ef8bff185c52faae6735a26ca6 Mon Sep 17 00:00:00 2001 From: Nico Ferrante Date: Mon, 19 Aug 2024 16:56:58 +0100 Subject: [PATCH] RSDEV-271: Rename property --- pom.xml | 2 +- src/main/java/com/axiope/service/cfg/BaseConfig.java | 2 +- src/main/resources/bundles/system/system.properties | 2 +- src/main/resources/sqlUpdates/changeLog-rsdev-271.xml | 8 ++++---- .../service/RepositoryDepositHandlerTest.java | 2 +- .../service/impl/IntegrationsHandlerTest.java | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index fdf09eb3f..19ac7e280 100644 --- a/pom.xml +++ b/pom.xml @@ -2942,7 +2942,7 @@ 1.1.2 5.5.5 4.1.63.Final - 2.1.2 + RSDEV-271-model-2-SNAPSHOT 3.1.0 2.4.2 4.0.3 diff --git a/src/main/java/com/axiope/service/cfg/BaseConfig.java b/src/main/java/com/axiope/service/cfg/BaseConfig.java index 7279179b1..fd7b7bb64 100644 --- a/src/main/java/com/axiope/service/cfg/BaseConfig.java +++ b/src/main/java/com/axiope/service/cfg/BaseConfig.java @@ -1284,7 +1284,7 @@ public IRepository zenodoRepository() { * * @return the repository adapter */ - @Bean(name = "digital_commons_dataRepository") + @Bean(name = "digitalCommonsDataRepository") public IRepository digitalCommonsDataRepository() { DigitalCommonsDataRepository rc = new DigitalCommonsDataRepository(); log.info("Setting in repository implementation {}", rc); diff --git a/src/main/resources/bundles/system/system.properties b/src/main/resources/bundles/system/system.properties index b4204fa96..4da352266 100644 --- a/src/main/resources/bundles/system/system.properties +++ b/src/main/resources/bundles/system/system.properties @@ -343,7 +343,7 @@ system.property.description.dryad.available=Makes Dryad integration available. U and attach RSpace exports or documents to that submission. system.property.description.dmptool.available=Makes DMPTool integration available. system.property.description.dmponline.available=Makes DMPonline integration available. -system.property.description.digital_commons_data.available=Makes DigitalCommonsData integration available. +system.property.description.digitalCommonsData.available=Makes DigitalCommonsData integration available. system.property.description.argos.available=Makes Argos integration available. system.property.description.zenodo.available=Makes Zenodo intergration available. system.property.description.github.available=Makes Github integration available. After enabling, user can add links \ diff --git a/src/main/resources/sqlUpdates/changeLog-rsdev-271.xml b/src/main/resources/sqlUpdates/changeLog-rsdev-271.xml index c99cd2a2b..823bf7a0c 100644 --- a/src/main/resources/sqlUpdates/changeLog-rsdev-271.xml +++ b/src/main/resources/sqlUpdates/changeLog-rsdev-271.xml @@ -10,20 +10,20 @@ - + + valueComputed="(select id from PropertyDescriptor where name ='digitalCommonsData.available')"/> + valueComputed="(select sp.id from SystemProperty sp inner join PropertyDescriptor pd on sp.descriptor_id=pd.id where pd.name='digitalCommonsData.available')"/> @@ -32,7 +32,7 @@ - + diff --git a/src/test/java/com/researchspace/service/RepositoryDepositHandlerTest.java b/src/test/java/com/researchspace/service/RepositoryDepositHandlerTest.java index 0f5e177ec..43ec9c946 100644 --- a/src/test/java/com/researchspace/service/RepositoryDepositHandlerTest.java +++ b/src/test/java/com/researchspace/service/RepositoryDepositHandlerTest.java @@ -98,7 +98,7 @@ public void testGetDigitalCommonsDataConfigSuccessfully() throws MalformedURLExc SystemPropertyTestFactory.createAnyAppWithConfigElements( anyUser, App.APP_DIGITAL_COMMONS_DATA); mockGetSessionUser(); - String DIGITAL_COMMONS_DATA_REPO = "digital_commons_dataRepository"; + String DIGITAL_COMMONS_DATA_REPO = "digitalCommonsDataRepository"; setUpRepoExpectations(DIGITAL_COMMONS_DATA_REPO); RepoUIConfigInfo returnedInfo = diff --git a/src/test/java/com/researchspace/service/impl/IntegrationsHandlerTest.java b/src/test/java/com/researchspace/service/impl/IntegrationsHandlerTest.java index 4faf53b8f..e76549e03 100644 --- a/src/test/java/com/researchspace/service/impl/IntegrationsHandlerTest.java +++ b/src/test/java/com/researchspace/service/impl/IntegrationsHandlerTest.java @@ -304,7 +304,7 @@ public void getSlackOptions() { @Test public void getDigitalCommonsDataOptions() { - String DIGITAL_COMMONS_DATA_AVAILABLE = "digital_commons_data.available"; + String DIGITAL_COMMONS_DATA_AVAILABLE = "digitalCommonsData.available"; SystemPropertyValue digitalCommonsDataAvailable = getSystemPropertyValueAllowed(DIGITAL_COMMONS_DATA_AVAILABLE);