Resolve RED-9472 "Feature/" #537

Open
yannik.hampe wants to merge 113 commits from feature/RED-9472 into master
2 changed files with 14 additions and 14 deletions
Showing only changes of commit d2994f9e14 - Show all commits

View File

@ -63,6 +63,7 @@ public class RuleBuilderController implements RuleBuilderResource {
} }
try { try {
var droolsValidation = droolsValidationService.testRules(new RuleValidationModel(RuleFileType.ENTITY.name(), mergingResult.getMergedRules())); var droolsValidation = droolsValidationService.testRules(new RuleValidationModel(RuleFileType.ENTITY.name(), mergingResult.getMergedRules()));
log.info("result of validation: " + droolsValidation);
droolsValidationResponse = DroolsValidationResponse.builder() droolsValidationResponse = DroolsValidationResponse.builder()
.syntaxErrorMessages(droolsValidation.getSyntaxErrorMessages() .syntaxErrorMessages(droolsValidation.getSyntaxErrorMessages()
.stream() .stream()
@ -99,7 +100,7 @@ public class RuleBuilderController implements RuleBuilderResource {
} catch (Exception e) { } catch (Exception e) {
throw new RulesValidationException("Could not test rules: " + e.getMessage(), e); throw new RulesValidationException("Could not test rules: " + e.getMessage(), e);
} }
log.info("result after validation: {}",rulesUpdateRequest); log.info("result after validation: {}", rulesUpdateRequest);
return new ResponseEntity<>(rulesUploadResponse, HttpStatus.OK); return new ResponseEntity<>(rulesUploadResponse, HttpStatus.OK);
} }

View File

@ -87,7 +87,6 @@ public class RuleBuilderService {
.stream()) .stream())
.distinct() .distinct()
.toList()); .toList());
log.info("merged rules: {}", RuleFileFactory.buildRuleString(ruleFileBluePrintExisting, false, false));
return RuleMergingResult.builder() return RuleMergingResult.builder()
.mergedRules(RuleFileFactory.buildRuleString(mergedRuleFileBlueprint, false, false)) .mergedRules(RuleFileFactory.buildRuleString(mergedRuleFileBlueprint, false, false))
.addedGlobalsOffset(mergedRuleFileBlueprint.getGlobals().length()) .addedGlobalsOffset(mergedRuleFileBlueprint.getGlobals().length())