Skip to content

Conversation

hinerm
Copy link
Member

@hinerm hinerm commented Apr 30, 2015

The NumberUtils#getDefaultValue method is not always sufficient as it lacks the context of a ModuleItem.

Closes #160

This logic goes into the ModuleService because it needs context:
when the item does not specify a min or max value, it leans on the
ConvertService to convert from zero (specifically: "0") to the
ModuleItem's associated type.
hinerm added a commit that referenced this pull request Apr 30, 2015
ModuleService: add getDefaultValue
@hinerm hinerm merged commit 3fca49f into master Apr 30, 2015
@hinerm hinerm deleted the default-values branch April 30, 2015 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make module parameter default values reasonable

2 participants