Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate templates #282

Merged
merged 3 commits into from
Mar 20, 2015
Merged

Migrate templates #282

merged 3 commits into from
Mar 20, 2015

Conversation

coolo
Copy link
Contributor

@coolo coolo commented Mar 19, 2015

No description provided.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 64.61% when pulling ac83a32 on migrate_templates into 64b6c4c on master.

}
}
}
unless (defined($entry->{group_name})) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking, when JobGroups::name is 'is_nullable' 0, there should be unless ($entry->{group_name}). Since you are validating text user input so '' should be considered invalid.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, technically DBIx takes only undef as null, so defined check is enough. So is '' supposed to be valid group name?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is about migrating the templates within the script. If we add some validation for the group name it should be in the API - validating here doesn't make sense

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaannz pushed a commit that referenced this pull request Mar 20, 2015
@aaannz aaannz merged commit 64cea68 into master Mar 20, 2015
@coolo coolo deleted the migrate_templates branch March 21, 2015 07:21
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.

3 participants