fix: kafka dev standalone, OIDC realm LUM, Flyway out-of-order, shutdown guard, TypeRef categorie/modules

- docker-compose.dev.yml: retire le service kafka (standalone existant sur :9092), kafka-ui pointe host.docker.internal:9092
- application-dev.properties: OIDC admin-service realm corrigé lions-user-manager (fix AUTH changement mdp)
- application-prod.properties: nouvelle var KEYCLOAK_LUM_AUTH_SERVER_URL + fallback KEYCLOAK_CLIENT_SECRET
- application.properties: quarkus.flyway.out-of-order=true (évite échec si migration hors-séquence)
- V10 renommé V10_1 (évite conflit avec historique Flyway existant)
- AlertMonitoringService: guard Arc.container().isRunning() pour éviter NPE au shutdown
- TypeOrganisationReferenceResource: forward categorie + modulesRequis au service
- Tests: coverage TypeOrganisationReferenceResource + TypeReferenceService
This commit is contained in:
dahoud
2026-04-11 01:25:45 +00:00
parent 065b0008b0
commit 31e8d5534c
9 changed files with 72 additions and 51 deletions

View File

@@ -70,6 +70,8 @@ public class TypeOrganisationReferenceResource {
.estDefaut(request.estDefaut())
.estSysteme(request.estSysteme())
.organisationId(request.organisationId())
.categorie(request.categorie())
.modulesRequis(request.modulesRequis())
.build();
try {
TypeReferenceResponse created = typeReferenceService.creer(withDomaine);

View File

@@ -5,6 +5,7 @@ import dev.lions.unionflow.server.entity.SystemAlert;
import dev.lions.unionflow.server.repository.AlertConfigurationRepository;
import dev.lions.unionflow.server.repository.SystemAlertRepository;
import dev.lions.unionflow.server.repository.SystemLogRepository;
import io.quarkus.arc.Arc;
import io.quarkus.scheduler.Scheduled;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
@@ -47,6 +48,10 @@ public class AlertMonitoringService {
@Scheduled(cron = "0 * * * * ?") // Toutes les minutes à la seconde 0
@Transactional
public void monitorSystemMetrics() {
// Guard contre l'exécution pendant le shutdown Quarkus (Arc.container() null → NPE)
if (!Arc.container().isRunning()) {
return;
}
try {
log.debug("Running scheduled system metrics monitoring...");