Project

General

Profile

task #6029

task #6028: Post-migration (trac->redmine) fixes

trac resolution to redmine status mapping invalid for `wontfix` and `invalid`

Added by Andreas Kohlbecker about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Highest
Category:
devOps
Target version:
-
Start date:
08/02/2016
Due date:
% Done:

0%

Severity:
normal

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!

fix-ticket-status.awk (505 Bytes) Andreas Kohlbecker, 09/15/2016 10:44 AM

fix-ticket-resolutions.sh View (460 Bytes) Andreas Kohlbecker, 09/15/2016 10:44 AM

fix-ticket-status.awk (507 Bytes) Andreas Kohlbecker, 09/20/2016 05:50 PM

History

#1 Updated by Andreas Kohlbecker about 3 years ago

I implemented a repair script (attached).

Please can you (a.mueller) xcheck to confirm that the fix is working

eg: http://130.133.70.38/redmine/issues/5963

#2 Updated by Andreas Müller about 3 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).

#3 Updated by Andreas Kohlbecker about 3 years ago

problem solved in awk script

please test again.

#4 Updated by Andreas Kohlbecker about 3 years ago

  • Category set to devOps

#5 Updated by Andreas Müller about 3 years ago

  • Assignee changed from Andreas Müller to Andreas Kohlbecker

#6 Updated by Andreas Kohlbecker about 3 years ago

  • Status changed from Feedback to Closed

The fix is now applied to the production system.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 40 MB)