app/views/bulkrax/importers/index.html.erb in bulkrax-2.0.2 vs app/views/bulkrax/importers/index.html.erb in bulkrax-2.1.0
- old
+ new
@@ -22,10 +22,11 @@
<th scope="col">Entries Processed</th>
<th scope="col">Entries Failed</th>
<th scope="col">Entries Deleted Upstream</th>
<th scope="col">Total Collection Entries</th>
<th scope="col">Total Work Entries</th>
+ <th scope="col">Total File Set Entries</th>
<th scope="col"></th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thead>
@@ -34,15 +35,16 @@
<tr>
<th scope="row"><%= link_to importer.name, importer_path(importer) %></th>
<td><%= importer.status %></td>
<td><%= importer.last_imported_at.strftime("%b %d, %Y") if importer.last_imported_at %></td>
<td><%= importer.next_import_at.strftime("%b %d, %Y") if importer.next_import_at %></td>
- <td><%= importer.importer_runs.last&.enqueued_records %></td>
- <td><%= (importer.importer_runs.last&.processed_collections || 0) + (importer.importer_runs.last&.processed_records || 0) %></td>
- <td><%= (importer.importer_runs.last&.failed_collections || 0) + (importer.importer_runs.last&.failed_records || 0) %></td>
- <td><%= importer.importer_runs.last&.deleted_records %></td>
- <td><%= importer.importer_runs.last&.total_collection_entries %></td>
- <td><%= importer.importer_runs.last&.total_work_entries %></td>
+ <td><%= importer.last_run&.enqueued_records %></td>
+ <td><%= (importer.last_run&.processed_records || 0) %></td>
+ <td><%= (importer.last_run&.failed_records || 0) %></td>
+ <td><%= importer.last_run&.deleted_records %></td>
+ <td><%= importer.last_run&.total_collection_entries %></td>
+ <td><%= importer.last_run&.total_work_entries %></td>
+ <td><%= importer.last_run&.total_file_set_entries %></td>
<td><%= link_to raw('<span class="glyphicon glyphicon-info-sign"></span>'), importer_path(importer) %></td>
<td><%= link_to raw('<span class="glyphicon glyphicon-pencil"></span>'), edit_importer_path(importer) %></td>
<td><%= link_to raw('<span class="glyphicon glyphicon-remove"></span>'), importer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>