view · edit · sidebar · attach · print · history

20121219-debug-corrupted-data-migel-item

<< | Index | >>


Summary

  • Debugged MiGel corrupted data.
    • MiGel Updater also needs Job-id checker.
  • Updated textinfo updater.
  • Updated just-medical LF.

Commits

Index


Debug corrupted data

ch.oddb> indications.select{|ind| !ind.registrations.select{|reg| reg.class != Registration }.empty? }.length
-> private method `select' called for #<ODDB::Migel::Item:0x007fa408083b90>
ch.oddb> indications.select{|ind| ind.registrations.class == ODDB::Migel::Item }.length
-> 1
ch.oddb> indications.select{|ind| ind.registrations.class == ODDB::Migel::Item }.odba_id
-> 29071834
Plugin: ODDB::SwissmedicPlugin
Error: NoMethodError
Message: undefined method `include?' for #<ODDB::Migel::Item:0x00000012d9cfd0>
Backtrace:
(eval):2:in `include?'
/var/www/oddb.org/src/model/registration_observer.rb:15:in `add_registration'
/var/www/oddb.org/src/model/registration.rb:312:in `replace_observer'
/var/www/oddb.org/src/model/registration.rb:299:in `indication='
src/model/registration_observer.rb
		def add_registration(registration)
			unless(@registrations.include?(registration))
				@registrations.push(registration)
				@registrations.odba_isolated_store
                                odba_isolated_store # update indices
			end
			registration
		end

This is Data-Corruption by MiGeL-Updater.
(At same time, Jobs run on production server.)

ODBA does not handle multiple-process correctly.

  • Same object_id was used. (ODBA uses as odba_id)
  • odba_store affects over DB.(This is propagation. All related Objects are updated.)
on production (this data has gone already)
ywesee@thinpower /var/www/oddb.org $ RUBYOPT="" bin/admin 
ch.oddb>  ic = indications.select{|i| i.registrations.class == ODDB::Migel::Item }.first; ic.instance_eval("@registrations = ['dummy']"); ic.remove_registration('dummy');
-> undefined method `remove_registration' for nil:NilClass

Ref.


Update textinfo updater

date option

Added date argment (optional).
Run as updater on this date (this date is used for date-check).

$ ruby jobs/update_textinfo_news2 '16.12.12' --reparse
$ ruby jobs/update_textinfo_news2 --reparse '16.12.12'
commit

Image handliing

Updated image handling.

Plugin: ODDB::TextInfoPlugin
Error: NoMethodError
Message: undefined method `next_image' for :ODDB::Text::Paragraph
Backtrace:
(druby://localhost:10002) /home/yasuhiro/Documents/workspace/ywesee/var/ch.oddb.org/ext/fiparse/src/textinfo_hpricot.rb:173:in `insert_image'
(druby://localhost:10002) /home/yasuhiro/Documents/workspace/ywesee/var/ch.oddb.org/ext/fiparse/src/textinfo_hpricot.rb:154:in `block in handle_element'
$ jobs/update_company_textinfos2 'MSD'
commit

Update just-medical LF

Removed language_chooser from drug home

commit

Remove search navigation from interaction instant-chooser

commit

search-bar text for JM interaction instant search

dojo ready (creates as "searchbar" id. but id is "interaction_searchbar")
require(['dojo/ready','dojo/parser','dojo/io/script','dojox/data/JsonRestStore','dijit/form/ComboBox','ywesee/widget/Tooltip'], function(ready, parser) {ready(function() {document.getElementById('searchbar').focus();

dojotoolkit.rb of htmlgrid

            "require([#{script.chomp(',')}], function(ready, parser) {" \
              "ready(function() {" \
                "#{onloads}" \
              "});" \
            "});"

but GoogleAdSenseComposite was not template class.

commit

FI Package Table

Update CSS for compendium package table.

commit
before
after

Ref.

view · edit · sidebar · attach · print · history
Page last modified on March 01, 2013, at 09:13 AM