Skip to content

IAV-1225/bugfix: improve BOAMP filtering and prompt context handling

abdellatif elkerbani a demandé de fusionner bugfix/IAV-1225 vers develop
  • Add BOAMP descriptor-based sector matching by introducing descripteurs in tender DTO/entity flow (BoampApiServiceImpl -> BoampPollingScheduler -> Tender), replacing fragile title-only sector detection.
  • Refactor BoampFilterKeywordMapper to map frontend sector IDs to official BOAMP descripteur_libelle values, add unknown-sector warning logs, and keep penalty clause keyword mapping for title-based matching.
  • Update TenderFilteringServiceImpl to use OR logic across enabled alert types (NEW_TENDER, PENALTY_CLAUSES, APPROACHING_DEADLINE), with descriptor-first matching and title/type fallback.
  • Introduce TenderPersistenceService to persist newly fetched BOAMP tenders in a dedicated transaction boundary, keeping external API calls and webhook delivery outside DB transaction scope.
  • Enrich agent chat prompt generation by loading organization data with fetch join and appending priority directives for country scope (France/Maroc), configured response language, and configured response tone.
  • Make wizard identity language optional by removing @NotNull on primaryLanguage and aligning identityCompleted checks in wizard/configuration services to require response tone only.
  • Add integration replication scaffolding for wizard flow: new endpoint path constant, WizardReplicateIntegrationRequest, and AgentIntegrationResponseDTO.

Closes IAV-1225

Rapports de requête de fusion