chembl / curation-interface

This is repository to track all bugs and issues related to development of the curation interface
0 stars 0 forks source link

When entering a new compound record, default should be linked to a specific source #124

Open ljbellis opened 9 years ago

ljbellis commented 9 years ago

When in a compound window and choosing + for a new record, you click on Find Document and choose DEFAULT.

This populates the Document ID with a -1 but still allows you to choose a source.

You shouldn't be able to choose the source. It should be automatically set to 'Unpublished dataset' as in the DB.

Can this be changed please?

default

mnowotka commented 8 years ago

I just put a reference to https://github.com/chembl/curation-interface/issues/125 as a note to myself to remember that those to should be fixed together.

mnowotka commented 8 years ago

And this one: https://github.com/chembl/curation-interface/issues/127

mnowotka commented 8 years ago

There is no such record as 'Unpublished data set' in the Source table. 'Unpublished data set' is just a title of a Document record with doc_id = (-1). So there is no sensible special Source id I could assign in this case. Because this is a data issue I'm leaving this for Anna.

ljbellis commented 8 years ago

We could always leave the Source blank then. At the moment it is setting AZ as the default unless you choose something else, and you're not allowed to type over this.

mnowotka commented 8 years ago

I think due to database constrains you can't create compound record with no source but I'll check that.