ChadoIdSpace/ChadoVocabulary Missing Values #1354
Labels
bug - confirmed
For issues where a core developer has confirmed a bug exists.
Group 1 - Tripal Content Types | Terms | Fields
Any issue relating to Tripal Content including types, terms, and fields.
If the user creates a Vocabulary or IDSpace it will automatically add the records to the
tripal_vocabulary_collection
table. This in turn will callChadoIdSpace::create()
andChadoVocabulary::create()
function respectively and those will add the appropriate record to thecv
anddb
tables of Chado. However, if for some reason thecv
ordb
records get deleted outside of Tripal ( for example the Chado schema is dropped and recreated) then theChadoIdSpace
andChadoVocabulary
plugins can't get a record so the getters return nothing.The current way to test if an IDspace or Vocabulary exists is to call the loadCollection function for the plugin manager. If it does not return NULL then we know the collection exists. For example:
Can we add a new
TripalCollectionPluginInterface::load
function that can be called with theloadCollection
function is called and allow the plugin to report if the collection exists internally and if not return NULL so it can be recreatd?The text was updated successfully, but these errors were encountered: