プロジェクト

全般

プロフィール

Vote #63321

完了

Trac migration task - user issues

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
高め
担当者:
-
カテゴリ:
Importers_15
対象バージョン:
開始日:
2008/05/31
期日:
進捗率:

0%

予定工数:
category_id:
15
version_id:
2
issue_org_id:
1340
author_id:
851
assigned_to_id:
0
comments:
2
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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.


journals

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.
--------------------------------------------------------------------------------
Fix committed in r1502 with a slightly different implementation.
Thanks for pointing this out.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリImporters_15 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0