undefined method `sequences' for "format_type":String
---
We must now find
jobs/update_textinfo_swissmedicinfo
jobs/update_textinfo_swissmedicinfo company1 company2
Must also look that import work whether reparse is given or not
jobs/update_textinfo_swissmedicinfo --no-download --target=both CBI
(has20 entries)
jobs/update_textinfo_swissmedicinfo --no-download --target=both --reparse CBI
(has20 entries)
jobs/update_textinfo_swissmedicinfo --no-download --target=pi 42542
jobs/update_textinfo_swissmedicinfo --no-download --target=fi 42542
jobs/update_textinfo_swissmedicinfo --no-download --target=both 42542
jobs/update_textinfo_swissmedicinfo --no-download --target=both --reparse 42542
(has 5 entries)
jobs/update_textinfo_swissmedicinfo
# should call import_swissmedicinfo_by_index, we have no unit-test for it!!!
jobs/update_swissmedicno_fi_pi
jobs/import_daily
I must add unit-tests for these combination in test/test_plugin/text_info_swissmedicinfo.rb
. Deleted the fachinfo for 42542.
After calling jobs/update_textinfo_swissmedicinfo --no-download --target=both 42542
the fachinfo was not updated. Why? Checking out master branch to test, whether it works there. Now the fachinfo gets updated, but the import hangs(?) while reparse. Manually aborting after letting it run 10 minutes with 100% CPU-usage.
Analysing the context I see that @format and @title are implicit parameters when calling parse_fachinfo. Setting them therefore. And bingo, the import works! Changing @title and @format to explicit parameter with default values. But the fachinfo is only show and recognised after restarting oddbd.
Anyways I think this is good enough for today. Running import_daily and will push commit tomorrow morning if everything is okay.
Pushed commit Using sax-parser for text_info.
Updated to use sax-machine 0.2.1. Running import-daily again.