[Rt-devel] Opinions on adding CF validation to REST interface

Philip Kime pkime at Shopzilla.com
Sun Dec 24 12:16:37 EST 2006


I'll have a look. One of the things I mentioned has to be implemented in
the REST code itself:

* If a SELECT* field is passed a value which isn't valid, it must raise
an error

This is obviously implemented in RT CORE because you can't select a
non-valid valid for such fields in the GUI. In REST, we have to actually
check because there's no GUI. But this isn't really part of the Regexp
validation, it's just related. I have this working in REST.

PK

-----Original Message-----
From: Jesse Vincent [mailto:jesse at bestpractical.com] 
Sent: Sunday, December 24, 2006 8:35 AM
To: Todd Chapman
Cc: Philip Kime; rt-devel at lists.bestpractical.com
Subject: Re: [Rt-devel] Opinions on adding CF validation to REST
interface


> Phillip,
> 
> I would look at how the web interface enforces validation and 
> implement that in RT core. Make sure the way you implement it allows 
> easy overriding so that sites can customize to taste.
> I think implementing the validation code in REST would be a mistake.

+1. Agree strongly.

> 
> -Todd
> _______________________________________________
> List info: 
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
> 

-- 



More information about the Rt-devel mailing list