view · edit · sidebar · attach · print · history

20120307-patinfo-chapter-chooser-check-floating-data-registrations

<< | Index | >>


summary

  • Added Chapter-chooser in Patinfo view.
  • Tried access_test to check data floating.

commit

index


Chapter-chooser for Patinfo

My approach in yesterday has problem in State class.
I tried compose as Chapter-chooser, then It works.

In Patinfo, skipped chapter that has not any content.

use Text::Chapter ( src/model/text.rb )

Chapter chooser for Patinfo

and updated text (de, en, fr) in lookandfeelbase.rb

NOTE
  * open heavy file with noplugin vim  => $ vim -u NONE --noplugin
TODO

to check this, tomorrow.(It seems that this drug has different data)


Check Data-Floating

I tried access test script to check data floating. Masa-san teached us that it caused by ODBA cache, because there are gone after rebooting oddbd.

applied Masa-san's patch to off ODBA cache cleaner.

/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.0.8/lib/odba 500 $ sudo patch < /var/www/oddb.org/odba_stop_cleaner.patch
patching file cache.rb

/path/to/odba/lib/cache.rb

CLEANING_INTERVAL = 0
$ scp server:access_log .
$ ./batch.sh
$ open http://oddb.yasuhiro.org/resources/downloads/status

send many requests to server to be memory 200MB over.

  2012-03-07 16:35:50: sessions:   48 - threads:   16  - memory:  212MB TM
  2012-03-07 16:35:44: sessions:   47 - threads:   18  - memory:  213MB TM
  2012-03-07 16:35:39: sessions:   47 - threads:   21  - memory:  214MB 
  2012-03-07 16:35:30: sessions:   47 - threads:   21  - memory:  206MB TM
  2012-03-07 16:35:25: sessions:   47 - threads:   22  - memory:  215MB T
  2012-03-07 16:35:18: sessions:   47 - threads:   23  - memory:  206MB 
  ...

I tried search with keyword pfizer .

  • Before access_test
    • Liste für "pfizer" (2051)
  • In access_test
    • Liste für "pfizer" (148)
  • After access test
    • Liste für "pfizer" (148)

After access_test(I had to reboot laptop and oddbd), cache remained there.
I thought timings to create cache are also related to this floating-problem.

continue access_test.

refs


Update NoMethod Error in MyMedi

Problem
NoMethodError
undefined method `atc_classes' for #<Array:0xb04ac6c>

Attach:recent-registrations-error-20120307.txt

I think to fix this problem with following change.

src/view/drugs/resultlist.rb

 def init
    if @session.flavor == 'mymedi'
      @max_mail_order_price = 0 
+     if(@model.respond_to?(:atc_classes))
      @model.atc_classes.each do |atc|
        atc.packages.each do |pac|
          if pac.mail_order_prices and n = pac.mail_order_prices.length and n > @max_mail_order_price
            @max_mail_order_price = n 
          end 
        end 
      end
+     end
      self.class.add_additional_mail_order_price_method(@max_mail_order_price-1)

But before update, I could not see years from swissmedic_journal, correctly.
I have to fix this value in my local-machine before commit.
updated to newest DB, but same result.

checked

  • Newest DB
  • Code chanange (backed to 2012.02.29, but same ruselt)
TODO
  • to get download-document from production server.
  • to run updater job (for swissmedic).
view · edit · sidebar · attach · print · history
Page last modified on March 08, 2012, at 09:34 AM