From 77425c13bf8a45fd388248cbafcb1c949b5a1f3e Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 25 Apr 2024 12:51:30 +0300 Subject: [PATCH] src/main/java: remove report() from curation tasks Results are a single-line status that shows the result of the task, but reports are like a running log of changes to the item and have more complicated use cases and configuration requirements. For now I will disable reports since I'm not using them. --- .../java/io/github/ilri/cgspace/ctasks/CountryCodeTagger.java | 1 - src/main/java/io/github/ilri/cgspace/ctasks/NormalizeDOIs.java | 1 - 2 files changed, 2 deletions(-) diff --git a/src/main/java/io/github/ilri/cgspace/ctasks/CountryCodeTagger.java b/src/main/java/io/github/ilri/cgspace/ctasks/CountryCodeTagger.java index 993f62f..e215f4d 100644 --- a/src/main/java/io/github/ilri/cgspace/ctasks/CountryCodeTagger.java +++ b/src/main/java/io/github/ilri/cgspace/ctasks/CountryCodeTagger.java @@ -77,7 +77,6 @@ public class CountryCodeTagger extends AbstractCurationTask { } setResult(alpha2Result.getResult()); - report(alpha2Result.getResult()); } return alpha2Result.getStatus(); diff --git a/src/main/java/io/github/ilri/cgspace/ctasks/NormalizeDOIs.java b/src/main/java/io/github/ilri/cgspace/ctasks/NormalizeDOIs.java index 99e6234..e7573fc 100644 --- a/src/main/java/io/github/ilri/cgspace/ctasks/NormalizeDOIs.java +++ b/src/main/java/io/github/ilri/cgspace/ctasks/NormalizeDOIs.java @@ -68,7 +68,6 @@ public class NormalizeDOIs extends AbstractCurationTask { } else { result = "All DOIs already normalized"; } - report(result); setResult(result); return Curator.CURATE_SUCCESS;