pombase / canto

The PomBase community curation tool
https://curation.pombase.org
Other
19 stars 7 forks source link

term deletion bug #162

Closed pombase-admin closed 9 years ago

pombase-admin commented 12 years ago

in this session http://oliver0.sysbiol.cam.ac.uk/pombe/curs/97535c919f7436fe/gene/1

I am trying to delete the annotaton GO:0016441 posttranscriptional gene silencing Set evidence ... Add extension ...

when I try to delete I get the error Internal error DBIx::Class::Schema::txn_do(): Can't call method "delete" on an undefined value at lib/PomCur/Controller/Curs.pm line 587.

I thought this may be because evidence isn't set, but when I try to set evidence I get internal error Caught exception in PomCur::Controller::Curs->annotation_evidence "error: could not find a 'Annotation' with arg: 32 at lib/PomCur/Controller/Curs.pm line 885"

val

Original comment by: ValWood

pombase-admin commented 12 years ago

The annotation is gone now. The only way I can see for that error to happen is if the annotation had been deleted earlier and you were looking at an old page that still had it. I'll make sure it handles that situation more elegantly in future.

The error from setting the evidence is the same problem - the annotation has already been deleted. I'll fix that message too.

Original comment by: kimrutherford

pombase-admin commented 12 years ago

Original comment by: kimrutherford

pombase-admin commented 12 years ago

I've fixed things so that you will now get a tidy one line error message if this happens again.

Original comment by: kimrutherford

pombase-admin commented 12 years ago

Original comment by: kimrutherford