migration fix

This commit is contained in:
Efstratios Giannopoulos 2024-05-01 13:45:57 +03:00
parent fc9a4134e7
commit 81156955dc
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ public class TagMigrationService {
boolean tagAlreadyExists;
if (elasticDataset.getTags() != null && !elasticDataset.getTags().isEmpty()) {
for (Tag tag : elasticDataset.getTags()) {
if (tag.getName() == null || tag.getName().isBlank()) continue;
tagAlreadyExists = savedTagIdsByName.containsKey(new TagKey(item, tag)); //TODO we want owner logic ?
if (!tagAlreadyExists) {
TagEntity tagEntity = new TagEntity();