Skip to content

Commit

Permalink
add new api to update the mark's label when the label changed
Browse files Browse the repository at this point in the history
add a new index for search mark by provenance.analysis.label
  • Loading branch information
JasoxLee committed Aug 4, 2021
1 parent b72f0a7 commit e59b3c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/mongo_idx.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ db.mark.createIndex({"provenance.image.slide":1,"provenance.analysis": 1})
db.mark.createIndex({"provenance.image.slide": 1, "provenance.analysis.execution_id": 1})
db.mark.createIndex({"provenance.image.slide": 1, "provenance.analysis.source": 1})
db.mark.createIndex({"provenance.image.slide": 1})
db.mark.createIndex({"provenance.analysis.labelId": 1})
db.slide.createIndex({'study':1, 'specimen': 1, 'name': 1})
db.template.createIndex({'id': 1})
db.template.createIndex({'name': 1})
Expand Down
6 changes: 6 additions & 0 deletions config/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@
"handlers":[
{"function":"findMarkTypes", "args": []}
]
},{
"route":"/data/Mark/updateMarksLabel",
"method":"post",
"handlers":[
{"function":"updateMarksLabel", "args": []}
]
},{
"route":"/data/Presetlabels/add",
"method":"post",
Expand Down

0 comments on commit e59b3c0

Please sign in to comment.