diff --git a/src/org/snaccooperative/operations/SNACPerformUploadsOperation.java b/src/org/snaccooperative/operations/SNACPerformUploadsOperation.java index beacd65..d2c6043 100644 --- a/src/org/snaccooperative/operations/SNACPerformUploadsOperation.java +++ b/src/org/snaccooperative/operations/SNACPerformUploadsOperation.java @@ -93,6 +93,9 @@ public void run() { List links = new ArrayList(items.size()); List responses = new ArrayList(items.size()); + // Disable API Response // TODO: Add settings flag to allow API Response + Boolean includeAPIResponseColumn = false; + for (int i = 0; i < items.size(); i++) { SNACUploadItem item = items.get(i); int row = item.rowIndex(); @@ -103,7 +106,9 @@ public void run() { messages.add(new CellAtRow(row, new Cell(uploadResponse.getMessage(), null))); ids.add(new CellAtRow(row, new Cell(uploadResponse.getIDString(), null))); links.add(new CellAtRow(row, new Cell(uploadResponse.getURI(), null))); - responses.add(new CellAtRow(row, new Cell(uploadResponse.getAPIResponse(), null))); + if (includeAPIResponseColumn ) { + responses.add(new CellAtRow(row, new Cell(uploadResponse.getAPIResponse(), null))); + } _progress = i * 100 / items.size(); @@ -154,7 +159,9 @@ public void run() { addHistoryEntry(messageColumn, messages); addHistoryEntry(idColumn, ids); addHistoryEntry(uriColumn, links); - addHistoryEntry(responseColumn, responses); + if (includeAPIResponseColumn ) { + addHistoryEntry(responseColumn, responses); + } _project.processManager.onDoneProcess(this); }