Project

General

Profile

Actions

task #6029

closed

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

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

Added by Andreas Kohlbecker over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Highest
Category:
devOps
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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!


Files

fix-ticket-status.awk (505 Bytes) fix-ticket-status.awk Andreas Kohlbecker, 09/15/2016 10:44 AM
fix-ticket-resolutions.sh (460 Bytes) fix-ticket-resolutions.sh Andreas Kohlbecker, 09/15/2016 10:44 AM
fix-ticket-status.awk (507 Bytes) fix-ticket-status.awk Andreas Kohlbecker, 09/20/2016 05:50 PM
Actions #1

Updated by Andreas Kohlbecker over 6 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

Actions #2

Updated by Andreas Müller over 6 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).

Actions #3

Updated by Andreas Kohlbecker over 6 years ago

problem solved in awk script

please test again.

Actions #4

Updated by Andreas Kohlbecker over 6 years ago

  • Category set to devOps
Actions #5

Updated by Andreas Müller over 6 years ago

  • Assignee changed from Andreas Müller to Andreas Kohlbecker
Actions #6

Updated by Andreas Kohlbecker over 6 years ago

  • Status changed from Feedback to Closed

The fix is now applied to the production system.

Actions

Also available in: Atom PDF