Skip to content

Commit

Permalink
Merge branch '544-rename-camtrap-endpoint' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-podolskiy90 committed Jan 22, 2024
2 parents 99f7921 + 6c66b78 commit 652e081
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
<spring-cloud-sleuth.version>2.2.8.RELEASE</spring-cloud-sleuth.version>

<!-- GBIF -->
<gbif-api.version>1.13.0</gbif-api.version>
<gbif-api.version>1.13.1-SNAPSHOT</gbif-api.version>
<gbif-common.version>0.59</gbif-common.version>
<gbif-common-mybatis.version>1.3</gbif-common-mybatis.version>
<gbif-common-ws.version>1.26</gbif-common-ws.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public class LegacyDataset extends Dataset implements LegacyEntity {
LegacyResourceConstants.SAMPLING_EVENT_SERVICE_TYPE);
private static final Set<String> DATA_PACKAGE_ENDPOINT_TYPE_ALTERNATIVES =
ImmutableSet.of(
EndpointType.CAMTRAP_DP_v_0_4.name(), LegacyResourceConstants.CAMTRAP_DP_SERVICE_TYPE);
EndpointType.CAMTRAP_DP.name(), LegacyResourceConstants.CAMTRAP_DP_SERVICE_TYPE);

/** Default constructor. */
public LegacyDataset() {
Expand Down Expand Up @@ -758,7 +758,7 @@ private void addDataPackageEndpoint() {
String url = serviceUrlsTokenizer.nextToken();
if (type != null && url != null && DATA_PACKAGE_ENDPOINT_TYPE_ALTERNATIVES.contains(type)) {
// create endpoint
Endpoint endpoint = createEndpoint(url, EndpointType.CAMTRAP_DP_v_0_4);
Endpoint endpoint = createEndpoint(url, EndpointType.CAMTRAP_DP);
if (endpoint != null) {
// set it
dataPackageEndpoint = endpoint;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">

<changeSet id="115" author="mpodolskiy" runInTransaction="false">
<sql splitStatements="false" stripComments="false">
<![CDATA[
ALTER TYPE enum_endpoint_type RENAME VALUE 'CAMTRAP_DP_v_0_4' TO 'CAMTRAP'
]]>
</sql>
</changeSet>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@
<include file="liquibase/127-organization-country-not-null.xml" />
<include file="liquibase/128-parent-code-occurrence-mapping.xml" />
<include file="liquibase/129-duplicate-dataset-key-constraint.xml" />
<include file="liquibase/130-rename-camtrap-dp-endpoint-type.xml" />
</databaseChangeLog>

0 comments on commit 652e081

Please sign in to comment.