Project

General

Profile

Actions

Feature #5918

open

Adds Prompt for Project Custom Fields in migrate_from_trac task

Added by Brent Shaffer over 13 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Custom fields
Target version:
-
Start date:
2010-07-20
Due date:
% Done:

100%

Estimated time:
0.00 h
Resolution:

Description

The migrate_from_trac task fails if a redmine install has required custom fields on a project. To fix this issue, I added a loop that prompts the user to enter values for all the project custom fields, re-prompting if the input value does not validate for the custom field, and providing the default value as expected.

Also, if the project still fails to save for whatever reason, the errors are printed out. Previously, a "method not found on nil::nilClass" was being thrown, which is not as helpful, and was difficult to debug.


Files

migrate_from_trac.rake.diff (2.96 KB) migrate_from_trac.rake.diff migrate_from_trac patch for project custom fields Brent Shaffer, 2010-07-20 17:38

No data to display

Actions

Also available in: Atom PDF