view · edit · sidebar · attach · print · history




  • Setup on oddb-ci2 in clean git repository
  • Setup on oddb-ci2 in clean git repository



Keep in Mind for work to do
  • Fix dojo error
  • I removed on May-27 tests for ix_registrationss, fix_sequences, fix_compositions, fix_packages from test/test_plugin/swissmedic.rb,as he could not find any references for them in the src code. Did I erroneously remove stuff when cleaning up the swissmedic import earlier?
  • The whole test for older/newer Packages must be adapted to xlsx. One must compare the rows (e.g. by creating csv files) and do the same stuff in xlsx!
  • creat gem: task: input=file with ean-codes, standard output show ean-codes + atc-code. Source is Swissmedic Packungen.xlsx or XML.
  • Import via data/medreg_companies.yaml
  • Fix problem with radioactivatum 99m-technetio when parsing Wirkstoffe
  • Fix galenic_forms when parsing swissmedic.xlsx
  • Cleanup generic_type. Replace it everywhere by sl_generic_type and adapt code accordingly.
  • Get updated ATC-codes from EPha for, too.
  • Use refdatabase for, too.
  • Check whether we should revert the part which touche src/plugin/text_info.rb of commit 17af82ba4d76a5838683411b260de265531f9e74. We should improve test/stub/oddbapp.rb to work similar for update/pointer as the real oddbapp. In this case we would have a good Stub for plugins. May we need a different stub when working with plugins (which create/modify/destroy ODDB-Objects), when in most other cases a very simple stub is sufficient.
  • When a logged in admin user changes an atc_code of a product, the corresponding atc_class must update its sequences, too.
  • Order of entering search type and value should not matter. Both should show long URL with search
  • Remove parser for minifi (but keep the minifi)
  • BSV-Plugin does not send mail. Is it sending two mails at once?
  • remove obsolete pdf_patinfo in model, admin/views
  • Fix sbsm/htmlgrid when DEFAULT_FLAVOUR is nil

Setup on oddb-ci2 in clean git repository

Must create watir tests and clean up my pending changes. Also sbsm should document that a flavor is needed with Ruby 2.3.1. Maybe we should add a constant DEFAULT_FLAVOR='sbsm' to avoid spending too much time when migrating projects.

Pushed commits

Verified that changing sbsm alone would have allowed bbmb 2.0.2 to navigate to customer and its invoices. With bbmb Version 2.0.2 the LNF would not have picked the correct Look and Feel.

Working on watir tests now. Copied spec_helper.rb and smoketest_spec.rb from Now testing the login works. Moving the watir tests to

Setup on oddb-ci2 in clean git repository

The xmlconv gem has unit tests which are based on a custom implementation of mock and runit. They must be converted to flexmock.

Converting the unit test shows that I must replace the tmail in lib/xmlconv/util/mail.rb by a UTF-8 tolerating mail gem.

Converted lib/xmlconv/custom/lookandfeel.r from 8859-1 by UTF-8 using iconv -f ISO-8859-14 -t utf8 lib/xmlconv/custom/lookandfeel.rb -o lib/xmlconv/custom/lookandfeel.rb

Rewriting the mocks for transaction takes some time. Also must convert to use the mail gem. This make sending a test mail easy. Now test/test_util/transaction.rb delivers two test mails successfully.

Running all unit test fails, because we require rockit. Must remove it.

The following errors are present:

  • FtpSession emits destination without a leading '/'
  • FtpSession emtis a leading # encoding: ASCII-8BIT
  • XmlConv::I2::TestHeader#test_filename fails
  • XmlConv::Util::TestApplication#test_dumpable: has TypeError: no _dump_data is defined for class Thread::Mutex

Renamed bin/admin bin/xmlconv_admin to avoid conflict with admin from gem bbmb. Now I can succesfully install the new version using rake clean gem; sudo /usr/local/bin/gem231 install pkg/xmlconv-1.0.2.gem

Copying /var/www/ from fastpower to oddb-ci2.

Simplyfied sudo -u bbmb /usr/local/bin/ruby231 -I/var/www/ -rydim/invoice /usr/local/bin/bbmbd config=/var/www/ to contain only

sudo -u bbmb /usr/local/bin/ruby231  -I/var/www/ -rydim/invoice /usr/local/bin/bbmbd config=/var/www/

Now I am able to test it using sudo -u bbmb /usr/local/bin/ruby231 /usr/local/bin/xmlconvd config=/var/www/ which fails now because of the failing rockit parser

