task #6029
closedtask #6028: Post-migration (trac->redmine) fixes
trac resolution to redmine status mapping invalid for `wontfix` and `invalid`
0%
Description
The resolution is migrated correctly to the redmine custom field Resolution
but the Status
always is closed, see for example #5776
The mapping is defined correctly in the rake script migrate_from_trac.rake
RESOLUTION_STATUS_MAPPING = {
# trac resolution name => redmine status or status name (names will be replaced by the actual status)
'fixed' => closed_status,
'invalid' => rejected_status,
'wontfix' => rejected_status,
'worksforme' => 'Worksforme',
'duplicate' => 'Duplicate'
}
The fix of this problem might involve fixing the status change in the last issue_journal
records of the affected issues and also setting the final status of the issue.
This should most probably be done in the database directly. Needs testing before!
Files
Updated by Andreas Kohlbecker over 7 years ago
- File fix-ticket-status.awk fix-ticket-status.awk added
- File fix-ticket-resolutions.sh fix-ticket-resolutions.sh added
- Status changed from New to Feedback
- Assignee changed from Andreas Kohlbecker to Andreas Müller
I implemented a repair script (attached).
Please can you (a.mueller) xcheck to confirm that the fix is working
Updated by Andreas Müller over 7 years ago
- Assignee changed from Andreas Müller to Andreas Kohlbecker
http://130.133.70.38/redmine/issues/226 still has status closed instead of rejected, though it was a won't fix (http://dev.e-taxonomy.eu/old/trac/ticket/226).
Updated by Andreas Kohlbecker over 7 years ago
- File fix-ticket-status.awk fix-ticket-status.awk added
- Assignee changed from Andreas Kohlbecker to Andreas Müller
problem solved in awk script
please test again.
Updated by Andreas Müller over 7 years ago
- Assignee changed from Andreas Müller to Andreas Kohlbecker
Looks good.
I tested with http://130.133.70.38/redmine/projects/edit/issues?c%5B%5D=subject&c%5B%5D=priority&c%5B%5D=cf_7&f%5B%5D=status_id&f%5B%5D=&group_by=cf_7&op%5Bstatus_id%5D=%3D&page=3&set_filter=1&t%5B%5D=&utf8=%E2%9C%93&v%5Bstatus_id%5D%5B%5D=8 and found only 1 ticket without resolution but with status rejected:
http://130.133.70.38/redmine/issues/6002
I think you can start running the fix
Updated by Andreas Kohlbecker over 7 years ago
- Status changed from Feedback to Closed
The fix is now applied to the production system.