20110414-update-export_flag-methods-testcases-oddb_org-util-http_rb-meddata-session_rb-view-register_download_rb-migel-result_rb
<< | Index | >>
- Update export_flag admin command
- Update testcases
- Goal/Estimate/Evaluation
-
- Milestones
-
- Update testcases
src/util/http.rb (coverage: 100%) 8:00
ext/meddata/src/session.rb (coverage: 100%) 13:30
src/view/user/register_download.rb (coverage: 100%) 15:30
src/view/migel/result.rb (coverage: 100%)
- Summary
-
- Commits
-
Update export_flag admin command
Problem
- After the rebooting of oddbd, the set of export_flag was gone
- This means the updates are not saved in the database, but only in the cache (memory)
Solution
- Add a method to call 'update' method in ODDB::App class, not ODDB::OddbPrevalence class
- Yesterday, we added the methods in OddbPrevalence class
Commit
Memo
- Points:
- OddbPrevalence class manages the objects in the cache and App class manages the data in the database through @system instance
- @system instance is created in the initialize method of App class through ODBA.cache.fetched_name method
Confirmation
- Execute update_swissmedic with the latest Packungen and Präparatieste xls files online
- Confirm that all the export_flags become 'true' and the search result shows nothing
- Execute set_all_export_flag_registratino(false) and set_all_export_flag_sequence(false) from bin/admin
- Execute update_swissmedic again with the latest Packungen in April and the Präparatiste xls file in March that has N and O columns
- Confirm the searching result