ralli / migrate_from_bugzilla

bugzilla to redmine migration rake task
15 stars 14 forks source link

All dates being set to migration date #17

Closed danielfernandez closed 10 years ago

danielfernandez commented 10 years ago

First of all, thanks a lot for this great utility. It's really saving me a ton of work!

I'm migrating a medium-size bugzilla database. The script is being executed on the following environment:

The migration script ends OK and all the tickets look quite alright, except for the timestamp dates (created_on, updated_on, closed_on) which are all set to the moment the migration was executed instead of the original values. This happens for issues, comments (journals) and attachments.

The start_date and due_date, nevertheless, are set to the right values. Maybe this has to do with the fact they are only dates and not complete timestamps?

ralli commented 10 years ago

Hello Daniel,

current versions of redmine seem to update these dates automatically on save. I just have added a patch which should disable these unintended updates (by calling Issue.reset_callbacks :save)

danielfernandez commented 10 years ago

So quick! Tested, works OK. Thanks a lot.