D, [2016-06-08T13:55:50.973500 #31338] DEBUG -- XmlConv2: checking directory '/var/www/' for plugins
D, [2016-06-08T13:55:50.973615 #31338] DEBUG -- XmlConv2: loading plugin: 'conversion/pharmacieplus_bdd' (pharmacieplus_bdd.rb)
D, [2016-06-08T13:55:51.057285 #31338] DEBUG -- XmlConv2: loading plugin: 'conversion/bdd_csv' (bdd_csv.rb)
D, [2016-06-08T13:55:51.071754 #31338] DEBUG -- XmlConv2: loading plugin: 'conversion/bdd_i2' (bdd_i2.rb)
D, [2016-06-08T13:55:51.077617 #31338] DEBUG -- XmlConv2: loading plugin: 'conversion/propharma_bdd' (propharma_bdd.rb)
/usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require': cannot load such file -- rockit/rockit (LoadError)
        from /usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require'
        from /var/www/ `<top (required)>'
        from /usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require'
        from /usr/local/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:120:in `require'
        from /usr/local/lib/ruby/gems/2.3.0/gems/xmlconv-1.0.2/lib/xmlconv/util/autoload.rb:25:in `block in autoload'
        from /usr/local/lib/ruby/gems/2.3.0/gems/xmlconv-1.0.2/lib/xmlconv/util/autoload.rb:16:in `glob'
        from /usr/local/lib/ruby/gems/2.3.0/gems/xmlconv-1.0.2/lib/xmlconv/util/autoload.rb:16:in `autoload'
        from /usr/local/lib/ruby/gems/2.3.0/gems/xmlconv-1.0.2/bin/xmlconvd:28:in `<top (required)>'
        from /usr/local/bin/xmlconvd:23:in `load'
        from /usr/local/bin/xmlconvd:23:in `<main>'

Now I must fix the unit test found in

Rockit is used for ProPharmaBdd. Is this still needed? For the moment replacing the parser by a very dumb mock.

Zeno prefers to see whether we can use rockit for this task, as the propharma is the most important part. Copied all rockit files from fastpower /usr/local/bin/ruby186/lib/ruby/site_ruby/1.8/rockit and added them to /home/niklaus/git/ After converting the files lib/rockit/conflict_resolution.rb, lib/rockit/rockit_grammars_parser.rb and lib/rockit/token.rb from ISO-8859 to utf-8, I get the following error when running ruby231 test/test_conversion/propharma_bdd.rb

test/test_conversion/propharma_bdd.rb: /home/niklaus/git/ /.../n has a non escaped non ASCII character in non ASCII-8BIT script: /^(&#266;~~&#266;&#266;~^^~5348086680)/ (SyntaxError)

This is the definition of the EofToken which has some weired bytes in it. 2t1 ="EOF",/^(�~~��~^^~5348086680)/n),. The relevant parts produced by hexdump -C /usr/local/bin/ruby186/lib/ruby/site_ruby/1.8/rockit/rockit_grammars_parser.rb ard

00000110  3d 20 5b 0a 20 20 20 20  74 31 20 3d 20 45 6f 66  |= [.    t1 = Eof|
00000120  54 6f 6b 65 6e 2e 6e 65  77 28 22 45 4f 46 22 2c  |"EOF",|
00000130  2f 5e 28 a4 7e 7e a4 a4  7e 5e 5e 7e 35 33 34 38  |/^(.~~..~^^~5348|
00000140  30 38 36 36 38 30 29 2f  6e 29 2c 0a 20 20 20 20  |086680)/n),.    |

Tried the following definitions to get rid of the error

  • t1 ="EOF",/^(.~~..~^^~5348086680)/n)
  • t1 ="EOF",/^(.~~..~^^~5348086680)/u)
  • t1 ="EOF",/^(.¤¤..¤^^~5348086680)/u)
  • t1 ="EOF",/^(\u{a4}~~\u{a4}\u{a4}~^^~5348086680)/u )

But still got the error /home/niklaus/git/ `make_element': cannot make an element from nil (ArgumentError)

It looks like porting rockit to ruby 2.3.1 and UTF-8 is not such an easy task. Therefore I will see whether parsing using regular expression works.

Used 5 minutes to make test/test_conversion/sunstore_bdd.rb run and found out that the generated XML has the following differences:

  • assert_equal("Sch\366nb\374hl", -> assert_equal("Schönbühl",
  • Order of elements inside the xml is different

When looking at the test I see that its is more or less an ini file. Trying the inifile.gem

Added the gem soap4r (1.5.8). Copyied in /etc/apache2/vhosts.d to and changed sandoz.bbmb by sandoz.xmlconv.bbmb. Now the service starts. See

Clicking on the link "28250" shows

We must correct the default lookandfeel. Fixed by moving doc/resources/xmlconv.css to directory doc/resources/sbsm.

Pushed commits

Fixed an error in See

Now the list displays in the correct lnf.

Will convert the database to utf8 next week.

view · edit · sidebar · attach · print · history
Page last modified on June 08, 2016, at 05:11 PM