Skip to content

Commit

Permalink
#355 Fix Annotation service and test cases added
Browse files Browse the repository at this point in the history
  • Loading branch information
qifeng-bai committed Jan 9, 2025
1 parent 27efbb7 commit e7c2466
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ import com.jayway.jsonpath.PathNotFoundException
import grails.converters.JSON
import org.grails.web.json.JSONArray
import org.grails.web.json.JSONObject
import groovy.json.JsonOutput


import java.text.SimpleDateFormat

Expand Down Expand Up @@ -99,9 +101,9 @@ class AnnotationService {
def record = it.value
def previousRecord = oldRecordsMap.get(record.uuid)
if (previousRecord) {
String currentAssertions = JSON.stringify(filterAssertions(record.user_assertions))
String previousAssertions = JSON.stringify(filterAssertions(previousRecord.user_assertions))
currentAssertions || previousAssertions
String currentAssertions = JsonOutput.toJson(record.user_assertions)
String previousAssertions = JsonOutput.toJson(previousRecord.user_assertions)
currentAssertions != previousAssertions
} else {
true
}
Expand Down
Loading

0 comments on commit e7c2466

Please sign in to comment.