[katello-devel] Apipie and validation.

Dmitri Dolguikh dmitri at redhat.com
Fri Nov 30 16:07:07 UTC 2012


On 30/11/12 03:41 PM, Lukas Zapletal wrote:
> On Fri, Nov 30, 2012 at 03:02:15PM +0000, Dmitri Dolguikh wrote:
>> Repeat after me: validation logic belongs in the model.
> Only in an ideal world, Dmitri. ;-)
>
> Not all our controllers follows REST pattern, and you know that.
>
This has nothing to do with rest - just common sense. If you start doing 
validations in controllers, you will inevitable start moving business 
logic to them.

In our case, instead of perpetuating the problem, let's fix it instead. 
Step #1 - let's get rid of controller validations.

-d




More information about the katello-devel mailing list