Some of the comments on git7site display changes to Priority as 3 >> 2, instead of actual labels.

http://git7site.devdrupal.org/node/44162

Comments

dww’s picture

Title: Node changes displayed as int values instead of human-readable labels » Need to migrate priority to new int values
Project: Node changes » Project issue tracking
Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Code » Issues
Priority: Normal » Major

Upon closer inspection, the real problem is that our data migration for issues isn't converting the priority values properly. Currently, we just save the D6 int value (1, 2, 3 or 4) as field_issue_priority (which in turn is how it gets recorded via nodechanges). However, in D7, the default priorities are this:

      'allowed_values' => array(
        400 => $t('Critical'),
        300 => $t('Major'),
        200 => $t('Normal'),
        100 => $t('Minor'),
      ),

The idea was that these default values would let people add others in between without having to try to migrate all the data, etc (since it's nice to be able to sort on this column in various places).

So, during migration, we need to be multiplying the priority by 100 whenever we're converting from D6 to D7.

drumm’s picture

Assigned: Unassigned » drumm
drumm’s picture

Status: Active » Fixed

Done early in the process since it can be added cleanly here.

http://drupalcode.org/project/project_issue.git/commitdiff/9266643?hp=15...

Needs a full migration from D6 to take effect.

Automatically closed -- issue fixed for 2 weeks with no activity.