view · edit · sidebar · attach · print · history

20111027-debug-migel-replace-notify-admin-link-format-oddb_org

<< | Index | >>


  1. Debug Migel error
  2. Check sand.xmlconv error suspend
  3. Replace FB link in Migel::Product view suspend
  4. Replace Notify link in drug search view
  5. Replace Admin/Patinfo Statistiken link
  6. Replace Top FB link
  7. Replace Analysen link

Goal/Estimate/Evaluation
  • Debug migel / 100% / 100%
  • Replace FB and Notify link / 100% / 50%
  • Replace pointer link in Admin / 100% / 100%
Commit

Debug Migel error

Problem

error in SBSM::Session#to_html: /de/gcc/migel_search/migel_product/141102901
NoMethodError
undefined method `iksnr' for #<Migel::Model::Migelid:0x7fad216d6a48>
/home/masa/ywesee/oddb.org/src/view/additional_information.rb:191:in `feedback'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:66:in `send'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:66:in `create'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:284:in `compose_component'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:209:in `compose'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `each'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `compose'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:55:in `init'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/component.rb:138:in `initialize'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:59:in `new'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:59:in `create'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:284:in `compose_component'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:209:in `compose'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `each'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `compose'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:55:in `init'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/component.rb:138:in `initialize'
/home/masa/ywesee/oddb.org/src/view/publictemplate.rb:53:in `new'
/home/masa/ywesee/oddb.org/src/view/publictemplate.rb:53:in `content'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:66:in `send'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:66:in `create'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:284:in `compose_component'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:209:in `compose'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `each'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:203:in `compose'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/composite.rb:55:in `init'
/home/masa/ywesee/oddb.org/src/view/publictemplate.rb:50:in `init'
/home/masa/ywesee/oddb.org/src/view/privatetemplate.rb:16:in `init'
/usr/lib64/ruby/site_ruby/1.8/htmlgrid/component.rb:138:in `initialize'
/usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:285:in `new'
/usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:285:in `view'
/usr/lib64/ruby/site_ruby/1.8/sbsm/state.rb:197:in `to_html'
/usr/lib64/ruby/site_ruby/1.8/sbsm/session.rb:529:in `to_html'
/usr/lib64/ruby/site_ruby/1.8/sbsm/session.rb:177:in `drb_process'
/usr/lib64/ruby/site_ruby/1.8/sbsm/session.rb:174:in `synchronize'
/usr/lib64/ruby/site_ruby/1.8/sbsm/session.rb:174:in `drb_process'
/usr/lib64/ruby/1.8/drb/drb.rb:1555:in `__send__'
/usr/lib64/ruby/1.8/drb/drb.rb:1555:in `perform_without_block'
/usr/lib64/ruby/1.8/drb/drb.rb:1515:in `perform'
/usr/lib64/ruby/1.8/drb/drb.rb:1589:in `main_loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1585:in `loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1585:in `main_loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1581:in `start'
/usr/lib64/ruby/1.8/drb/drb.rb:1581:in `main_loop'
/usr/lib64/ruby/1.8/drb/drb.rb:1430:in `run'
/usr/lib64/ruby/1.8/drb/drb.rb:1427:in `start'
/usr/lib64/ruby/1.8/drb/drb.rb:1427:in `run'
/usr/lib64/ruby/1.8/drb/drb.rb:1347:in `initialize'
/usr/lib64/ruby/1.8/drb/drb.rb:1627:in `new'
/usr/lib64/ruby/1.8/drb/drb.rb:1627:in `start_service'
bin/oddbd:38

Update

  • src/view/additional_information.rb
      def feedback(model, session=@session)
        link = HtmlGrid::Link.new(:square_feedback, model, session, self)
        if model.is_a?(ODDB::Package)
          link.href = @lookandfeel._event_url(:feedbacks, [:reg, model.iksnr, :seq, model.seqnr, :pack, model.ikscd])
        end

Note

  • 'FB' is called from Migel::Product view
  • But at the moment 'FB' in the Migel::Product view does not work

Commit

Check sand.xmlconv error

Problem

  • sand.xmlconv sometimes hungs up

Thread check

$ bin/admin server_url="druby://localhost:xxxx"
ch.xmlconv> Thread.list.length
-> 12
ch.xmlconv> Thread.main.status
-> sleep
ch.xmlconv> Thread.list.map{|t| t.alive?}.uniq
-> true

Replace FB link in Migel::Product view

Link

Access

Commit

Note

  • it still does not work
NoMethodError
undefined method `feedbacks' for #<Migel::Model::Migelid:0x7f0048b4d8a0>

Note

  • ODDB::FeedBack includes Persistence module
  • It is not so easy to add FeedBack class in migel server side

Commit

suspend

Replace Notify link in drug search view

Link

Update

  • src/state/global.rb
  • src/view/additional_information.rb

Access

Commit

Replace Admin/Patinfo Statistiken link

Task

  • Replace company link in Admin/Patinfo Statistiken view

Link

Note

  • It is already done

Access

Update

  • src/view/admin/patinfo_stats.rb
class CompanyHeader < HtmlGrid::Composite
  def name(model, session)
    link = View::PointerLink.new(:name, model, session)
    link.href = @lookandfeel._event_url(:company, {:oid => model.oid})
    link
  end
  • src/state/admin/patinfo_stats.rb
 class CompanyFacade
    def oid
      @company.oid
    end

Commit

Replace Top FB link

Commit

Replace Analysen link

Link

view · edit · sidebar · attach · print · history
Page last modified on October 27, 2011, at 04:43 PM