Skip to content

Commit

Permalink
Release 5.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzajaved-csiro committed Aug 13, 2024
2 parents 29d216b + 9826382 commit f233db3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
version "5.2.2"
version "5.2.3"
group "au.org.ala"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ class EditorController {
if (sli) {
// check for changed values
def keys = SpeciesListKVP.executeQuery("select distinct key from SpeciesListKVP where dataResourceUid= :dataResourceUid", [dataResourceUid: sli.dataResourceUid])
def kvpRemoveList = [] as Set
def changed = false

keys.each { key ->
Expand All @@ -179,7 +178,6 @@ class EditorController {
if (kvp) {
// old value was not empty - remove from this SLI
sli.removeFromKvpValues(kvp)
kvpRemoveList.add(kvp)
sl.lastUploaded = new Date()
}

Expand All @@ -203,12 +201,6 @@ class EditorController {
}
}

// remove KVP items that have changed (need to do this separately to avoid java.util.ConcurrentModificationException)
kvpRemoveList.each {
log.debug "Removing outdated kvp value: ${it}"
it.delete()
}

//check if name information has changed
if (params.rawScientificName.trim() != sli.rawScientificName.trim()) {
log.debug "rawScientificName is different: " + params.rawScientificName + " VS " + sli.rawScientificName
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,14 @@ class HelperService {
scrollableResults.close()
String msg = "${listDRId} [ ${totalRows} ] completed, time cost : ${TimeCategory.minus(new Date(), startProcessing)}"
log.info(msg)

SpeciesList speciesListToUpdate = session.get(SpeciesList.class, speciesList.id)
if (speciesListToUpdate != null) {
speciesListToUpdate.lastMatched = new Date();
session.update(speciesListToUpdate)
session.flush()
}

message = [status: 0, message: msg]
} catch (Exception e) {
session.getTransaction().rollback()
Expand Down
2 changes: 1 addition & 1 deletion grails-app/views/speciesListItem/list.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@
</div>
</td>
<td class="rawScientificName">
<g:if test="${fieldValue(bean: result, field: "rawScientificName") ==~ /.*((http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-]))*/}">
<g:if test="${fieldValue(bean: result, field: 'rawScientificName') ==~ /.*((http|https):\/\/([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])*)/}">
<a href="${fieldValue(bean: result, field: "rawScientificName")}" target="_blank">${fieldValue(bean: result, field: "rawScientificName")}</a>
</g:if>
<g:else>
Expand Down

0 comments on commit f233db3

Please sign in to comment.