diff --git a/Model/src/main/java/org/gusdb/wdk/model/fix/table/edaanalysis/plugins/VDIMigrationPlugin.java b/Model/src/main/java/org/gusdb/wdk/model/fix/table/edaanalysis/plugins/VDIMigrationPlugin.java index 841140524..3860e55bd 100644 --- a/Model/src/main/java/org/gusdb/wdk/model/fix/table/edaanalysis/plugins/VDIMigrationPlugin.java +++ b/Model/src/main/java/org/gusdb/wdk/model/fix/table/edaanalysis/plugins/VDIMigrationPlugin.java @@ -127,12 +127,12 @@ public TableRowInterfaces.RowResult processRecord(AnalysisRow nextR } // Create a copy with just the dataset ID updated to VDI counterpart. - AnalysisRow out = new AnalysisRow(nextRow.getAnalysisId(), vdiDatasetId, new JSONObject(descriptor), - nextRow.getNumFilters(), nextRow.getNumComputations(), nextRow.getNumVisualizations()); - - LOG.info("Analysis descriptor after migration: " + out); + nextRow.setDescriptor(new JSONObject(descriptor)); + nextRow.setDatasetId(vdiDatasetId); - return new TableRowInterfaces.RowResult<>(out) + LOG.info("Analysis descriptor after migration: " + descriptor); + + return new TableRowInterfaces.RowResult<>(nextRow) .setShouldWrite(_writeToDb); }