From 30a3f5ac74003286c1500b5d0f71da7ac02a4343 Mon Sep 17 00:00:00 2001 From: Arnaud Mengus Date: Tue, 28 May 2024 15:41:05 +0000 Subject: [PATCH] refactor: Remove @Profile("!test") annotation from JobRunrConfig The @Profile("!test") annotation was removed from the JobRunrConfig class. This change ensures that the configuration is applied regardless of the active profile, improving consistency and eliminating potential issues related to test environments. --- backend/src/main/java/ai/dragon/config/JobRunrConfig.java | 2 -- backend/src/main/java/ai/dragon/entity/IngestorEntity.java | 1 - 2 files changed, 3 deletions(-) diff --git a/backend/src/main/java/ai/dragon/config/JobRunrConfig.java b/backend/src/main/java/ai/dragon/config/JobRunrConfig.java index c99289fd..61730b78 100644 --- a/backend/src/main/java/ai/dragon/config/JobRunrConfig.java +++ b/backend/src/main/java/ai/dragon/config/JobRunrConfig.java @@ -5,10 +5,8 @@ import org.jobrunr.storage.StorageProvider; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.context.annotation.Profile; @Configuration -@Profile("!test") public class JobRunrConfig { @Bean public StorageProvider storageProvider(JobMapper jobMapper) { diff --git a/backend/src/main/java/ai/dragon/entity/IngestorEntity.java b/backend/src/main/java/ai/dragon/entity/IngestorEntity.java index 265cf7de..34dc6991 100644 --- a/backend/src/main/java/ai/dragon/entity/IngestorEntity.java +++ b/backend/src/main/java/ai/dragon/entity/IngestorEntity.java @@ -30,7 +30,6 @@ public class IngestorEntity implements IAbstractEntity { @Schema(description = "Name of the Ingestor. Must be unique.") private String name; - @NotNull @Schema(description = "Type of the Ingestor") private IngestorType type;