<< | Index | >>
<..>
Added (in small chunks) some commits to add tracis-CI and fixing some problems. Ommitted a bunch of test, where I could not find any commit where they passed.
Open problems:
Restored database with dump from oddb.org. Looked at sequences (59160) should be empty after import.
ch.oddb> registration('59160').sequences.size -> 2 ch.oddb> registration('60115').sequences.size -> 2
Reloaded database using /usr/local/bin/pg_create_db.sh (stopped all oddb services before).
Changed manually on line 2686540/2804585 of (xmllinted data/xml/AipsDownload_latest.xml)PI fromm 60115 -> 59160. (vim 2686539:2686550s/60115/59160/g) Rerun the import (added a few puts for better tracing). Now at least a search for "Levofloxacin-Mepha" return PI and FI for each of the 10 results.
The following manual seemed to work registration('59160').each_sequence{ |seq| seq.patinfo = nil; seq.odba_isolated_store }
. After adding it to the plugin/text_info.rb, also the patinfo in french ware removed. Reloading database from backup.
Question: Is it correct to only seq.patinfo = nil or must I delete the seq.patinfo-object? No we must call delete on it or it would leave in the database a
Does reimporting both resolve the problem? Yes. This is okay now (online and on my private VM).
Trying to do the delete via bin/cmd says how to delete FI
Redoing an import which should remove patinfo. Seems to be okay. Pushed the commit
Dokumented deleting the Patinfo under http://dev.ywesee.com/Main/CHoddbdeletePI