Skip to content

Commit

Permalink
Merge pull request #1540 from alliance-genome/update_message
Browse files Browse the repository at this point in the history
Change update message for DTO loads
  • Loading branch information
markquintontulloch authored May 23, 2024
2 parents cc3472f + 1c34844 commit 24708b7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ public <E extends AuditedObject, T extends BaseDTO> APIResponse runLoadApi(BaseU
protected <E extends AuditedObject, T extends BaseDTO> boolean runLoad(BaseUpsertServiceInterface<E, T> service, BulkLoadFileHistory history, BackendBulkDataProvider dataProvider, List<T> objectList, List<Long> idsAdded) {
ProcessDisplayHelper ph = new ProcessDisplayHelper();
ph.addDisplayHandler(loadProcessDisplayService);
ph.startProcess(service.getClass().getSimpleName() + " updating " + objectList.get(0).getClass().getSimpleName(), objectList.size());
String loadMessage = objectList.get(0).getClass().getSimpleName() + " update";
if (dataProvider != null)
loadMessage = loadMessage + " for " + dataProvider.name();
ph.startProcess(loadMessage, objectList.size());

for(T dtoObject: objectList) {
try {
Expand Down

0 comments on commit 24708b7

Please sign in to comment.