Feature #5918

Adds Prompt for Project Custom Fields in migrate_from_trac task

Added by Brent Shaffer over 11 years ago.

Status:NewStart date:2010-07-20
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:Custom fieldsEstimated time:0.00 hour
Target version:-
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.

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

Also available in: Atom PDF