Skip to content

Commit

Permalink
MID-8842 ninja - verify action improved texts
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Sep 4, 2023
1 parent bb81b4a commit 87d484b
Showing 1 changed file with 16 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
*/
package com.evolveum.midpoint.ninja.action;

import java.io.File;
import java.io.IOException;
import java.io.Writer;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Callable;

import org.apache.commons.io.FileUtils;
import org.jetbrains.annotations.NotNull;

import com.evolveum.midpoint.ninja.action.verify.VerificationReporter;
import com.evolveum.midpoint.ninja.action.worker.VerifyConsumerWorker;
import com.evolveum.midpoint.ninja.impl.NinjaApplicationContextLevel;
Expand All @@ -16,18 +28,6 @@
import com.evolveum.midpoint.schema.validator.UpgradeValidationResult;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType;

import org.apache.commons.io.FileUtils;
import org.jetbrains.annotations.NotNull;

import java.io.File;
import java.io.IOException;
import java.io.Writer;
import java.util.Collection;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Callable;

/**
* Created by Viliam Repan (lazyman).
*/
Expand Down Expand Up @@ -96,10 +96,13 @@ public VerifyResult execute() throws Exception {
log.info("XML dump with delta for each item saved to '{}'", options.getOutput().getPath() + VerificationReporter.DELTA_FILE_NAME_SUFFIX);
}

// todo this should not show when action is a part of complex action and next step is prepared automatically
// FIXME: ADD links (do not display in batch mode)
// FIXME: Could We could try to infer script name?
if (context.isUserMode() && !partial) {
if (result.getCriticalCount() > 0) {
log.info("");
log.info("Critical issues should be fixed before upgrade as they could cause major problems after upgrade (e.g. prevent midpoint start).");
}
log.info("");
log.info("Please see documentation for use of verification report in upgrade process and modify it accordingly.");
log.info("After you've reviewed verification report and marked changes to skip you can continue upgrade process "
Expand Down

0 comments on commit 87d484b

Please sign in to comment.