Defect #1340

Trac migration task - user issues

Added by James Turnbull 99 days ago. Updated 92 days ago.

Status:Closed Start:2008-05-31
Priority:High Due date:
Assigned to:- % Done:

0%

Category:Importers
Target version:0.8
Affected version:

Resolution:

Fixed


Description

When migrating from Trac the rake task selects users inconsistently because it only grabs users who have created a ticket, wiki page or attachment. This means some users are migrated with user name and email address and others are not. The script should use the contents of the session_attribute table like:

INSERT INTO "session_attribute" VALUES('blah',1,'name','Blah Blah');
INSERT INTO "session_attribute" VALUES('blah',1,'email','Blah@Blah');

This could be done either as a supplemental query in the find_or_create_user class or a separate migration task.

def_find_or_create_user.rb (1.8 KB) James Turnbull, 2008-06-02 16:53

Associated revisions

Revision 1502
Added by jplang 92 days ago

Trac importer: read session_attribute table to find user's email and real name (#1340).

History

2008-06-02 16:53 - James Turnbull

I've done a very crude edit of migrate_from_trac.rb. I've attached my version of the def used to create users. Highly crude but worked for me.

2008-06-07 16:52 - Jean-Philippe Lang

  • Status changed from New to Closed
  • Target version set to 0.8
  • Resolution set to Fixed

Fix committed in r1502 with a slightly different implementation.
Thanks for pointing this out.

Also available in: Atom PDF