Skip to content

Commit

Permalink
Merge branch 'develop' - Bump up to 4.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
qifeng-bai committed Oct 20, 2023
2 parents f11108a + 23c10cc commit 1266ed3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ plugins {
id "com.gorylenko.gradle-git-properties" version "2.4.1"
}

version "4.5.0"
version "4.5.1"
group "au.org.ala"

apply plugin:"eclipse"
Expand Down
14 changes: 6 additions & 8 deletions grails-app/services/au/org/ala/specieslist/HelperService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -893,9 +893,11 @@ class HelperService {
totalRows = SpeciesListItem.count();
}
}
rematchLog.total = totalRows
rematchLog.remaining = totalRows
rematchLog.persist()
RematchLog.withTransaction {
rematchLog.total = totalRows
rematchLog.remaining = totalRows
rematchLog.persist()
}

try {
while (true) {
Expand Down Expand Up @@ -969,16 +971,12 @@ class HelperService {
log.info("Rematched ${offset} of ${totalRows} completed, time elapsed:" + TimeCategory.minus(new Date(), start))
rematchLog.remaining = totalRows - offset
}

//SpeciesListItem
RematchLog.withTransaction {
rematchLog.logs = "ID: ${items.last().id} was rematched!"
rematchLog.currentRecordId = items.last().id
rematchLog.recentProcessTime = new Date()
rematchLog.persist()
}


}// end full iteration
rematchLog.status = Status.COMPLETED
rematchLog.endTime = new Date()
Expand All @@ -989,7 +987,7 @@ class HelperService {
rematchLog.status = Status.FAILED
rematchLog.endTime = new Date()
} finally {
RematchLog.withTransaction {
RematchLog.withTransaction{
rematchLog.persist()
}
} // end try
Expand Down
11 changes: 9 additions & 2 deletions grails-app/views/admin/specieslists.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,15 @@
}).error(function (jqXHR, textStatus, error) {
alert("An error occurred: " + error + " - unable to rematch your lists.");
})
jQuery.fancybox.close();
window.location.reload()
jQuery.fancybox.open("<div style=\"padding:20px;width:400px;text-align:center;\"><img src='${asset.assetPath(src:'spinner.gif')}' id='spinner'/>Processing rematching request ...</div></div>", {
'padding': 0,
'margin': 0,
'width': 'auto',
'height': 'auto',
afterShow: function () {
setTimeout(function(){window.location.reload()}, 3000);
}
})
})
}
})
Expand Down

0 comments on commit 1266ed3

Please sign in to comment.