-
Notifications
You must be signed in to change notification settings - Fork 208
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
Migrate templates #282
Conversation
23dc14f
to
ac83a32
Compare
} | ||
} | ||
} | ||
unless (defined($entry->{group_name})) { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No description provided.