Including and excluding fields

Max Kanat-Alexander mkanat at bugzilla.org
Fri Jan 15 21:28:43 UTC 2010


On 01/15/2010 01:14 PM, Gervase Markham wrote:
> It would be good if the result of this discussion was the emergence of a
> consensus on how to do it, and then both implementations could converge
> on it (even if XML-RPC had legacy additional capabilities).

	Hmm. Okay, so here's my proposal:

	We keep include_fields and exclude_fields as the names.

	To include_fields, we add the following possibilities:

	_default, _all

	This is easy enough to implement in Bugzilla--in filter(), _default &
_all would just cause it to return everything, and then we'd check for
extra fields or _all within the methods. We'd add a should_include
function to Bugzilla::WebService::Util that checked for a field name or
_all being present.

	I suppose we could add _default to exclude_fields as well, though I'm
not sure how useful that would be.

	And for Bug.get:

	_custom

	How does that sound?

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



More information about the developers mailing list