Skip to content

Commit

Permalink
Merge pull request #323 from AtlasOfLivingAustralia/release/5.2.4
Browse files Browse the repository at this point in the history
Release/5.2.4
  • Loading branch information
nickdos authored Nov 27, 2024
2 parents f233db3 + 1323821 commit a8a3e14
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 6 deletions.
Binary file removed .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ out
/.slcache
/logs
*.iml
.DS_Store
grails-app/.DS_Store
grails-app/controllers/.DS_Store
grails-app/controllers/au/.DS_Store
Expand Down
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.3"
version "5.2.4"
group "au.org.ala"
}

Expand Down
6 changes: 4 additions & 2 deletions grails-app/conf/application.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
logging:
config: /data/specieslist-webapp/config/logback.xml
# Example of what to put in your /data/specieslist-webapp/config/specieslist-webapp-config.properties file
# if you want different logging for local development. This is the default for production.
#logging:
# config: /data/specieslist-webapp/config/logback.xml

grails:
profile: web
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ class SpeciesListController {
if(sl){
helperService.deleteDataResourceForList(sl.dataResourceUid)
List msIds = SpeciesListItem.executeQuery("select sli.matchedSpecies.id as id from SpeciesListItem as sli where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
MatchedSpecies.executeUpdate("delete from MatchedSpecies where id in (:msIds)", ["msIds": msIds])
log.debug("Deleted matched species (${msIds.size()}) ")
SpeciesListItem.executeUpdate("delete from SpeciesListItem where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
log.debug("Deleted species in list: ${sl.dataResourceUid}")
MatchedSpecies.executeUpdate("delete from MatchedSpecies where id in (:msIds)", ["msIds": msIds])
log.debug("Deleted matched species (${msIds.size()}) ")
SpeciesListKVP.executeUpdate("delete from SpeciesListKVP where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
log.debug("Deleted KV pairs in list: ${sl.dataResourceUid}")
SpeciesList.executeUpdate("delete from SpeciesList where dataResourceUid = :dataResourceUid", ["dataResourceUid": sl.dataResourceUid])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class WebServiceController {
def retValue = [
dataResourceUid: sl.dataResourceUid,
listName : sl.listName,
description : sl.description,
dateCreated : sl.dateCreated,
lastUpdated : sl.lastUpdated,
lastUploaded : sl.lastUploaded,
Expand Down Expand Up @@ -330,6 +331,7 @@ class WebServiceController {
[
dataResourceUid: it.dataResourceUid,
listName : it.listName,
description : it.description,
listType : it?.listType?.toString(),
dateCreated : it.dateCreated,
lastUpdated : it.lastUpdated,
Expand Down
2 changes: 1 addition & 1 deletion grails-app/views/speciesListItem/_facet.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</g:if>
<g:else>
<td><g:link action="list" id="${params.id}"
params="${[fq: sl.buildFqList(fqs: fqs, fq: "${key}:${arr[0]}"), q: params.q, max: params.max]}">${arr[0]}</g:link></td>
params="${[fq: sl.buildFqList(fqs: fqs, fq: "${QueryService.MATCHED_FAMILY.equals(key) ? 'matched family' : key}:${arr[0]}"), q: (params.q) ?: null, max: params.max]}">${arr[0]}</g:link></td>
<td style="text-align: right; border-right-style: none;">${arr[1]}</td>
</g:else>
</tr>
Expand Down

0 comments on commit a8a3e14

Please sign in to comment.