API Design Questions (3)

Max Kanat-Alexander mkanat at bugzilla.org
Thu Sep 24 10:55:05 UTC 2009


On 09/24/2009 03:44 AM, Gervase Markham wrote:
> Fields in Bugzilla bugs have varying levels of optionalness, from custom
> fields, which of course are never guaranteed to be present because they
> are product-specific, 

	No, actually, custom fields are always present. The product-specific
bit (which exists only in 3.4) is all done via JS in the UI.

> B) provide them, but with a "" or [] value

	I'm in favor of this since it makes it easier for clients.

	In fact, I'm in favor of returning fields even if they're disabled
(like status_whiteboard when the usestatuswhiteboard parameter is turned
off), unless they are marked as obsolete in the fielddefs table (for
example, you wouldn't return qacontact_accessible). It's best if
parameters just control the UI, and the underlying structure is always
the same.

	-Max
-- 
http://www.everythingsolved.com/
Competent, Friendly Bugzilla and Perl Services. Everything Else, too.



More information about the developers mailing list