-
Notifications
You must be signed in to change notification settings - Fork 0
Merge Issues into Tracker
Cory Boyd edited this page May 19, 2014
·
1 revision
Here is the relevant issue: https://github.com/bountysource/frontend/issues/681
Users manually added Issues for LibreOffice, but the real Tracker was already in our database. This results in Issues that are isolated from the real tracker.
We want to merge the isolated Issues into the real tracker, ensuring that bounties are carried over onto the real LibreOffice Tracker. Here are the steps I took:
# Find the good tracker, it is of type Bugzilla::Tracker
good_tracker = Tracker.find(207487)
issue1 = Issue.find(128387)
# Update the type from generic to Bugzilla so that we can sync comments
issue1.update_attribute(:type, 'Bugzilla::Issue')
issue1.update_attribute(:tracker_id, good_tracker.id)
issue1.remote_sync
issue2 = Issue.find(846770)
# Update the type from generic to Bugzilla so that we can sync comments
issue2.update_attribute(:type, 'Bugzilla::Issue')
issue2.update_attribute(:tracker_id, good_tracker.id)
good_tracker.remote_sync