Most unit test for oddb.org pass with ruby 2.0. The failing one seem to affect mostly views. Therefore I would like to first build the infrastructure (based on docker) to really execute oddb.org and to be able to graphically see
Must look why we cannot store Diffie::diff objects via ODBA. Tried to add a unit test to test/test_plugin/text_info_swissmedicinfo.rb. Here it passes without any problem, as it seems to have it recognised as a String and not as a File. Now I see the error in pry after the call to updated_fi.de.add_change_log_item(old_text_de, new_text)
in plugin/text_info.rb I get
Marshal.dump(updated_fi.de.change_log.first) TypeError: can't dump File from (pry):7:in `dump' ODDB::FachinfoDocument::ChangeLogItem # Stepped till /var/www/oddb.org/src/plugin/text_info.rb @ line 125 [3] pry(ODDB::TextInfoPlugin)> new_ti => #<ArgumentError: undefined class/module ODDB::Fachinfo::ChangeLogItem>
Okay. Somewhere there must have been an error while adding ODDB::Fachinfo::ChangeLogItem. Okay. Looks like a real silly error. I forgot to rename in oddbapp.rb in _migrate_child_to_utf8 ODDB::Fachinfo::ChangeLogItem to ODDB::FachinfoDocument::ChangeLogItem. One reason more, that we should really git rid of the obsolete code migrating the database to UTF-8. After having corrected this error, I still cannot store the changelog. Trying to remove the ODBA_SERIALIZABLE from the class definition.
Dropping db, the running jobs/update_textinfo_swissmedicinfo --reparse --target=both 51193 54316
to test whether new and change TI work fine. Okay, this works now. Starting the work on adapting the FI-View by adding a link ChangeLog in http://oddb-ci2.dyndns.org/de/gcc/fachinfo/reg/51193 after the link "Print".
Zeno pointed out, that we should remove the possibility to edit the fachinfo (and its chapters) entirely.
The view begin to emit correct debug output, but the fields don't appear correctly. The CSS is wrong and display white instead of yellow green. Will continue tomorrow.