Skip to content

Commit b3b17c8

Browse files
committed
Updates
1 parent 3aab516 commit b3b17c8

3 files changed

Lines changed: 46 additions & 4 deletions

File tree

.github/workflows/python-apollo.yml

Lines changed: 44 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,49 @@ jobs:
7777
arrow organisms get_organisms
7878
echo "=== Sequences for test_organism ==="
7979
arrow organisms get_sequences test_organism || true
80+
echo "=== Features for test_organism on Merlin ==="
81+
arrow annotations get_features test_organism Merlin || true
82+
83+
echo ""
84+
echo "=== Direct curl: addTranscript on test_organism ==="
85+
ORG_DIR=$(cd .. && pwd)/python-apollo/apollo_shared_dir
86+
curl -s -X POST http://localhost:8080/apollo/annotationEditor/addTranscript \
87+
-H 'Content-Type: application/json' \
88+
-d "{
89+
\"username\": \"admin@local.host\",
90+
\"password\": \"password\",
91+
\"organism\": \"test_organism\",
92+
\"sequence\": \"Merlin\",
93+
\"suppressHistory\": true,
94+
\"suppressEvents\": true,
95+
\"features\": [{
96+
\"location\": {\"fmin\": 100, \"fmax\": 500, \"strand\": 1},
97+
\"type\": {\"name\": \"mRNA\", \"cv\": {\"name\": \"sequence\"}},
98+
\"children\": [{
99+
\"location\": {\"fmin\": 100, \"fmax\": 500, \"strand\": 1},
100+
\"type\": {\"name\": \"exon\", \"cv\": {\"name\": \"sequence\"}}
101+
}]
102+
}]
103+
}" || true
104+
105+
echo ""
106+
echo "=== Direct curl: addFeature on test_organism ==="
107+
curl -s -X POST http://localhost:8080/apollo/annotationEditor/addFeature \
108+
-H 'Content-Type: application/json' \
109+
-d "{
110+
\"username\": \"admin@local.host\",
111+
\"password\": \"password\",
112+
\"organism\": \"test_organism\",
113+
\"sequence\": \"Merlin\",
114+
\"features\": [{
115+
\"location\": {\"fmin\": 1000, \"fmax\": 2000, \"strand\": 1},
116+
\"type\": {\"name\": \"repeat_region\", \"cv\": {\"name\": \"sequence\"}}
117+
}]
118+
}" || true
119+
120+
echo ""
80121
echo "=== Apollo ERROR/WARN log lines ==="
81-
grep -E 'ERROR|WARN' ../apollo.log | tail -50 || true
122+
grep -E 'ERROR|WARN' ../apollo.log | tail -100 || true
82123
83124
- name: Run tests
84125
run: |
@@ -89,5 +130,5 @@ jobs:
89130
- name: Print Apollo log on failure
90131
if: failure()
91132
run: |
92-
echo "=== Last 200 lines of Apollo log ==="
93-
tail -200 apollo.log
133+
echo "=== Last 500 lines of Apollo log ==="
134+
tail -500 apollo.log

grails-app/controllers/org/bbop/apollo/AnnotationEditorController.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ class AnnotationEditorController extends AbstractApolloController implements Ann
181181
}
182182

183183
def addTranscript() {
184-
withPermission(PermissionEnum.WRITE) { requestHandlingService.addFeature(it) }
184+
withPermission(PermissionEnum.WRITE) { requestHandlingService.addTranscript(it) }
185185
}
186186

187187
def duplicateTranscript() {

grails-app/controllers/org/bbop/apollo/MetricsController.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class MetricsController {
88

99
def metrics() {
1010
JSONObject result = new JSONObject()
11+
result.put("version", "4.0.0")
1112
result.put("timers", new JSONObject())
1213
result.put("counters", new JSONObject())
1314
result.put("gauges", new JSONObject())

0 commit comments

Comments
 (0)