pombase / canto

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

Losing conditions and extensions when editing annotation #2788

Closed ValWood closed 1 month ago

ValWood commented 7 months ago

In this situation it's a little annoying. that If I use a new FYPO Id directly to update, like here:

report Canto using editing losing extensions

I lose any metadata. (I can edit by navigating to the term, but since we are often not even in the correct branch it takes more time)

kimrutherford commented 7 months ago

Is this the same problem as #2772?

ValWood commented 7 months ago

Yes I thought I had submitted this one. I'm trying to remember not to edit by clearing but it's difficult. I think in this situation when I am editing I would expect any metadata to remain (I can always remove if inappropriate)

I have probably lost quite a lot of metadata because I sometimes only realise when the lack of an extension causes a duplicate annotation and I get a warning.

kimrutherford commented 7 months ago

Shall I change the code to clear the extension/condition only for FlyCanto?

ValWood commented 7 months ago

Let's wait for a while. Now I know I'll figure out what is the best option over the next few sessions.

ValWood commented 5 months ago

From the old ticket

It's a bit of a problem when you have an old term as a place holder. I would want to edit the extension explicitly I think. If I am editing an annotation (rather than copy edit), I should be mindful that I edit all of the relevant parts, but I would not expect existing parts to disappear unless I actively removed them. For example, if you got the term or allele incorrect it would be unlikely that you also got the extension incorrect (this would be a completely different annotation and I would be more likely to use 'copy edit' for this.

I will think about it. I can be mindful not to clear the term field and just edit it in the meantime.

ValWood commented 5 months ago

I'm still undecided...

ValWood commented 5 months ago

This is related, but when annotations are duplicated https://github.com/pombase/canto/issues/1963

ValWood commented 1 month ago

I do find this a big problem. I think it unexpected that when you add a term the extensions disappear. also usually if we edit a term, the extensions would nearly always be correct. I think if you need to edit extensions you should do this explicitly.

For us the main use case is to add a new term, and I bet we have lost a lot of extension by not noticing that they got wiped. Also you need to remember the extensions and add them back.

kimrutherford commented 1 month ago

It's a one line (-ish) fix. Should I go ahead?

ValWood commented 1 month ago

I think so. I know when you edit the term you do retain the extensions, but often we need to use a term that is unrelated to the new term as a placeholder. In these cases the normal workflow is to completely remove the existing term, and this wipes everything.

kimrutherford commented 1 month ago

Action: change to keep the extension (except for FlyBase)

kimrutherford commented 1 month ago

Action: change to keep the extension (except for FlyBase)

I've changed the code so that the extension and condition don't get cleared when the term name is cleared, except when in FlyBase mode.

The change is in the main Canto now. Let me know if it's doing what you expect.