view · edit · sidebar · attach · print · history

20120124-fix-quanty-page-recycle-object-dt-error-minifi-recent-registration-interaction_basket-encoding-errors-oddb_org

<< Masa.20120125-fix-untaint-sbsm-check-mod_ruby-193-update-s31x-mechanize-new-fachifno | Index | Masa.20120123-mail_order_price-check-sequence-dose-oddb_org >>


  1. Check update_composition admin sequence view
  2. Fix errors oddb.org

Commits
  1. Fix NoMethodError when model.dose is nil in ddd_price (oddb.org)
  2. Deleted invalid string of seqrch_query value in url link (oddb.org)
  3. Updated src/util/validator.rb to convert non UTF-8 search_query value to UTF-8 (oddb.org)
  4. Jump to the first page if there is no _x_ page (oddb.org)
  5. Fix Recycled object error in migel product view (oddb.org)
  6. Fix NoMethodError 'dt' for group, subgroup, migelid (migel)
  7. Fix quanty error when active_agents are sorted and units are different. (oddb.org)
  8. Fix minifi encoding error (oddb.org)
  9. Skip error sequence data when Registration#each_package method is called (oddb.org)
  10. Skip error substance data in interaction_basket event (oddb.org)

Check update_composition admin sequence view

Problem

  • It is impossible to update only 'g' unit in the Wirkstoffe of admin sequence view
  • It is possible to update the other unit

Experiment (locally)

 ch.oddb> ODDB::Dose.new(*[240.0, "g"]).pretty_inspect
 -> Quanty(240,'g')
 ch.oddb> ODDB::Dose.new(*[240.0, "mg"]).pretty_inspect
 -> Quanty(240,'mg')

Experiment (online)

 ch.oddb> ODDB::Dose.new(*[240.0, "g"]).pretty_inspect
 -> Quanty(240,'')
 ch.oddb> ODDB::Dose.new(*[240.0, "mg"]).pretty_inspect
 -> Quanty(240,'mg')

Note

  • Dose.new failed online with 'g'

Reason why 'g' is not updated only online

  • src/util/quanty/fact.rb
    def find_prefix(a,n)
      Prefix.each{ |key,factor|
        k = key.dup
        k.force_encoding('utf-8') if RUBY_VERSION > '1.9'
        #if /^#{key}-?/u =~ a && (unit = List[b=$']) && b.size>n
        if /^#{k}-?/u =~ a && (unit = List[b=$']) && b.size>n
          return Fact.new(b).fac!(factor)
        end
      }
      nil
    end

Note

Fix errors oddb.org

Refer to http://dev.ywesee.com/uploads/$PageName//ch.oddb_crash_23.1.2012_17.40.txt

  1. Attach:error1.20120124.txt
    • It worked after fixing unit 'g' of the sequences
  2. Attach:error2.20120124.txt
  3. Attach:error3.20120124.txt
  4. Attach:error4.20120124.txt
  5. Attach:error5.20120124.txt

Refer to http://dev.ywesee.com/uploads/$PageName//ch.oddb_crash_23.1.2012_15.09_0.txt

  1. Attach:error6.20120124.txt
  2. Attach:error7.20120124.txt
  3. Attach:error8.20120124.txt
  4. Attach:error9.20120124.txt
ODBA::Stub was unable to replace #791455 from ODDB::Registration:#791454
ODBA::Stub was unable to replace #791463 from ODDB::Registration:#791462
ODBA::Stub was unable to replace #791599 from ODDB::Registration:#791598
ODBA::Stub was unable to replace #791640 from ODDB::Registration:#791639

Refer to http://dev.ywesee.com/uploads/$PageName//ch.oddb_crash_22.1.2012_12.50.txt

  1. Attach:error1020120124.txt
view · edit · sidebar · attach · print · history
Page last modified on January 24, 2012, at 04:55 PM