Skip to content

Commit

Permalink
Clean up debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahlin committed Nov 8, 2024
1 parent c2e2718 commit 019a32d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions whelktool/src/main/resources/bulk-change-scripts/merge.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import static whelk.JsonLd.ID_KEY
import static whelk.datatool.bulkchange.BulkJobDocument.DEPRECATE_KEY
import static whelk.datatool.bulkchange.BulkJobDocument.KEEP_KEY

List<String> deprecate = ["https://id.kb.se/term/sao/M%C3%84V1"]//parameters.get(DEPRECATE_KEY)
String keep = "https://id.kb.se/term/sao/M%C3%84V-NY" //parameters.get(KEEP_KEY)
List<String> deprecate = parameters.get(DEPRECATE_KEY)
String keep = parameters.get(KEEP_KEY)

Set<String> allObsoleteThingUris = synchronizedSet([] as Set<String>)
selectByIds(deprecate) { obsolete ->
Expand All @@ -30,10 +30,7 @@ selectByIds(deprecate) { obsolete ->
}
}
allObsoleteThingUris.addAll(obsoleteThingUris)
}

selectByIds(deprecate) {
it.scheduleDelete()
obsolete.scheduleDelete()
}

selectByIds([keep]) {
Expand Down

0 comments on commit 019a32d

Please sign in to comment.