From ef3d54d6a338e0fc23bcf1f1d7b5d85bce5c441f Mon Sep 17 00:00:00 2001 From: sgiannopoulos Date: Wed, 8 May 2024 17:20:35 +0300 Subject: [PATCH] tag label change size --- backend/core/src/main/java/org/opencdmp/data/TagEntity.java | 2 +- dmp-db-scema/updates/00.01.015_addTag.sql | 2 +- .../main/java/eu/old/eudat/migration/TagMigrationService.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/core/src/main/java/org/opencdmp/data/TagEntity.java b/backend/core/src/main/java/org/opencdmp/data/TagEntity.java index c6d416a5f..5f2d9ea3a 100644 --- a/backend/core/src/main/java/org/opencdmp/data/TagEntity.java +++ b/backend/core/src/main/java/org/opencdmp/data/TagEntity.java @@ -19,7 +19,7 @@ public class TagEntity extends TenantScopedBaseEntity { @Column(name = "\"label\"", length = TagEntity._labelLength, nullable = false) private String label; public static final String _label = "label"; - public static final int _labelLength = 250; + public static final int _labelLength = 1024; @Column(name = "is_active", nullable = false) @Convert(converter = IsActiveConverter.class) diff --git a/dmp-db-scema/updates/00.01.015_addTag.sql b/dmp-db-scema/updates/00.01.015_addTag.sql index b6d43c70c..a630cfe49 100644 --- a/dmp-db-scema/updates/00.01.015_addTag.sql +++ b/dmp-db-scema/updates/00.01.015_addTag.sql @@ -7,7 +7,7 @@ BEGIN CREATE TABLE public."Tag" ( id uuid NOT NULL, - label character varying(250) COLLATE pg_catalog."default" NOT NULL, + label character varying(1024) COLLATE pg_catalog."default" NOT NULL, created_by uuid, is_active smallint NOT NULL, created_at timestamp without time zone NOT NULL, diff --git a/dmp-migration-tool/web/src/main/java/eu/old/eudat/migration/TagMigrationService.java b/dmp-migration-tool/web/src/main/java/eu/old/eudat/migration/TagMigrationService.java index 520fa51f0..b9eb6b79a 100644 --- a/dmp-migration-tool/web/src/main/java/eu/old/eudat/migration/TagMigrationService.java +++ b/dmp-migration-tool/web/src/main/java/eu/old/eudat/migration/TagMigrationService.java @@ -58,7 +58,7 @@ public class TagMigrationService { for (Dataset item : items) { List found = elasticDatasets.stream().filter(x -> item.getId().toString().equals(x.getId())).toList(); if (found.isEmpty()) { - logger.error("No dataset with id {} found on elastic search. Skipping tag migration for this dataset", item.getId()); + //logger.error("No dataset with id {} found on elastic search. Skipping tag migration for this dataset", item.getId()); continue; } eu.old.eudat.elastic.entities.Dataset elasticDataset = found.getFirst();