Skip to content

Commit

Permalink
added obsolete to API
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Feb 12, 2021
1 parent 07bea08 commit 84a0c1d
Show file tree
Hide file tree
Showing 2 changed files with 1,913 additions and 1,900 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class AnnotatorController {
, @RestApiParam(name = "synonyms", type = "string", paramType = RestApiParamType.QUERY, description = "Updated synonyms pipe (|) separated")
, @RestApiParam(name = "description", type = "string", paramType = RestApiParamType.QUERY, description = "Updated feature description")
, @RestApiParam(name = "status", type = "string", paramType = RestApiParamType.QUERY, description = "Updated status")
, @RestApiParam(name = "obsolete", type = "boolean", paramType = RestApiParamType.QUERY, description = "Updated if obsolete")
]
)
@Transactional
Expand All @@ -235,6 +236,9 @@ class AnnotatorController {
feature.name = data.name
feature.symbol = data.symbol
feature.description = data.description
if(data.containsKey("obsolete")) {
feature.isObsolete = data.getBoolean("obsolete")
}

def oldSynonymNames = feature.featureSynonyms ? feature.featureSynonyms.synonym.name.sort() : []
def newSynonymNames = data.synonyms ? data.synonyms.split("\\|").sort() : []
Expand Down

0 comments on commit 84a0c1d

Please sign in to comment.