You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: grails-app/controllers/au/org/ala/alerts/AdminController.groovy
+21
Original file line number
Diff line number
Diff line change
@@ -741,6 +741,27 @@ class AdminController {
741
741
}
742
742
}
743
743
744
+
/**
745
+
* Reset the previous / current results stored in QueryResult
746
+
* @return
747
+
*/
748
+
@AlaSecured(value= ['ROLE_ADMIN'], anyRole=true)
749
+
@Transactional
750
+
defresetQueryResult() {
751
+
try{
752
+
def id = params.id.toInteger()
753
+
if(id){
754
+
queryResultService.reset(id)
755
+
render([status: 0, message: "Query result has been reset"] asJSON)
756
+
} else {
757
+
render([status: 1, message: "Missing ID"] asJSON)
758
+
}
759
+
} catch (Exception e) {
760
+
render([status: 1, message: "Error in resetting query result: ${e.message}"] asJSON)
761
+
}
762
+
}
763
+
764
+
744
765
@AlaSecured(value= ['ROLE_ADMIN', 'ROLE_BIOSECURITY_ADMIN'], anyRole=true, redirectController='notification', redirectAction='myAlerts', message="You don't have permission to view that page.")
Copy file name to clipboardexpand all lines: grails-app/services/au/org/ala/alerts/MyAnnotationService.groovy
+39-46
Original file line number
Diff line number
Diff line change
@@ -46,15 +46,26 @@ class MyAnnotationService{
46
46
}catch (PathNotFoundException e){
47
47
log.warn("Current result is empty or doesn't have any records containing a field ${recordJsonPath} defined in recordJsonPath")
48
48
}
49
-
// if an occurrence record doesn't exist in previous result (added) or has different open_assertions or verified_assertions or corrected_assertions than previous (changed).
49
+
// if an occurrence record doesn't exist in previous result (added) or has different verified_assertions than previous (changed).
0 commit comments