view · edit · sidebar · attach · print · history

20121220-debug-broken-production-data-substance-index

<< | Index | >>


Summary

  • Debugged MiGel corrupted data.
    • removed corrupted objects Migel::Item, again.
  • Update just-medical LF.
    • Removed language chooser from interaction home.
  • Update interaction instant search.
    • Added substnaces.

Commits

Index


Debug corrupted data

Always data is broken by MiGel objects.
Again.

Plugin: ODDB::SwissmedicPlugin
Error: NoMethodError
Message: undefined method `include?' for #<ODDB::Migel::Item:0x00000039c08aa8>
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='
/var/www/oddb.org/src/util/persistence.rb:87:in `block in update_values'
/var/www/oddb.org/src/util/persistence.rb:84:in `each'
/var/www/oddb.org/src/util/persistence.rb:84:in `update_values'
/var/www/oddb.org/src/util/persistence.rb:260:in `issue_update'
/var/www/oddb.org/src/util/oddbapp.rb:125:in `block in update'
ch.oddb> indications.map{|i| i.registrations.first.class }.uniq
-> undefined method `first' for #<ODDB::Migel::Item:0x0000000f9eec60>

strange result.
Sometimes this objects dose not apper.

ch.oddb> ic = indications.select{|i| i.registrations.class == ODDB::Migel::Item }.first; ic.class
-> NilClass
ch.oddb> ic = indications.select{|i| i.registrations.class == ODDB::Migel::Item }.first; ic.class
-> ODDB::Indication

removed this Object.


Remove LanguageChooser from just-medical interactions home

commit

Update interaction instant search

Add Substances (comma separated) to instant search result.

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